From 950a1a54f5f5895a7124ad5e0c329f1c1021813d Mon Sep 17 00:00:00 2001 From: Michael Aaron Murphy Date: Tue, 23 Apr 2024 10:56:19 +0200 Subject: [PATCH] fix(theme): increase dark theme lightness threshold to 91 so that the default theme matches designs --- 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 1c02836f..ef4d39ad 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 < 91; get_index(base_index, steps, step_array.len(), is_dark) .and_then(|i| step_array.get(i).cloned())