From fa7d6c0e7022991d85cd2d1abede88e9e9aa342d Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Fri, 3 Nov 2023 20:40:50 +0100 Subject: [PATCH] Remove `Default` impl` for `ThemeColors` (#3226) This PR removes the `Default` impl for `ThemeColors`. Since we need default light and dark variants for `ThemeColors`, we can't use a single `Default` impl. Release Notes: - N/A --- crates/theme2/src/colors.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/theme2/src/colors.rs b/crates/theme2/src/colors.rs index 422e33e4f8..38ae1325a0 100644 --- a/crates/theme2/src/colors.rs +++ b/crates/theme2/src/colors.rs @@ -48,7 +48,7 @@ pub struct GitStatusColors { pub renamed: Hsla, } -#[derive(Refineable, Clone, Debug, Default)] +#[derive(Refineable, Clone, Debug)] #[refineable(debug)] pub struct ThemeColors { pub border: Hsla, @@ -94,6 +94,8 @@ pub struct ThemeColors { #[derive(Refineable, Clone)] pub struct ThemeStyles { pub system: SystemColors, + + #[refineable] pub colors: ThemeColors, pub status: StatusColors, pub git: GitStatusColors,