Skip to content

Commit

Permalink
Use base16_tty as 16-color default, fix theme name
Browse files Browse the repository at this point in the history
  • Loading branch information
Omnikar authored and archseer committed Dec 13, 2021
1 parent d972786 commit 42e6d96
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
File renamed without changes.
5 changes: 2 additions & 3 deletions helix-view/src/theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub static DEFAULT_THEME: Lazy<Theme> = Lazy::new(|| {
toml::from_slice(include_bytes!("../../theme.toml")).expect("Failed to parse default theme")
});
pub static BASE16_DEFAULT_THEME: Lazy<Theme> = Lazy::new(|| {
toml::from_slice(include_bytes!("../../base16_tty.toml"))
toml::from_slice(include_bytes!("../../base16_theme.toml"))
.expect("Failed to parse base 16 default theme")
});

Expand Down Expand Up @@ -150,8 +150,7 @@ impl Theme {
}

pub fn get(&self, scope: &str) -> Style {
self.try_get(scope)
.unwrap_or_default()
self.try_get(scope).unwrap_or_default()
}

pub fn try_get(&self, scope: &str) -> Option<Style> {
Expand Down
File renamed without changes.

0 comments on commit 42e6d96

Please sign in to comment.