mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add an enableTheme() function to ThemeManager
And use it in the activatePackage() function in PackageManager
This commit is contained in:
@@ -171,6 +171,11 @@ class ThemeManager
|
||||
catch error
|
||||
console.warn("Failed to load theme #{name}", error.stack ? error)
|
||||
|
||||
# Public:
|
||||
enableTheme: (name) ->
|
||||
themes = config.get('core.themes')
|
||||
config.set('core.themes', _.uniq(themes.concat([name])))
|
||||
|
||||
# Public:
|
||||
getUserStylesheetPath: ->
|
||||
stylesheetPath = fsUtils.resolve(path.join(config.configDirPath, 'user'), ['css', 'less'])
|
||||
|
||||
Reference in New Issue
Block a user