diff options
| author | P T Weir <phil.weir@flaxandteal.co.uk> | 2024-07-23 12:03:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-23 12:03:00 +0100 |
| commit | 17ed668aacd067c645d7de19d4dc7ae652aa760a (patch) | |
| tree | 93c67921f62554b35a2b4980dceca60ddf015903 /crates/atuin-client/src/settings.rs | |
| parent | feat(gui): background terminals and more (#2303) (diff) | |
| download | atuin-17ed668aacd067c645d7de19d4dc7ae652aa760a.zip | |
fix(themes): Restore default theme, refactor (#2294)
* fix(theme): let the base colour remain unchanged
* fix(theme): split out default
* fix(theme): make base theme 'default' not an empty string
* wip(theme): return styles, not colors
* wip(theme): tidy up module structure a little
* wip(theme): removed unhandled references to foreground_color
* chore: fix cargo fmt
* feat(theme): allow crossterm-deserializable colors
Diffstat (limited to 'crates/atuin-client/src/settings.rs')
| -rw-r--r-- | crates/atuin-client/src/settings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index a83f36bb..64cb4f3a 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -340,7 +340,7 @@ pub struct Preview { #[derive(Clone, Debug, Deserialize, Serialize)] pub struct Theme { - /// Name of desired theme ("" for base) + /// Name of desired theme ("default" for base) pub name: String, /// Whether any available additional theme debug should be shown @@ -756,7 +756,7 @@ impl Settings { .set_default("daemon.socket_path", socket_path.to_str())? .set_default("daemon.systemd_socket", false)? .set_default("daemon.tcp_port", 8889)? - .set_default("theme.name", "")? + .set_default("theme.name", "default")? .set_default("theme.debug", None::<bool>)? .set_default( "prefers_reduced_motion", |
