on master help sign in
make casing consistent with other configuration
commit7bc324fde986fab2ded2ad29d7b5244521eddc44 authorPascal Kuthe <pascal.kuthe@semimod.de> dateThu 6 Oct 2022, 20:50 (4 years ago) parent114610f
4 files changed+11−11
book/src/themes.md+3−3 helix-view/src/theme.rs+2−2 runtime/themes/dark_plus.toml+2−2 runtime/themes/onedark.toml+4−4
book/src/themes.md+3−3
@@ -13,7 +13,7 @@ The default theme.toml can be found [here](https://github.com/helix-editor/helix
1313Each line in the theme file is specified as below:
1414
1515```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"] }
1717```
1818
1919where `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.
9191
9292### Underline Style
9393
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`.
9595
9696Some styles might not be supported by your terminal emulator.
9797
@@ -101,7 +101,7 @@ Some styles might not be supported by your terminal emulator.
101101| `curl` |
102102| `dashed` |
103103| `dot` |
104−| `double-line` |
104+| `double_line` |
105105
106106
107107### Scopes
helix-view/src/theme.rs+2−2
@@ -277,8 +277,8 @@ impl ThemePalette {
277277 match name.as_str() {
278278 "fg" => *style = style.fg(self.parse_color(value)?),
279279 "bg" => *style = style.bg(self.parse_color(value)?),
280− "underline_color" => *style = style.underline_color(self.parse_color(value)?),
281− "underline_style" => {
280+ "underline-color" => *style = style.underline_color(self.parse_color(value)?),
281+ "underline-style" => {
282282 warn!("found style");
283283 *style = style.underline_style(Self::parse_underline_style(&value)?)
284284 }
runtime/themes/dark_plus.toml+2−2
@@ -92,8 +92,8 @@
9292"info" = { fg = "light_blue" }
9393"hint" = { fg = "light_gray3" }
9494
95−"diagnostic.error" = {underline_color = "red", underline_style = "curl"}
96−"diagnostic" = {underline_color = "gold", underline_style = "curl" }
95+"diagnostic.error" = {underline-color = "red", underline-style = "curl"}
96+"diagnostic" = {underline-color = "gold", underline-style = "curl" }
9797
9898[palette]
9999white = "#ffffff"
runtime/themes/onedark.toml+4−4
@@ -39,10 +39,10 @@
3939"diff.delta" = "gold"
4040"diff.minus" = "red"
4141
42−"diagnostic.info" = { underline_color = "blue", underline_style = "curl" }
43−"diagnostic.hint" = { underline_color = "green", underline_style = "curl" }
44−"diagnostic.warning" = { underline_color = "yellow", underline_style = "curl" }
45−"diagnostic.error" = { underline_color = "red", underline_style = "curl" }
42+"diagnostic.info" = { underline-color = "blue", underline-style = "curl" }
43+"diagnostic.hint" = { underline-color = "green", underline-style = "curl" }
44+"diagnostic.warning" = { underline-color = "yellow", underline-style = "curl" }
45+"diagnostic.error" = { underline-color = "red", underline-style = "curl" }
4646"info" = { fg = "blue", modifiers = ["bold"] }
4747"hint" = { fg = "green", modifiers = ["bold"] }
4848"warning" = { fg = "yellow", modifiers = ["bold"] }