mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-01 19:35:23 +03:00
Add ThemeManager.setEnabledThemes
This commit is contained in:
parent
cbb82b1dcc
commit
80f4e7eb7f
@ -64,6 +64,12 @@ class ThemeManager
|
|||||||
@packageManager.deactivatePackage(pack.name) for pack in @getActiveThemes()
|
@packageManager.deactivatePackage(pack.name) for pack in @getActiveThemes()
|
||||||
null
|
null
|
||||||
|
|
||||||
|
# Public: Set the list of enabled themes.
|
||||||
|
#
|
||||||
|
# * enabledThemeNames: An {Array} of {String} theme names.
|
||||||
|
setEnabledThemes: (enabledThemeNames) ->
|
||||||
|
atom.config.set('core.themes', enabledThemeNames)
|
||||||
|
|
||||||
# Public:
|
# Public:
|
||||||
getImportPaths: ->
|
getImportPaths: ->
|
||||||
activeThemes = @getActiveThemes()
|
activeThemes = @getActiveThemes()
|
||||||
|
Loading…
Reference in New Issue
Block a user