on master help sign in
Rename reset to default (#8114)

Use `default` instead of `reset`, as this is the conventional name for ANSI codes 39/49. The word `reset` should be reserved for ANSI code `0`, which resets both fg and bg colors at once, while also removing all modifiers. While the code uses the value name `Reset`, this is misleading and should not leak into the user space.

commit7fffc0a5d100685f2145c9666653fc03151b9a62 authorchtenb <ctenbrinke@gmail.com> dateWed 30 Aug 2023, 09:38 (3 years ago) parent0cb595e
2 files changed+2−2
book/src/themes.md+1−1 helix-view/src/theme.rs+1−1
book/src/themes.md+1−1
@@ -70,7 +70,7 @@ over it and is merged into the default palette.
7070
7171| Color Name |
7272| --- |
73−| `reset` |
73+| `default` |
7474| `black` |
7575| `red` |
7676| `green` |
helix-view/src/theme.rs+1−1
@@ -359,7 +359,7 @@ impl Default for ThemePalette {
359359 fn default() -> Self {
360360 Self {
361361 palette: hashmap! {
362− "reset".to_string() => Color::Reset,
362+ "default".to_string() => Color::Reset,
363363 "black".to_string() => Color::Black,
364364 "red".to_string() => Color::Red,
365365 "green".to_string() => Color::Green,