on master help sign in
make casing consistent with other configuration
7bc324fPascal Kuthe
book/src/themes.md+3−3
@@ -13,7 +13,7 @@ The default theme.toml can be found [here](https://github.com/helix-editor/helix
13Each line in the theme file is specified as below:
13Each line in the theme file is specified as below:
14
14
15```toml
15```toml
16−key = { fg = "#ffffff", bg = "#000000", underline_color = "#ff0000", underline_style = "curl", modifiers = ["bold", "italic"] }
16+key = { fg = "#ffffff", bg = "#000000", underline-color = "#ff0000", underline-style = "curl", modifiers = ["bold", "italic"] }
17```
17```
18
18
19where `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.
19where `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.
91
91
92### Underline Style
92### Underline Style
93
93
94−One of the following values may be used as an `underline_styles`.
94+One of the following values may be used as an `underline-style`.
95
95
96Some styles might not be supported by your terminal emulator.
96Some styles might not be supported by your terminal emulator.
97
97
@@ -101,7 +101,7 @@ Some styles might not be supported by your terminal emulator.
101| `curl` |
101| `curl` |
102| `dashed` |
102| `dashed` |
103| `dot` |
103| `dot` |
104−| `double-line` |
104+| `double_line` |
105
105
106
106
107### Scopes
107### Scopes
helix-view/src/theme.rs+2−2
@@ -277,8 +277,8 @@ impl ThemePalette {
277 match name.as_str() {
277 match name.as_str() {
278 "fg" => *style = style.fg(self.parse_color(value)?),
278 "fg" => *style = style.fg(self.parse_color(value)?),
279 "bg" => *style = style.bg(self.parse_color(value)?),
279 "bg" => *style = style.bg(self.parse_color(value)?),
280− "underline_color" => *style = style.underline_color(self.parse_color(value)?),
280+ "underline-color" => *style = style.underline_color(self.parse_color(value)?),
281− "underline_style" => {
281+ "underline-style" => {
282 warn!("found style");
282 warn!("found style");
283 *style = style.underline_style(Self::parse_underline_style(&value)?)
283 *style = style.underline_style(Self::parse_underline_style(&value)?)
284 }
284 }
runtime/themes/dark_plus.toml+2−2
@@ -92,8 +92,8 @@
92"info" = { fg = "light_blue" }
92"info" = { fg = "light_blue" }
93"hint" = { fg = "light_gray3" }
93"hint" = { fg = "light_gray3" }
94
94
95−"diagnostic.error" = {underline_color = "red", underline_style = "curl"}
95+"diagnostic.error" = {underline-color = "red", underline-style = "curl"}
96−"diagnostic" = {underline_color = "gold", underline_style = "curl" }
96+"diagnostic" = {underline-color = "gold", underline-style = "curl" }
97
97
98[palette]
98[palette]
99white = "#ffffff"
99white = "#ffffff"
runtime/themes/onedark.toml+4−4
@@ -39,10 +39,10 @@
39"diff.delta" = "gold"
39"diff.delta" = "gold"
40"diff.minus" = "red"
40"diff.minus" = "red"
41
41
42−"diagnostic.info" = { underline_color = "blue", underline_style = "curl" }
42+"diagnostic.info" = { underline-color = "blue", underline-style = "curl" }
43−"diagnostic.hint" = { underline_color = "green", underline_style = "curl" }
43+"diagnostic.hint" = { underline-color = "green", underline-style = "curl" }
44−"diagnostic.warning" = { underline_color = "yellow", underline_style = "curl" }
44+"diagnostic.warning" = { underline-color = "yellow", underline-style = "curl" }
45−"diagnostic.error" = { underline_color = "red", underline_style = "curl" }
45+"diagnostic.error" = { underline-color = "red", underline-style = "curl" }
46"info" = { fg = "blue", modifiers = ["bold"] }
46"info" = { fg = "blue", modifiers = ["bold"] }
47"hint" = { fg = "green", modifiers = ["bold"] }
47"hint" = { fg = "green", modifiers = ["bold"] }
48"warning" = { fg = "yellow", modifiers = ["bold"] }
48"warning" = { fg = "yellow", modifiers = ["bold"] }