themes
namespace themesFunctions
disable(id: string): void
Disables a theme and removes it from the app.
enable(id: string): void | Promise<void>
Enables a theme and applies it.
get(id: string): AddonHandle | undefined
Reads one installed theme by id.
getAll(): AddonHandle[]
Lists every installed theme.
install(url: string, digest?: string): Promise<AddonHandle | undefined>
Installs a theme from its manifest URL.
isEnabled(id: string): boolean
Reports whether a theme is enabled.
reload(id: string, bundle: string, manifest: PushedManifest, bytecode?: string): Promise<ReloadResult>
Swaps a theme's files in place, keeping its enabled state.
toggle(id: string): void
Enables a disabled theme, or disables an enabled one.
uninstall(id: string): Promise<void>
Removes an installed theme.
update(id: string): Promise<boolean>
Checks for updates, then applies this theme's pending update.
Returns
Whether the theme now runs a newer version.
Types
The outcome of an addon reload: success, or failure carrying the recorded error.