mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Load themes from Config.load
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user