mirror of
https://github.com/atom/atom.git
synced 2026-02-17 10:01:25 -05:00
Load base stylesheets on ThemeManager construction
This commit is contained in:
@@ -558,8 +558,6 @@ class Atom extends Model
|
||||
console.warn error.message if error?
|
||||
|
||||
@config.load()
|
||||
@themes.loadBaseStylesheets()
|
||||
|
||||
@setBodyPlatformClass()
|
||||
document.head.appendChild(new StylesElement)
|
||||
@windowEventHandler = new WindowEventHandler(this)
|
||||
|
||||
@@ -17,6 +17,7 @@ class ThemeManager
|
||||
@packageManager.registerPackageActivator(this, ['theme'])
|
||||
@packageManager.onDidActivateInitialPackages =>
|
||||
@onDidChangeActiveThemes => @packageManager.reloadActivePackageStyleSheets()
|
||||
@loadBaseStylesheets()
|
||||
|
||||
###
|
||||
Section: Event Subscription
|
||||
|
||||
Reference in New Issue
Block a user