From 08854c4940569697e634e0c7ce53316ee04a049e Mon Sep 17 00:00:00 2001 From: edouardparis Date: Mon, 14 Oct 2024 11:36:38 +0200 Subject: [PATCH] change secondary button ui The secondary button is light grey border and transparent background that has border and text green on hover. It brings consistency with item list selection that has green border on hover. --- gui/ui/src/theme.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gui/ui/src/theme.rs b/gui/ui/src/theme.rs index 32c35ce6..9a27c4e8 100644 --- a/gui/ui/src/theme.rs +++ b/gui/ui/src/theme.rs @@ -647,10 +647,10 @@ impl button::StyleSheet for Theme { Theme::Dark => match style { Button::Primary => button::Appearance { shadow_offset: iced::Vector::default(), - background: Some(iced::Color::TRANSPARENT.into()), - text_color: color::GREY_2, + background: Some(color::GREEN.into()), + text_color: color::LIGHT_BLACK, border: iced::Border { - color: color::GREY_7, + color: color::GREEN, width: 1.0, radius: 25.0.into(), }, @@ -750,11 +750,11 @@ impl button::StyleSheet for Theme { }, Button::Secondary => button::Appearance { shadow_offset: iced::Vector::default(), - background: Some(color::GREEN.into()), - text_color: color::LIGHT_BLACK, + background: Some(iced::Color::TRANSPARENT.into()), + text_color: color::GREEN, border: iced::Border { - color: color::TRANSPARENT, - width: 0.0, + color: color::GREEN, + width: 1.0, radius: 25.0.into(), }, ..button::Appearance::default()