From 8b37f658e2d0885b6972952cbf0e606d188ba2b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= Date: Tue, 8 Oct 2024 22:05:27 +0200 Subject: [PATCH] fix(small_widget_divider): fix alpha value This makes this color match the designs, and thus fixes the divider color in the horizontal `segmented_button`. --- cosmic-theme/src/model/theme.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cosmic-theme/src/model/theme.rs b/cosmic-theme/src/model/theme.rs index fe867395..192f9756 100644 --- a/cosmic-theme/src/model/theme.rs +++ b/cosmic-theme/src/model/theme.rs @@ -186,7 +186,9 @@ impl Theme { #[allow(clippy::doc_markdown)] /// get @small_widget_divider pub fn small_widget_divider(&self) -> Srgba { - self.palette.neutral_9 + let mut neutral_9 = self.palette.neutral_9; + neutral_9.alpha = 0.2; + neutral_9 } // Containers