diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-08-07 20:59:32 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-07 20:59:32 +0300 |
| commit | bdb5222eec9109f4a337ab79d12c3f3ee3cd7a4b (patch) | |
| tree | 1081a0036513199d17b35f8de9e43c9841c7be36 /src/config.rs | |
| parent | 00f04ac65cedf882f9785c0aa20831523c554dd0 (diff) | |
fix(config): report unknown theme names (#2488)
refs #2452
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.rs b/src/config.rs index 83562c48..858ca632 100644 --- a/src/config.rs +++ b/src/config.rs @@ -30,11 +30,11 @@ pub use self::{ SpaceSidebarToken, SpacesSidebarConfig, }, sound::SoundConfig, - theme::{parse_color, CustomThemeColors, ThemeConfig}, + theme::{parse_color, CustomThemeColors, ThemeConfig, THEME_NAMES}, }; -pub(crate) use self::io::upsert_top_level_bool; pub(crate) use self::keybinds::parse_key_combo; +pub(crate) use self::{io::upsert_top_level_bool, theme::canonical_theme_name}; pub const CONFIG_PATH_ENV_VAR: &str = "HERDR_CONFIG_PATH"; pub const DEFAULT_SCROLLBACK_LIMIT_BYTES: usize = 10_000_000; @@ -72,6 +72,7 @@ impl Config { .into_iter() .chain(keybind_diags) .chain(self.remote_image_paste_key().err()) + .chain(self.theme.diagnostics()) .chain(self.ui.sound.diagnostics()) .chain(self.invalid_sidebar_bounds_diagnostic()) .collect() |
