* Sets the active theme. * @param themeName The name of the theme to set as active. * @returns True if the theme was successfully set, false otherwise.
(themeName: string | undefined)
| 113 | * @returns True if the theme was successfully set, false otherwise. |
| 114 | */ |
| 115 | setActiveTheme(themeName: string | undefined): boolean { |
| 116 | const theme = this.findThemeByName(themeName); |
| 117 | if (!theme) { |
| 118 | return false; |
| 119 | } |
| 120 | this.activeTheme = theme; |
| 121 | return true; |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Gets the currently active theme. |
no test coverage detected