From e66c457b57350921e50f5c69343fec8b0c39f42e Mon Sep 17 00:00:00 2001 From: servius Date: Wed, 28 Jan 2026 02:06:57 +0530 Subject: [PATCH] feat: Added BACKGROUND_COLOR to settings popup --- ui-iced/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-iced/src/lib.rs b/ui-iced/src/lib.rs index 7bcbcd0..474936c 100644 --- a/ui-iced/src/lib.rs +++ b/ui-iced/src/lib.rs @@ -26,6 +26,8 @@ pub struct ItemCache { pub tree: BTreeMap, BTreeSet>, } +const BACKGROUND_COLOR: iced::Color = iced::Color::from_rgba8(30, 30, 30, 0.7); + impl ItemCache { pub fn insert(&mut self, parent: impl Into>, item: Item) { let parent = parent.into(); @@ -310,10 +312,10 @@ fn view(state: &State) -> Element<'_, Message> { .width(Length::Fill) .align_y(Alignment::Center) .align_x(Alignment::Center) + .style(|_| container::background(BACKGROUND_COLOR)) .padding(50) .pipe(mouse_area) .on_press(Message::Settings(settings::SettingsMessage::Close)); - // let content = mouse_area(content).on_press(Message::Home); stack![content, settings].into() } Screen::Home | _ => content,