From 0d47133aef294deb2af495c97de58f737dcfd073 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 3 Mar 2016 18:14:03 -0800 Subject: [PATCH] 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. --- src/theme-manager.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/theme-manager.coffee b/src/theme-manager.coffee index 6e5011dae..364123c4d 100644 --- a/src/theme-manager.coffee +++ b/src/theme-manager.coffee @@ -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