ThemeManager

Description

Handles loading and activating available themes.

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

API documentation

Event Subscription

::onDidChangeActiveThemes(callback)

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

Argument Description
callback

Function

Accessing Loaded Themes

::getLoadedThemeNames()

Get an array of all the loaded theme names.

::getLoadedThemes()

Get an array of all the loaded themes.

Accessing Active Themes

::getActiveThemeNames()

Get an array of all the active theme names.

::getActiveThemes()

Get an array of all the active themes.

Managing Enabled Themes

::getEnabledThemeNames()

Get the enabled theme names from the config.

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