Skip to content

Commit

Permalink
Infer that a theme is light if its name contains "light"
Browse files Browse the repository at this point in the history
Fixes #598
  • Loading branch information
dandavison committed May 27, 2021
1 parent ebe08f9 commit 3b82946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options/theme.rs
Expand Up @@ -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] = [
Expand Down

0 comments on commit 3b82946

Please sign in to comment.