fix(theme): dark theme generation affected by previous commit

This commit is contained in:
Michael Aaron Murphy 2024-04-22 23:51:32 +02:00
parent 68becf32c2
commit 1adeadacf6
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -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())