gui/theme/userThemeStore

User themes — imported theme files that override a built-in (same id) or add a new theme. Persisted through the storage layer under the themes namespace (a file in the user-settings folder locally; localStorage only online), keyed by id like the presets store. Mirrors gui/lib/customStore.js.

Description:
  • User themes — imported theme files that override a built-in (same id) or add a new theme. Persisted through the storage layer under the themes namespace (a file in the user-settings folder locally; localStorage only online), keyed by id like the presets store. Mirrors gui/lib/customStore.js.

Source:

Methods

(static) getUserThemes() → {Array.<object>}

Source:
Returns:

The user themes as an array (insertion order).

Type
Array.<object>

(static) removeUserTheme()

Description:
  • Remove a user theme by id. @param {string} id

Source:

(static) saveUserTheme()

Description:
  • Save (add or overwrite by id) a user theme. @param {object} theme

Source:

(static) useUserThemes()

Description:
  • React hook: the user-theme list plus add/remove actions that persist and re-read so the list stays in sync.

Source:
Returns:

(inner) read() → {object}

Source:
Returns:

The stored user themes, keyed by id (or {}).

Type
object