on master help sign in
Use `base16_tty` as 16-color default, fix theme name
commit42e6d96a75c743c2fa8da6c8a0587487b3c21bf0 authorOmnikar <Omnikar5@gmail.com> dateThu 2 Dec 2021, 22:34 (5 years ago) parentd972786
3 files changed+2−3
runtime/themes/base16_tty.toml → base16_theme.toml helix-view/src/theme.rs+2−3 base16_terminal.toml → runtime/themes/base16_terminal.toml
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(|| {
1616 toml::from_slice(include_bytes!("../../theme.toml")).expect("Failed to parse default theme")
1717});
1818pub 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"))
2020 .expect("Failed to parse base 16 default theme")
2121});
2222
@@ -150,8 +150,7 @@ impl Theme {
150150 }
151151
152152 pub fn get(&self, scope: &str) -> Style {
153− self.try_get(scope)
154− .unwrap_or_default()
153+ self.try_get(scope).unwrap_or_default()
155154 }
156155
157156 pub fn try_get(&self, scope: &str) -> Option<Style> {
base16_terminal.toml → runtime/themes/base16_terminal.tomlrenamed

The content is the same.