mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
Theme.load can take multiple theme names
This commit is contained in:
@@ -31,9 +31,7 @@ class Config
|
||||
@loadUserConfig()
|
||||
@requireUserInitScript()
|
||||
atom.loadPackages()
|
||||
|
||||
themeName = config.get("core.theme") ? 'IR_Black'
|
||||
Theme.load(themeName)
|
||||
Theme.load(config.get("core.theme") ? 'IR_Black')
|
||||
|
||||
loadUserConfig: ->
|
||||
if fs.exists(configJsonPath)
|
||||
|
||||
@@ -6,7 +6,13 @@ module.exports =
|
||||
class Theme
|
||||
@stylesheets: null
|
||||
|
||||
@load: (name) ->
|
||||
@load: (names) ->
|
||||
if typeof(names) == "string"
|
||||
[@loadTheme(names)]
|
||||
else
|
||||
names.map (name) => @loadTheme(name)
|
||||
|
||||
@loadTheme: (name) ->
|
||||
if fs.exists(name)
|
||||
path = name
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user