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
themesnamespace (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>}
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}
Returns:
The stored user themes, keyed by id (or {}).
- Type
- object