fix(onboarding): Do not load themes in the onboarding window

Do not load user themes into the onboarding window, because it uses a wide range of hard-coded colors and assets and should always be on-brand.
This commit is contained in:
Ben Gotow 2016-03-03 18:14:03 -08:00
parent fa002b82a5
commit 0d47133aef

View file

@ -201,6 +201,11 @@ class ThemeManager
console.warn("Enabled theme '#{themeName}' is not installed.")
false
# Do not load user themes into the onboarding window, because it uses
# a wide range of hard-coded colors and assets and should always be on-brand.
if NylasEnv.getWindowType() is 'onboarding'
themeNames = []
# Use a built-in theme any time the configured themes are not
# available.
if themeNames.length is 0