on master help sign in
Use `base16_tty` as 16-color default, fix theme name
42e6d96Omnikar
runtime/themes/base16_tty.toml → base16_theme.tomlrenamed

The content is the same.

helix-view/src/theme.rs+2−3
@@ -16,7 +16,7 @@ pub static DEFAULT_THEME: Lazy<Theme> = Lazy::new(|| {
16 toml::from_slice(include_bytes!("../../theme.toml")).expect("Failed to parse default theme")
16 toml::from_slice(include_bytes!("../../theme.toml")).expect("Failed to parse default theme")
17});
17});
18pub static BASE16_DEFAULT_THEME: Lazy<Theme> = Lazy::new(|| {
18pub static BASE16_DEFAULT_THEME: Lazy<Theme> = Lazy::new(|| {
19− toml::from_slice(include_bytes!("../../base16_tty.toml"))
19+ toml::from_slice(include_bytes!("../../base16_theme.toml"))
20 .expect("Failed to parse base 16 default theme")
20 .expect("Failed to parse base 16 default theme")
21});
21});
22
22
@@ -150,8 +150,7 @@ impl Theme {
150 }
150 }
151
151
152 pub fn get(&self, scope: &str) -> Style {
152 pub fn get(&self, scope: &str) -> Style {
153− self.try_get(scope)
154− .unwrap_or_default()
153+ self.try_get(scope).unwrap_or_default()
155 }
154 }
156
155
157 pub fn try_get(&self, scope: &str) -> Option<Style> {
156 pub fn try_get(&self, scope: &str) -> Option<Style> {
base16_terminal.toml → runtime/themes/base16_terminal.tomlrenamed

The content is the same.