fix(appearance): experimental settings button size
This commit is contained in:
parent
6e52399f04
commit
534849cc6a
1 changed files with 15 additions and 10 deletions
|
|
@ -1532,17 +1532,22 @@ pub fn experimental() -> Section<crate::pages::Message> {
|
||||||
.descriptions(vec![fl!("experimental-settings").into()])
|
.descriptions(vec![fl!("experimental-settings").into()])
|
||||||
.view::<Page>(|_binder, _page, section| {
|
.view::<Page>(|_binder, _page, section| {
|
||||||
let descriptions = &*section.descriptions;
|
let descriptions = &*section.descriptions;
|
||||||
|
|
||||||
|
let control = row::with_children(vec![
|
||||||
|
horizontal_space(Length::Fill).into(),
|
||||||
|
icon::from_name("go-next-symbolic").size(16).into(),
|
||||||
|
]);
|
||||||
|
|
||||||
settings::view_section("")
|
settings::view_section("")
|
||||||
.add(settings::item(
|
.add(
|
||||||
&*descriptions[0],
|
settings::item::builder(&*descriptions[0])
|
||||||
cosmic::widget::row::with_children(vec![
|
.control(control)
|
||||||
cosmic::widget::horizontal_space(Length::Fill).into(),
|
.apply(container)
|
||||||
icon::from_name("go-next-symbolic").size(16).icon().into(),
|
.style(cosmic::theme::Container::List)
|
||||||
]),
|
.apply(button)
|
||||||
))
|
.style(cosmic::theme::Button::Transparent)
|
||||||
.apply(button)
|
.on_press(Message::ExperimentalContextDrawer),
|
||||||
.on_press(Message::ExperimentalContextDrawer)
|
)
|
||||||
.style(cosmic::theme::Button::Transparent)
|
|
||||||
.apply(Element::from)
|
.apply(Element::from)
|
||||||
.map(crate::pages::Message::Appearance)
|
.map(crate::pages::Message::Appearance)
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue