mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-11 09:55:04 +03:00
change to .unwrap_or_default() and fix ui.window and ui.statusline
This commit is contained in:
parent
3080be8268
commit
d9727868dd
@ -1,7 +1,7 @@
|
|||||||
# Author: NNB <nnbnh@protonmail.com>
|
# Author: NNB <nnbnh@protonmail.com>
|
||||||
|
|
||||||
"ui.menu" = "black"
|
"ui.menu" = "black"
|
||||||
"ui.menu.selected" = { fg = "white", bg = "black" }
|
"ui.menu.selected" = { modifiers = ["reversed"] }
|
||||||
"ui.linenr" = { fg = "light-gray", bg = "black" }
|
"ui.linenr" = { fg = "light-gray", bg = "black" }
|
||||||
"ui.popup" = { bg = "black" }
|
"ui.popup" = { bg = "black" }
|
||||||
"ui.window" = { bg = "black" }
|
"ui.window" = { bg = "black" }
|
||||||
@ -9,12 +9,10 @@
|
|||||||
"ui.selection" = { fg = "gray", modifiers = ["reversed"] }
|
"ui.selection" = { fg = "gray", modifiers = ["reversed"] }
|
||||||
"comment" = { fg = "light-gray", modifiers = ["italic"] }
|
"comment" = { fg = "light-gray", modifiers = ["italic"] }
|
||||||
"ui.statusline" = { fg = "white", bg = "black" }
|
"ui.statusline" = { fg = "white", bg = "black" }
|
||||||
|
"ui.statusline.inactive" = { fg = "gray", bg = "black" }
|
||||||
"ui.help" = { fg = "white", bg = "black" }
|
"ui.help" = { fg = "white", bg = "black" }
|
||||||
"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] }
|
"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] }
|
||||||
"ui.cursor.primary" = { fg = "white", modifiers = ["reversed"] } #FIXME
|
"ui.cursor.primary" = { modifiers = ["reversed"] }
|
||||||
"ui.text" = "white" #FIXME
|
|
||||||
"operator" = "white" #FIXME
|
|
||||||
"ui.text.focus" = "white" #FIXME
|
|
||||||
"variable" = "light-red"
|
"variable" = "light-red"
|
||||||
"constant.numeric" = "yellow"
|
"constant.numeric" = "yellow"
|
||||||
"constant" = "yellow"
|
"constant" = "yellow"
|
||||||
@ -30,8 +28,6 @@
|
|||||||
"keyword" = "light-magenta"
|
"keyword" = "light-magenta"
|
||||||
"label" = "light-magenta"
|
"label" = "light-magenta"
|
||||||
"namespace" = "light-magenta"
|
"namespace" = "light-magenta"
|
||||||
"ui.popup" = { bg = "black" }
|
|
||||||
"ui.window" = { bg = "base00" }
|
|
||||||
"ui.help" = { fg = "white", bg = "black" }
|
"ui.help" = { fg = "white", bg = "black" }
|
||||||
|
|
||||||
"info" = "light-gray"
|
"info" = "light-gray"
|
||||||
|
@ -151,7 +151,7 @@ impl Theme {
|
|||||||
|
|
||||||
pub fn get(&self, scope: &str) -> Style {
|
pub fn get(&self, scope: &str) -> Style {
|
||||||
self.try_get(scope)
|
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<Style> {
|
pub fn try_get(&self, scope: &str) -> Option<Style> {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"ui.background" = { bg = "base00" }
|
"ui.background" = { bg = "base00" }
|
||||||
"ui.menu" = "base01"
|
"ui.menu" = "base01"
|
||||||
"ui.menu.selected" = { fg = "base04", bg = "base01" }
|
"ui.menu.selected" = { fg = "base01", bg = "base04" }
|
||||||
"ui.linenr" = { fg = "base03", bg = "base01" }
|
"ui.linenr" = { fg = "base03", bg = "base01" }
|
||||||
"ui.popup" = { bg = "base01" }
|
"ui.popup" = { bg = "base01" }
|
||||||
"ui.window" = { bg = "base01" }
|
"ui.window" = { bg = "base01" }
|
||||||
@ -31,8 +31,6 @@
|
|||||||
"keyword" = "base0E"
|
"keyword" = "base0E"
|
||||||
"label" = "base0E"
|
"label" = "base0E"
|
||||||
"namespace" = "base0E"
|
"namespace" = "base0E"
|
||||||
"ui.popup" = { bg = "base01" }
|
|
||||||
"ui.window" = { bg = "base00" }
|
|
||||||
"ui.help" = { fg = "base06", bg = "base01" }
|
"ui.help" = { fg = "base06", bg = "base01" }
|
||||||
|
|
||||||
"info" = "base03"
|
"info" = "base03"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
"ui.background" = { bg = "base00" }
|
"ui.background" = { bg = "base00" }
|
||||||
"ui.menu" = "base01"
|
"ui.menu" = "base01"
|
||||||
"ui.menu.selected" = { fg = "base04", bg = "base01" }
|
"ui.menu.selected" = { fg = "base01", bg = "base04" }
|
||||||
"ui.linenr" = { fg = "base03", bg = "base01" }
|
"ui.linenr" = { fg = "base03", bg = "base01" }
|
||||||
"ui.popup" = { bg = "base01" }
|
"ui.popup" = { bg = "base01" }
|
||||||
"ui.window" = { bg = "base01" }
|
"ui.window" = { bg = "base01" }
|
||||||
@ -31,8 +31,6 @@
|
|||||||
"keyword" = "base0E"
|
"keyword" = "base0E"
|
||||||
"label" = "base0E"
|
"label" = "base0E"
|
||||||
"namespace" = "base0E"
|
"namespace" = "base0E"
|
||||||
"ui.popup" = { bg = "base01" }
|
|
||||||
"ui.window" = { bg = "base00" }
|
|
||||||
"ui.help" = { fg = "base06", bg = "base01" }
|
"ui.help" = { fg = "base06", bg = "base01" }
|
||||||
|
|
||||||
"info" = "base03"
|
"info" = "base03"
|
||||||
|
@ -1,20 +1,17 @@
|
|||||||
# Author: NNB <nnbnh@protonmail.com>
|
# Author: NNB <nnbnh@protonmail.com>
|
||||||
|
|
||||||
"ui.menu" = "black"
|
"ui.menu" = "black"
|
||||||
"ui.menu.selected" = { fg = "white", bg = "black" }
|
"ui.menu.selected" = { modifiers = ["reversed"] }
|
||||||
"ui.linenr" = { fg = "gray", bg = "black" }
|
"ui.linenr" = { fg = "gray", bg = "black" }
|
||||||
"ui.popup" = { bg = "black" }
|
"ui.popup" = { modifiers = ["reversed"] }
|
||||||
"ui.window" = { bg = "black" }
|
|
||||||
"ui.linenr.selected" = { fg = "white", bg = "black", modifiers = ["bold"] }
|
"ui.linenr.selected" = { fg = "white", bg = "black", modifiers = ["bold"] }
|
||||||
"ui.selection" = { fg = "black", bg = "blue" }
|
"ui.selection" = { fg = "black", bg = "blue" }
|
||||||
"ui.selection.primary" = { fg = "white", bg = "blue" }
|
"ui.selection.primary" = { fg = "white", bg = "blue" }
|
||||||
"comment" = { fg = "gray" }
|
"comment" = { fg = "gray" }
|
||||||
"ui.statusline" = { fg = "white", bg = "black" }
|
"ui.statusline" = { fg = "black", bg = "white" }
|
||||||
"ui.help" = { fg = "white", bg = "black" }
|
"ui.statusline.inactive" = { fg = "gray", bg = "white" }
|
||||||
"ui.cursor" = { fg = "white", modifiers = ["reversed"] } #FIXME
|
"ui.help" = { modifiers = ["reversed"] }
|
||||||
"ui.text" = "white" #FIXME
|
"ui.cursor" = { modifiers = ["reversed"] }
|
||||||
"operator" = "white" #FIXME
|
|
||||||
"ui.text.focus" = "white" #FIXME
|
|
||||||
"variable" = "red"
|
"variable" = "red"
|
||||||
"constant.numeric" = "yellow"
|
"constant.numeric" = "yellow"
|
||||||
"constant" = "yellow"
|
"constant" = "yellow"
|
||||||
@ -30,8 +27,6 @@
|
|||||||
"keyword" = "magenta"
|
"keyword" = "magenta"
|
||||||
"label" = "magenta"
|
"label" = "magenta"
|
||||||
"namespace" = "magenta"
|
"namespace" = "magenta"
|
||||||
"ui.popup" = { bg = "black" }
|
|
||||||
"ui.window" = { bg = "base00" }
|
|
||||||
"ui.help" = { fg = "white", bg = "black" }
|
"ui.help" = { fg = "white", bg = "black" }
|
||||||
|
|
||||||
"info" = "gray"
|
"info" = "gray"
|
||||||
|
Loading…
Reference in New Issue
Block a user