diff --git a/base16_terminal.toml b/base16_terminal.toml index e613526f4..a76cfd7e8 100644 --- a/base16_terminal.toml +++ b/base16_terminal.toml @@ -1,7 +1,7 @@ # Author: NNB "ui.menu" = "black" -"ui.menu.selected" = { fg = "white", bg = "black" } +"ui.menu.selected" = { modifiers = ["reversed"] } "ui.linenr" = { fg = "light-gray", bg = "black" } "ui.popup" = { bg = "black" } "ui.window" = { bg = "black" } @@ -9,12 +9,10 @@ "ui.selection" = { fg = "gray", modifiers = ["reversed"] } "comment" = { fg = "light-gray", modifiers = ["italic"] } "ui.statusline" = { fg = "white", bg = "black" } +"ui.statusline.inactive" = { fg = "gray", bg = "black" } "ui.help" = { fg = "white", bg = "black" } "ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] } -"ui.cursor.primary" = { fg = "white", modifiers = ["reversed"] } #FIXME -"ui.text" = "white" #FIXME -"operator" = "white" #FIXME -"ui.text.focus" = "white" #FIXME +"ui.cursor.primary" = { modifiers = ["reversed"] } "variable" = "light-red" "constant.numeric" = "yellow" "constant" = "yellow" @@ -30,8 +28,6 @@ "keyword" = "light-magenta" "label" = "light-magenta" "namespace" = "light-magenta" -"ui.popup" = { bg = "black" } -"ui.window" = { bg = "base00" } "ui.help" = { fg = "white", bg = "black" } "info" = "light-gray" diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs index a5dc06098..6ca021a90 100644 --- a/helix-view/src/theme.rs +++ b/helix-view/src/theme.rs @@ -151,7 +151,7 @@ impl Theme { pub fn get(&self, scope: &str) -> Style { self.try_get(scope) - .unwrap_or_else(|| Style::default().fg(Color::Rgb(0, 0, 255))) + .unwrap_or_default() } pub fn try_get(&self, scope: &str) -> Option