summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-05-27 11:52:09 -0400
committerGitHub <noreply@github.com>2021-05-27 11:52:09 -0400
commit233719c09a4093d73d9a770b1e9de4592c2b9224 (patch)
tree99e4ef6ec0a317d167a6756a9aca756c3fa55d9e
parent9de714a8a93f9c353abf5979f74b676fe6397b04 (diff)
Infer that a theme is light if its name contains "light" (#617)
-rw-r--r--src/options/theme.rs2
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] = [