mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 08:04:11 +08:00
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:
parent
fa002b82a5
commit
0d47133aef
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue