chore: update
This commit is contained in:
parent
9175e7e9ee
commit
56e04a7d81
6 changed files with 182 additions and 337 deletions
|
|
@ -127,7 +127,7 @@ pub fn panel_dock_links() -> Section<crate::pages::Message> {
|
|||
.control(control)
|
||||
.spacing(16)
|
||||
.apply(container)
|
||||
.style(theme::Container::custom(list::style))
|
||||
.style(theme::Container::List)
|
||||
.apply(button)
|
||||
.style(theme::Button::Transparent)
|
||||
.on_press(crate::pages::Message::Page(panel_entity)),
|
||||
|
|
@ -150,7 +150,7 @@ pub fn panel_dock_links() -> Section<crate::pages::Message> {
|
|||
.control(control)
|
||||
.spacing(16)
|
||||
.apply(container)
|
||||
.style(theme::Container::custom(list::style))
|
||||
.style(theme::Container::List)
|
||||
.apply(button)
|
||||
.style(theme::Button::Transparent)
|
||||
.on_press(crate::pages::Message::Page(dock_entity)),
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ pub(crate) fn configuration<P: page::Page<crate::pages::Message> + PanelPage>(
|
|||
.control(control)
|
||||
.spacing(16)
|
||||
.apply(container)
|
||||
.style(theme::Container::custom(list::style))
|
||||
.style(theme::Container::List)
|
||||
.apply(button)
|
||||
.style(theme::Button::Transparent)
|
||||
.on_press(crate::pages::Message::Page(panel_applets_entity)),
|
||||
|
|
|
|||
|
|
@ -67,12 +67,7 @@ impl SpecialKey {
|
|||
fn popover_menu_row(label: String) -> cosmic::Element<'static, Message> {
|
||||
widget::text(label)
|
||||
.apply(widget::container)
|
||||
.style(cosmic::theme::Container::custom(|theme| {
|
||||
iced_style::container::Appearance {
|
||||
background: None,
|
||||
..cosmic::widget::list::style(theme)
|
||||
}
|
||||
}))
|
||||
.style(cosmic::theme::Container::List)
|
||||
.apply(button)
|
||||
.style(theme::Button::Transparent)
|
||||
.into()
|
||||
|
|
@ -319,9 +314,7 @@ fn go_next_control<Msg: Clone + 'static>() -> cosmic::Element<'static, Msg> {
|
|||
fn go_next_item<Msg: Clone + 'static>(description: &str, msg: Msg) -> cosmic::Element<'_, Msg> {
|
||||
settings::item(description, go_next_control())
|
||||
.apply(widget::container)
|
||||
.style(cosmic::theme::Container::custom(
|
||||
cosmic::widget::list::style,
|
||||
))
|
||||
.style(cosmic::theme::Container::List)
|
||||
.apply(button)
|
||||
.style(theme::Button::Transparent)
|
||||
.on_press(msg)
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ pub fn page_list_item<'a, Message: 'static + Clone>(
|
|||
.spacing(16)
|
||||
.apply(container)
|
||||
.padding([20, 24])
|
||||
.style(theme::Container::custom(list::style))
|
||||
.style(theme::Container::List)
|
||||
.apply(button)
|
||||
.style(theme::Button::Transparent)
|
||||
.on_press(message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue