Skip to content

Commit

Permalink
Add default color for cursor match (helix-editor#370)
Browse files Browse the repository at this point in the history
* Add default color for cursor match

Not all terminals support dim, for those terminal that does not support
this (konsole, item2, wezterm), users cannot differentiate between match
and primary cursor. So set a color for this.

* Use alacritty dim color for match
  • Loading branch information
pickfire authored and cessen committed Jun 26, 2021
1 parent d13259a commit 636d6d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions runtime/themes/bogster.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"ui.text.focus" = { fg = "#e5ded6", modifiers= ["bold"] }

"ui.selection" = { bg = "#313f4e" }
# "ui.cursor.match" # TODO might want to override this because dimmed is not widely supported
"ui.menu.selected" = { fg = "#e5ded6", bg = "#313f4e" }

"warning" = "#dc7759"
Expand Down
1 change: 1 addition & 0 deletions runtime/themes/ingrid.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"ui.text.focus" = { fg = "#250E07", modifiers= ["bold"] }

"ui.selection" = { bg = "#540099" }
# "ui.cursor.match" # TODO might want to override this because dimmed is not widely supported
"ui.menu.selected" = { fg = "#D74E50", bg = "#F3EAE9" }

"warning" = "#D4A520"
Expand Down
1 change: 1 addition & 0 deletions runtime/themes/onedark.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@
"ui.text" = { fg = "#ABB2BF", bg = "#282C34" }
"ui.text.focus" = { fg = "#ABB2BF", bg = "#2C323C", modifiers = ['bold'] }
"ui.window" = { bg = "#3E4452" }
# "ui.cursor.match" # TODO might want to override this because dimmed is not widely supported
1 change: 1 addition & 0 deletions theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"ui.selection.primary" = { bg = "#540099" }
"ui.cursor.select" = { bg = "#6F44F0" }
"ui.cursor.insert" = { bg = "#802F00" }
"ui.cursor.match" = { fg = "#212121", bg = "#6C6999" }
"ui.menu.selected" = { fg = "#281733", bg = "#ffffff" } # revolver

"warning" = "#ffcd1c"
Expand Down

0 comments on commit 636d6d8

Please sign in to comment.