summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWest2023-08-29 06:18:27 +0000
committerGitHub2023-08-29 06:18:27 +0000
commit82cd44571569216bb18f37ee22965045574bdd1a (patch)
tree67366e477acecf39eef19cfe5566220df70b88d1
parent3ac2ac6dd6c517cf5e0d4a26a26c1343c45fbbde (diff)
add `reset` to the color palette (#8083)
-rw-r--r--book/src/themes.md1
-rw-r--r--helix-view/src/theme.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/book/src/themes.md b/book/src/themes.md
index 41a3fe10..d1518de8 100644
--- a/book/src/themes.md
+++ b/book/src/themes.md
@@ -70,6 +70,7 @@ over it and is merged into the default palette.
| Color Name |
| --- |
+| `reset` |
| `black` |
| `red` |
| `green` |
diff --git a/helix-view/src/theme.rs b/helix-view/src/theme.rs
index bf3379ca..7a9aae51 100644
--- a/helix-view/src/theme.rs
+++ b/helix-view/src/theme.rs
@@ -359,6 +359,7 @@ impl Default for ThemePalette {
fn default() -> Self {
Self {
palette: hashmap! {
+ "reset".to_string() => Color::Reset,
"black".to_string() => Color::Black,
"red".to_string() => Color::Red,
"green".to_string() => Color::Green,