Make color0 distinct from background/foreground and fix helix theme (#5538)
* Make color0 distinct from background/foreground The majority of themes have color0 available as a subtle offset from the background. For flexoki-light, because color0 matched foreground, it wasn't subtle, and would cause invisible text when used as a background color (e.g., in text editor rulers). For vantablack, ethereal, hackerman, and white, color0 matched background and would cause invisible text when a theme wanted text to be de-emphasized. This patch makes it consistently a subtle offset from background. * Make helix selection theme colors more subtle Helix is more usable if the selection background is subtle. This is primarily because of [[1]], which makes a bright selection like we had before often make the foreground text unreadable in the picker preview. [1]: https://github.com/helix-editor/helix/issues/12405
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
"ui.bufferline.active" = { fg = "foreground", bg = "background", underline = { color = "color5", style = "line" } }
|
||||
|
||||
"ui.text" = "foreground"
|
||||
"ui.text.focus" = { fg = "foreground", modifiers = ["bold"] }
|
||||
"ui.text.focus" = { fg = "foreground", bg = "color0", modifiers = ["bold"] }
|
||||
"ui.text.inactive" = { fg = "color8" }
|
||||
"ui.text.directory" = { fg = "color4" }
|
||||
|
||||
@@ -87,8 +87,7 @@
|
||||
"ui.virtual.jump-label" = { fg = "color1", modifiers = ["bold"] }
|
||||
"ui.virtual.whitespace" = "color8"
|
||||
|
||||
"ui.selection" = { fg = "selection_foreground", bg = "selection_background" }
|
||||
"ui.selection.primary" = { fg = "selection_foreground", bg = "selection_background" }
|
||||
"ui.selection" = { bg = "color0" }
|
||||
|
||||
"ui.cursor" = { fg = "background", bg = "cursor" }
|
||||
"ui.cursor.primary" = { fg = "background", bg = "cursor" }
|
||||
@@ -99,7 +98,7 @@
|
||||
|
||||
"ui.cursorline.primary" = { bg = "color0" }
|
||||
|
||||
"ui.highlight" = { fg = "selection_foreground", bg = "selection_background", modifiers = ["bold"] }
|
||||
"ui.highlight" = { bg = "color0", modifiers = ["bold"] }
|
||||
|
||||
"ui.menu" = { fg = "foreground", bg = "background" }
|
||||
"ui.menu.selected" = { fg = "background", bg = "foreground", modifiers = ["bold"] }
|
||||
|
||||
Reference in New Issue
Block a user