Manage the application CSS theme (color and geometry)
Methods
# static createThemeBuilderWindow()
Build the window to create a custom theme
# static get() → {object}
Get the current theme parameters saved in the localStorage
Theme parameters like: {color: "light", geometry: "default"}
object
# static init()
Init the theme at startup. It will also observe CSS theme passed in the URL hash parameter "themeColor" / "themeGeometry" and switch theme accordingly. The default theme color is "light", and theme geometry is "default"
# static resetSize()
Reset the global size of the interface (font-size) to the default value (62.5%)
# static select()
Open a window to switch the theme manually
# static set(config)
Update the theme (color and geometry)
Parameters:
| Name | Type | Description |
|---|---|---|
config |
object
|
|
color |
string
|
|
geometry |
string
|
Example
kiss.theme.set({
color: "dark",
geometry: "sharp"
})
# static updateSize(newSize)
Update the global size of the interface (font-size)
Parameters:
| Name | Type | Description |
|---|---|---|
newSize |
number
|
New size in percentage (default = 62.5%) |