make casing consistent with other configuration

pull/4061/head
Pascal Kuthe 2 years ago
parent 114610f7dc
commit 7bc324fde9
No known key found for this signature in database
GPG Key ID: D715E8655AE166A6

@ -13,7 +13,7 @@ The default theme.toml can be found [here](https://github.com/helix-editor/helix
Each line in the theme file is specified as below: Each line in the theme file is specified as below:
```toml ```toml
key = { fg = "#ffffff", bg = "#000000", underline_color = "#ff0000", underline_style = "curl", modifiers = ["bold", "italic"] } key = { fg = "#ffffff", bg = "#000000", underline-color = "#ff0000", underline-style = "curl", modifiers = ["bold", "italic"] }
``` ```
where `key` represents what you want to style, `fg` specifies the foreground color, `bg` the background color, `underline_style` the underline style, `underline_color` the underline color (only meaningful if an underline style is enabled), and `modifiers` is a list of style modifiers. `bg`, `underline` and `modifiers` can be omitted to defer to the defaults. where `key` represents what you want to style, `fg` specifies the foreground color, `bg` the background color, `underline_style` the underline style, `underline_color` the underline color (only meaningful if an underline style is enabled), and `modifiers` is a list of style modifiers. `bg`, `underline` and `modifiers` can be omitted to defer to the defaults.
@ -91,7 +91,7 @@ Less common modifiers might not be supported by your terminal emulator.
### Underline Style ### Underline Style
One of the following values may be used as an `underline_styles`. One of the following values may be used as an `underline-style`.
Some styles might not be supported by your terminal emulator. Some styles might not be supported by your terminal emulator.
@ -101,7 +101,7 @@ Some styles might not be supported by your terminal emulator.
| `curl` | | `curl` |
| `dashed` | | `dashed` |
| `dot` | | `dot` |
| `double-line` | | `double_line` |
### Scopes ### Scopes

@ -277,8 +277,8 @@ impl ThemePalette {
match name.as_str() { match name.as_str() {
"fg" => *style = style.fg(self.parse_color(value)?), "fg" => *style = style.fg(self.parse_color(value)?),
"bg" => *style = style.bg(self.parse_color(value)?), "bg" => *style = style.bg(self.parse_color(value)?),
"underline_color" => *style = style.underline_color(self.parse_color(value)?), "underline-color" => *style = style.underline_color(self.parse_color(value)?),
"underline_style" => { "underline-style" => {
warn!("found style"); warn!("found style");
*style = style.underline_style(Self::parse_underline_style(&value)?) *style = style.underline_style(Self::parse_underline_style(&value)?)
} }

@ -92,8 +92,8 @@
"info" = { fg = "light_blue" } "info" = { fg = "light_blue" }
"hint" = { fg = "light_gray3" } "hint" = { fg = "light_gray3" }
"diagnostic.error" = {underline_color = "red", underline_style = "curl"} "diagnostic.error" = {underline-color = "red", underline-style = "curl"}
"diagnostic" = {underline_color = "gold", underline_style = "curl" } "diagnostic" = {underline-color = "gold", underline-style = "curl" }
[palette] [palette]
white = "#ffffff" white = "#ffffff"

@ -39,10 +39,10 @@
"diff.delta" = "gold" "diff.delta" = "gold"
"diff.minus" = "red" "diff.minus" = "red"
"diagnostic.info" = { underline_color = "blue", underline_style = "curl" } "diagnostic.info" = { underline-color = "blue", underline-style = "curl" }
"diagnostic.hint" = { underline_color = "green", underline_style = "curl" } "diagnostic.hint" = { underline-color = "green", underline-style = "curl" }
"diagnostic.warning" = { underline_color = "yellow", underline_style = "curl" } "diagnostic.warning" = { underline-color = "yellow", underline-style = "curl" }
"diagnostic.error" = { underline_color = "red", underline_style = "curl" } "diagnostic.error" = { underline-color = "red", underline-style = "curl" }
"info" = { fg = "blue", modifiers = ["bold"] } "info" = { fg = "blue", modifiers = ["bold"] }
"hint" = { fg = "green", modifiers = ["bold"] } "hint" = { fg = "green", modifiers = ["bold"] }
"warning" = { fg = "yellow", modifiers = ["bold"] } "warning" = { fg = "yellow", modifiers = ["bold"] }

Loading…
Cancel
Save