Load themes from Config.load

This commit is contained in:
Corey Johnson
2012-12-27 15:52:09 -08:00
parent 71267fd7fe
commit 4244e673af
2 changed files with 4 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ EventEmitter = require 'event-emitter'
{$$} = require 'space-pen'
jQuery = require 'jquery'
Specificity = require 'specificity'
Theme = require 'theme'
configDirPath = fs.absolute("~/.atom")
configJsonPath = fs.join(configDirPath, "config.json")
@@ -31,6 +32,9 @@ class Config
@requireUserInitScript()
atom.loadPackages()
themeName = config.get("core.theme") ? 'IR_Black'
Theme.load(themeName)
loadUserConfig: ->
if fs.exists(configJsonPath)
userConfig = JSON.parse(fs.read(configJsonPath))

View File

@@ -10,7 +10,6 @@ Project = require 'project'
Pane = require 'pane'
PaneColumn = require 'pane-column'
PaneRow = require 'pane-row'
Theme = require 'theme'
module.exports =
class RootView extends View
@@ -41,8 +40,6 @@ class RootView extends View
config.load()
Theme.load(config.get("core.theme") ? 'IR_Black')
@handleEvents()
if pathToOpen