mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 19:03:30 +04:00
fa4934cff9
* Default rulers color to red Currently if the theme a user is using doesn't have `ui.virtual.rulers` set and they set up a ruler it just fails silently making it really hard to figure out what went wrong. Did they set incorrectly set the ruler? Are they using an outdated version of Helix that doesn't support rulers? This happened to me today, I even switched to the default theme with the assumption that maybe my theme just doesn't have the rulers setup properly and it still didn't work. Not sure if this is a good idea or not, feel free to suggest better alternatives! * Use builtin Style methods instead of Bevy style defaults Co-authored-by: Michael Davis <mcarsondavis@gmail.com> * Only default the style if there's no ui or ui.virtual * Update themes style from ui.virtual to ui.virtual.whitespace * Revert ui.virtual change in onelight theme * Prefer unwrap_or_else Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
73 lines
2.3 KiB
TOML
73 lines
2.3 KiB
TOML
# Author : Wojciech Kępka <wojciech@wkepka.dev>
|
|
|
|
"attribute" = "#dc7759"
|
|
"keyword" = { fg = "#dcb659", modifiers = ["bold"] }
|
|
"keyword.directive" = "#dcb659"
|
|
"namespace" = "#d32c5d"
|
|
"punctuation" = "#dc7759"
|
|
"punctuation.delimiter" = "#dc7759"
|
|
"operator" = { fg = "#dc7759", modifiers = ["bold"] }
|
|
"special" = "#7fdc59"
|
|
"variable.other.member" = "#c6b8ad"
|
|
"variable" = "#c6b8ad"
|
|
"variable.parameter" = "#c6b8ad"
|
|
"type" = "#dc597f"
|
|
"type.builtin" = { fg = "#d32c5d", modifiers = ["bold"] }
|
|
"constructor" = "#dc597f"
|
|
"function" = "#59dcd8"
|
|
"function.macro" = { fg = "#dc7759", modifiers = ["bold"] }
|
|
"function.builtin" = { fg = "#59dcd8", modifiers = ["bold"] }
|
|
"comment" = "#627d9d"
|
|
"variable.builtin" = "#c6b8ad"
|
|
"constant" = "#59dcb7"
|
|
"constant.builtin" = "#59dcb7"
|
|
"string" = "#59dcb7"
|
|
"constant.numeric" = "#59c0dc"
|
|
"constant.character.escape" = { fg = "#7fdc59", modifiers = ["bold"] }
|
|
"label" = "#59c0dc"
|
|
|
|
"module" = "#d32c5d"
|
|
|
|
# TODO
|
|
"markup.heading" = "blue"
|
|
"markup.list" = "red"
|
|
"markup.bold" = { fg = "yellow", modifiers = ["bold"] }
|
|
"markup.italic" = { fg = "magenta", modifiers = ["italic"] }
|
|
"markup.link.url" = { fg = "yellow", modifiers = ["underlined"] }
|
|
"markup.link.text" = "red"
|
|
"markup.quote" = "cyan"
|
|
"markup.raw" = "green"
|
|
|
|
"diff.plus" = "#59dcb7"
|
|
"diff.delta" = "#dc7759"
|
|
"diff.minus" = "#dc597f"
|
|
|
|
"ui.background" = { bg = "#161c23" }
|
|
"ui.linenr" = { fg = "#415367" }
|
|
"ui.linenr.selected" = { fg = "#e5ded6" } # TODO
|
|
"ui.statusline" = { fg = "#e5ded6", bg = "#232d38" }
|
|
"ui.statusline.inactive" = { fg = "#c6b8ad", bg = "#232d38" }
|
|
"ui.popup" = { bg = "#232d38" }
|
|
"ui.window" = { bg = "#232d38" }
|
|
"ui.help" = { bg = "#232d38", fg = "#e5ded6" }
|
|
|
|
"ui.text" = { fg = "#e5ded6" }
|
|
"ui.text.focus" = { fg = "#e5ded6", modifiers= ["bold"] }
|
|
"ui.virtual.whitespace" = "#627d9d"
|
|
|
|
"ui.selection" = { bg = "#313f4e" }
|
|
# "ui.cursor.match" # TODO might want to override this because dimmed is not widely supported
|
|
"ui.cursor.match" = { fg = "#313f4e", bg = "#dc7759" }
|
|
"ui.cursor" = { fg = "#ABB2BF", modifiers = ["reversed"] }
|
|
|
|
"ui.menu" = { fg = "#e5ded6bg", bg = "#232d38" }
|
|
"ui.menu.selected" = { bg = "#313f4e" }
|
|
|
|
"warning" = "#dc7759"
|
|
"error" = "#dc597f"
|
|
"info" = "#59dcb7"
|
|
"hint" = "#59c0dc"
|
|
|
|
# make diagnostic underlined, to distinguish with selection text.
|
|
diagnostic = { modifiers = ["underlined"] }
|