Kui API Documentation - v11.0.0 / @kui-shell/core / Themes
@kui-shell/core.Themes
Ƭ Theme: ThemeProperties
& { apiVersion?
: ThemeApiVersion
; attrs?
: string
[] ; css
: string
| string
[] ; description?
: string
; lightweight?
: boolean
; name
: string
; style
: "light"
| "dark"
}
packages/core/src/webapp/themes/Theme.ts:29
▸ findThemeByName(name
): Promise
<{ plugin
: string
; theme
: Theme
}>
Name | Type |
---|---|
name |
string |
Promise
<{ plugin
: string
; theme
: Theme
}>
the Theme model associated with the given theme name
packages/core/src/webapp/themes/find.ts:25
▸ getDefaultTheme(): Promise
<string
>
Promise
<string
>
the name of the default theme
packages/core/src/webapp/themes/default.ts:27
▸ Const
getPersistedThemeChoice(): Promise
<string
>
Return the previously selected (and persisted) choice of theme
Promise
<string
>
packages/core/src/webapp/themes/persistence.ts:41
▸ Const
resetToDefaultTheme(): Promise
<boolean
>
Reset to the default theme
Promise
<boolean
>
packages/core/src/webapp/themes/persistence.ts:188
▸ Const
switchToTheme(theme
, saveNotNeeded?
): Promise
<void
>
Internal logic to switch themes
Name | Type | Default value |
---|---|---|
theme |
string |
undefined |
saveNotNeeded |
boolean |
false |
Promise
<void
>