Skip to content

Commit 7bc324f

Browse files
committed
make casing consistent with other configuration
1 parent 114610f commit 7bc324f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

book/src/themes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The default theme.toml can be found [here](https://github.com/helix-editor/helix
1313
Each 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

1919
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.
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

9696
Some 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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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]
9999
white = "#ffffff"

runtime/themes/onedark.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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"] }

0 commit comments

Comments
 (0)