From 1adeadacf60c7f7381ec270710fcdab706d4175e Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Mon, 22 Apr 2024 23:51:32 +0200 Subject: [PATCH] fix(theme): dark theme generation affected by previous commit --- cosmic-theme/src/steps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosmic-theme/src/steps.rs b/cosmic-theme/src/steps.rs index c129ea7c..1c02836f 100644 --- a/cosmic-theme/src/steps.rs +++ b/cosmic-theme/src/steps.rs @@ -41,7 +41,7 @@ pub fn get_surface_color( ) -> Srgba { assert!(step_array.len() == 100); - is_dark = !is_dark && base_index < 88; + is_dark = is_dark || base_index < 88; get_index(base_index, steps, step_array.len(), is_dark) .and_then(|i| step_array.get(i).cloned())