mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-26 11:23:31 +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>
74 lines
2.8 KiB
TOML
74 lines
2.8 KiB
TOML
# Author: RayGervais <raygervais@hotmail.ca>
|
|
|
|
"ui.background" = { bg = "base00" }
|
|
"ui.virtual.whitespace" = "base03"
|
|
"ui.menu" = { fg = "base05", bg = "base01" }
|
|
"ui.menu.selected" = { fg = "base01", bg = "base04" }
|
|
"ui.linenr" = { fg = "base03", bg = "base01" }
|
|
"ui.popup" = { bg = "base01" }
|
|
"ui.window" = { bg = "base01" }
|
|
"ui.linenr.selected" = { fg = "base04", bg = "base01", modifiers = ["bold"] }
|
|
"ui.selection" = { bg = "base02" }
|
|
"comment" = { fg = "base03", modifiers = ["italic"] }
|
|
"ui.statusline" = { fg = "base04", bg = "base01" }
|
|
"ui.cursor" = { fg = "base04", modifiers = ["reversed"] }
|
|
"ui.cursor.primary" = { fg = "base05", modifiers = ["reversed"] }
|
|
"ui.text" = "base05"
|
|
"operator" = "base05"
|
|
"ui.text.focus" = "base05"
|
|
"variable" = "base08"
|
|
"constant.numeric" = "base09"
|
|
"constant" = "base09"
|
|
"attributes" = "base09"
|
|
"type" = "base0A"
|
|
"ui.cursor.match" = { fg = "base0A", modifiers = ["underlined"] }
|
|
"string" = "base0B"
|
|
"variable.other.member" = "base0B"
|
|
"constant.character.escape" = "base0C"
|
|
"function" = "base0D"
|
|
"constructor" = "base0D"
|
|
"special" = "base0D"
|
|
"keyword" = "base0E"
|
|
"label" = "base0E"
|
|
"namespace" = "base0E"
|
|
"ui.help" = { fg = "base06", bg = "base01" }
|
|
|
|
"markup.heading" = "base0D"
|
|
"markup.list" = "base08"
|
|
"markup.bold" = { fg = "base0A", modifiers = ["bold"] }
|
|
"markup.italic" = { fg = "base0E", modifiers = ["italic"] }
|
|
"markup.link.url" = { fg = "base09", modifiers = ["underlined"] }
|
|
"markup.link.text" = "base08"
|
|
"markup.quote" = "base0C"
|
|
"markup.raw" = "base0B"
|
|
|
|
"diff.plus" = "base0B"
|
|
"diff.delta" = "base09"
|
|
"diff.minus" = "base08"
|
|
|
|
"diagnostic" = { modifiers = ["underlined"] }
|
|
"ui.gutter" = { bg = "base01" }
|
|
"info" = "base0D"
|
|
"hint" = "base03"
|
|
"debug" = "base03"
|
|
"warning" = "base09"
|
|
"error" = "base08"
|
|
|
|
[palette]
|
|
base00 = "#181818" # Default Background
|
|
base01 = "#282828" # Lighter Background (Used for status bars, line number and folding marks)
|
|
base02 = "#383838" # Selection Background
|
|
base03 = "#585858" # Comments, Invisibles, Line Highlighting
|
|
base04 = "#b8b8b8" # Dark Foreground (Used for status bars)
|
|
base05 = "#d8d8d8" # Default Foreground, Caret, Delimiters, Operators
|
|
base06 = "#e8e8e8" # Light Foreground (Not often used)
|
|
base07 = "#f8f8f8" # Light Background (Not often used)
|
|
base08 = "#ab4642" # Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
|
|
base09 = "#dc9656" # Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
|
base0A = "#f7ca88" # Classes, Markup Bold, Search Text Background
|
|
base0B = "#a1b56c" # Strings, Inherited Class, Markup Code, Diff Inserted
|
|
base0C = "#86c1b9" # Support, Regular Expressions, Escape Characters, Markup Quotes
|
|
base0D = "#7cafc2" # Functions, Methods, Attribute IDs, Headings
|
|
base0E = "#ba8baf" # Keywords, Storage, Selector, Markup Italic, Diff Changed
|
|
base0F = "#a16946" # Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
|