Theme Manager

Handles loading and activating available themes.

An instance of this class is always available as the inkdrop.themes global.


onDidChangeActiveThemes(callback)

Theme Manager Updates Subscription

Invoke the given callback when style sheet changes associated with updating the list of active themes are completed.

Parameters

  • Name
    callback()
    Type
    function
    Required
    Description

    Function to be called after the active themes have been updated.

Returns

Returns a Disposable on which .dispose() can be called to unsubscribe.


getLoadedThemeNames()

Get Loaded Theme Names

Retrieve the names of all loaded themes.

Returns

Returns an Array of Strings with the names of all loaded themes.


getLoadedThemes()

Get Loaded Themes

Obtain a list of all loaded themes.

Returns

Returns an Array of all the loaded themes.


getActiveThemeNames()

Get Active Theme Names

Get the names of all active themes.

Returns

Returns an Array of Strings with the names of all active themes.


getActiveThemes()

Get Active Themes

Retrieve all active themes.

Returns

Returns an Array of all the active themes.


getEnabledThemeNames()

Get Enabled Theme Names

Get the names of enabled themes from the configuration.

Returns

Returns an array of theme names in the order that they should be activated.

Can you help us improve the docs? 🙏

The source of these docs is here on GitHub. If you see a way these docs can be improved, please fork us!