diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-05 03:41:38 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-05 04:07:11 +0300 |
| commit | add6c14f1ee244502bd1a9599f2cd08320f935b7 (patch) | |
| tree | d02b35da75a6a1ab9e37cc699c3db877cf84d884 /src/config | |
| parent | 1f1e434268ad6e8102fdac6d5996e3f190138a28 (diff) | |
feat(theme): add optional sidebar background
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/theme.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/theme.rs b/src/config/theme.rs index fc601d3f..e98c9dfb 100644 --- a/src/config/theme.rs +++ b/src/config/theme.rs @@ -32,6 +32,7 @@ pub struct ThemeConfig { pub struct CustomThemeColors { pub accent: Option<String>, pub panel_bg: Option<String>, + pub sidebar_bg: Option<String>, pub surface0: Option<String>, pub surface1: Option<String>, pub surface_dim: Option<String>, @@ -164,6 +165,7 @@ name = "nord" [theme.custom] panel_bg = "#1e1e2e" +sidebar_bg = "#181825" accent = "#ff79c6" red = "rgb(255, 85, 85)" "##; @@ -171,6 +173,7 @@ red = "rgb(255, 85, 85)" assert_eq!(config.theme.name.as_deref(), Some("nord")); let custom = config.theme.custom.as_ref().unwrap(); assert_eq!(custom.panel_bg.as_deref(), Some("#1e1e2e")); + assert_eq!(custom.sidebar_bg.as_deref(), Some("#181825")); assert_eq!(custom.accent.as_deref(), Some("#ff79c6")); assert_eq!(custom.red.as_deref(), Some("rgb(255, 85, 85)")); assert!(custom.green.is_none()); |
