diff options
author | Dan Davison <dandavison7@gmail.com> | 2021-05-27 11:52:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 11:52:09 -0400 |
commit | 233719c09a4093d73d9a770b1e9de4592c2b9224 (patch) | |
tree | 99e4ef6ec0a317d167a6756a9aca756c3fa55d9e /src | |
parent | 9de714a8a93f9c353abf5979f74b676fe6397b04 (diff) |
Infer that a theme is light if its name contains "light" (#617)
Diffstat (limited to 'src')
-rw-r--r-- | src/options/theme.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/options/theme.rs b/src/options/theme.rs index fa5cbef0..52de3ea0 100644 --- a/src/options/theme.rs +++ b/src/options/theme.rs @@ -35,7 +35,7 @@ pub fn set__is_light_mode__syntax_theme__syntax_set( } pub fn is_light_syntax_theme(theme: &str) -> bool { - LIGHT_SYNTAX_THEMES.contains(&theme) + LIGHT_SYNTAX_THEMES.contains(&theme) || theme.to_lowercase().contains("light") } const LIGHT_SYNTAX_THEMES: [&str; 6] = [ |