mirror of
https://github.com/atom/atom.git
synced 2026-02-13 08:04:56 -05:00
Reverse the loading order of themes.
We want the first/top-most theme's css to be loaded after the others so its styles will override styles in the other themes.
This commit is contained in:
@@ -39,6 +39,11 @@ class ThemeManager
|
||||
config.observe 'core.themes', (themeNames) =>
|
||||
@unload()
|
||||
themeNames = [themeNames] unless _.isArray(themeNames)
|
||||
|
||||
# Reverse so the first (top) theme is loaded after the others. We want
|
||||
# the first/top theme to override later themes in the stack.
|
||||
(themeNames = _.clone(themeNames)).reverse()
|
||||
|
||||
@activateTheme(themeName) for themeName in themeNames
|
||||
@loadUserStylesheet()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user