Namespace

theme

kiss.theme

Manage the application CSS theme (color and geometry)

View Source client/core/modules/theme.js, line 7

Methods

# static createThemeBuilderWindow()

Build the window to create a custom theme

View Source client/core/modules/theme.js, line 508

# static get() → {object}

Get the current theme parameters saved in the localStorage

View Source client/core/modules/theme.js, line 88

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"

View Source client/core/modules/theme.js, line 17

# static resetSize()

Reset the global size of the interface (font-size) to the default value (62.5%)

View Source client/core/modules/theme.js, line 65

# static select()

Open a window to switch the theme manually

View Source client/core/modules/theme.js, line 236

# static set(config)

Update the theme (color and geometry)

Parameters:
Name Type Description
config object
color string
geometry string

View Source client/core/modules/theme.js, line 44

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%)

View Source client/core/modules/theme.js, line 75

Methods