From deff8201f85c23d183e5121e2470ed491b728d08 Mon Sep 17 00:00:00 2001 From: Chiwa <74442646+gg0074x@users.noreply.github.com> Date: Sat, 1 Jun 2024 17:40:42 -0300 Subject: [PATCH] consistent light theme made the light theme code consistent with the dark theme removing hardcoded values --- src/ui/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/mod.rs b/src/ui/mod.rs index e7808bf..d85d93e 100644 --- a/src/ui/mod.rs +++ b/src/ui/mod.rs @@ -257,9 +257,10 @@ impl Application for MainApp { match self.settings.get_theme() { ThemeType::Light => { let palette = Theme::Light.palette(); + let bg = palette.background; Theme::custom(iced::theme::Palette { primary, - background: Color::from_rgba8(200, 200, 200, 0.025), + background: Color::from_rgba(bg.r, bg.g, bg.b, 0.025), ..palette }) }