removed useless popup buttons

This commit is contained in:
2026-09-15 15:38:51 +01:00
parent cd3cf4d65f
commit 120eaf5855
+17 -28
View File
@@ -118,32 +118,21 @@ pub fn view(bar: &Bar) -> Element<'_, Message> {
}) })
.unwrap_or_else(|| text("unknown module").into()); .unwrap_or_else(|| text("unknown module").into());
container( container(column![content,].spacing(1))
column![ .padding(Padding::from(4))
text(format!("{} menu", module_id)) .style(|theme| container::Style {
.size(14) text_color: None,
.width(Length::Fill) background: Some(
.align_x(Alignment::Center), iced::Background::Color(theme.extended_palette().background.base.color)
content, .scale_alpha(0.4),
mouse_area(container(text("close").size(12)).style(pill)) ),
.on_press(Message::Effect(ModuleEffect::ClosePopup(popup_id))), border: Border {
] width: 3.0,
.spacing(1), radius: 10.into(),
) color: theme.extended_palette().secondary.strong.color,
.padding(Padding::from(4)) },
.style(|theme| container::Style { snap: true,
text_color: None, ..Default::default()
background: Some( })
iced::Background::Color(theme.extended_palette().background.base.color) .into()
.scale_alpha(0.4),
),
border: Border {
width: 3.0,
radius: 10.into(),
color: theme.extended_palette().secondary.strong.color,
},
snap: true,
..Default::default()
})
.into()
} }