summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorChristoph Rüßler <christoph.ruessler@mailbox.org>2023-06-25 14:09:40 +0200
committerGitHub <noreply@github.com>2023-06-25 14:09:40 +0200
commit3c9c266c01cddb583d38d5eeac853b6091ced0c4 (patch)
treea1672382d733d28cac5ef5c6d47cc21def52e5cf /src/main.rs
parent999912c3474f019dc6d3bf1f31b09c30b6d4fb1a (diff)
Simplify theme overrides (#1652)
* Simplify theme overrides Theme overrides are now loaded the same way key overrides are loaded. The config file, `theme.ron`, does not have to contain a complete theme anymore. Instead, it is possible to specify only the values that are supposed to override their corresponding default values. * Document breaking change in changelog * Test that override differs from default * Convert existing theme to patch
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs
index b1c0ed1f..6cab1fa0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -138,9 +138,7 @@ fn main() -> Result<()> {
let key_config = KeyConfig::init()
.map_err(|e| eprintln!("KeyConfig loading error: {e}"))
.unwrap_or_default();
- let theme = Theme::init(&cliargs.theme)
- .map_err(|e| eprintln!("Theme loading error: {e}"))
- .unwrap_or_default();
+ let theme = Theme::init(&cliargs.theme);
setup_terminal()?;
defer! {