aboutsummaryrefslogtreecommitdiff
path: root/runtime/themes
diff options
context:
space:
mode:
authorCarsten Führmann2024-03-17 23:06:23 +0000
committerGitHub2024-03-17 23:06:23 +0000
commiteead105f94c552259cdbf1f572d047cbabb24c49 (patch)
treeb83147d73956e02820c6a472c13aaaa24ffcb84c /runtime/themes
parent64389f97fe8e226a0bcf19cdc292eaf7d42478af (diff)
Fix selected text background in toykonight (#9789)
Before the fix, the color that the original (Neovim) tokyonight uses for Neovim's visual mode was used in Helix for highlighting the selected item in the picker. But for the highlighting of selected _text_ in Helix (corresponding to Neovim's visual mode), a much darker background was used. This made it very hard to pick out selected text, in particular in suboptimal lighting conditions. I swapped the two colors, so that text selection now looks like in Neovim, while selected items in the picker are highlighted a bit less strongly. (But still easy to see because the whole line is highlighted.)
Diffstat (limited to 'runtime/themes')
-rw-r--r--runtime/themes/tokyonight.toml10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/themes/tokyonight.toml b/runtime/themes/tokyonight.toml
index fbd8f2ed..be796857 100644
--- a/runtime/themes/tokyonight.toml
+++ b/runtime/themes/tokyonight.toml
@@ -76,15 +76,15 @@ hint = { fg = "hint" }
"ui.menu" = { bg = "bg-menu", fg = "fg" }
"ui.menu.selected" = { bg = "fg-selected" }
"ui.popup" = { bg = "bg-menu", fg = "border-highlight" }
-"ui.selection" = { bg = "bg-highlight" }
-"ui.selection.primary" = { bg = "bg-highlight" }
+"ui.selection" = { bg = "bg-selection" }
+"ui.selection.primary" = { bg = "bg-selection" }
"ui.statusline" = { bg = "bg-menu", fg = "fg-dark" }
"ui.statusline.inactive" = { bg = "bg-menu", fg = "fg-gutter" }
"ui.statusline.normal" = { bg = "blue", fg = "bg", modifiers = ["bold"] }
"ui.statusline.insert" = { bg = "light-green", fg = "bg", modifiers = ["bold"] }
"ui.statusline.select" = { bg = "magenta", fg = "bg", modifiers = ["bold"] }
"ui.text" = { bg = "bg", fg = "fg" }
-"ui.text.focus" = { bg = "bg-visual" }
+"ui.text.focus" = { bg = "bg-focus" }
"ui.text.inactive" = { fg = "comment", modifiers = ["italic"] }
"ui.text.info" = { bg = "bg-menu", fg = "fg" }
"ui.virtual.ruler" = { bg = "fg-gutter" }
@@ -126,6 +126,6 @@ border = "#15161e"
border-highlight = "#27a1b9"
bg = "#1a1b26"
bg-inlay = "#1a2b32"
-bg-highlight = "#292e42"
+bg-selection = "#283457"
bg-menu = "#16161e"
-bg-visual = "#283457"
+bg-focus = "#292e42"