Remove `Default` impl` for `ThemeColors` (#3226)
Marshall Bowers
created 2 years ago
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
Change summary
crates/theme2/src/colors.rs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Detailed changes
@@ -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,