From 233719c09a4093d73d9a770b1e9de4592c2b9224 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Thu, 27 May 2021 11:52:09 -0400 Subject: Infer that a theme is light if its name contains "light" (#617) --- src/options/theme.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] = [ -- cgit v1.2.3