diff options
author | Christoph Rüßler <christoph.ruessler@mailbox.org> | 2023-06-25 14:09:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-25 14:09:40 +0200 |
commit | 3c9c266c01cddb583d38d5eeac853b6091ced0c4 (patch) | |
tree | a1672382d733d28cac5ef5c6d47cc21def52e5cf /src/main.rs | |
parent | 999912c3474f019dc6d3bf1f31b09c30b6d4fb1a (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.rs | 4 |
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! { |