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