Text size/margin adjustments
This commit is contained in:
parent
98815f5131
commit
906711b916
1 changed files with 83 additions and 82 deletions
|
|
@ -198,94 +198,95 @@ impl Window {
|
||||||
|
|
||||||
fn view_desktop_root(&self) -> Element<Message> {
|
fn view_desktop_root(&self) -> Element<Message> {
|
||||||
settings::view_column(vec![
|
settings::view_column(vec![
|
||||||
text("Desktop").size(32).into(),
|
text("Desktop").size(30).into(),
|
||||||
|
|
||||||
//TODO: simplify these buttons!
|
//TODO: simplify these buttons!
|
||||||
|
column!(
|
||||||
|
iced::widget::Button::new(
|
||||||
|
container(settings::item_row(vec![
|
||||||
|
icon("video-display-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
|
column!(
|
||||||
|
text("Desktop Options").size(18),
|
||||||
|
text("Super Key action, hot corners, window control options.").size(12),
|
||||||
|
).spacing(2).into(),
|
||||||
|
horizontal_space(iced::Length::Fill).into(),
|
||||||
|
icon("go-next-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
|
]).spacing(16))
|
||||||
|
.padding([20, 24])
|
||||||
|
.style(theme::Container::Custom(list::column::style))
|
||||||
|
)
|
||||||
|
.padding(0)
|
||||||
|
.style(theme::Button::Transparent)
|
||||||
|
.on_press(Message::Page(Page::Desktop(DesktopPage::DesktopOptions))),
|
||||||
|
|
||||||
iced::widget::Button::new(
|
iced::widget::Button::new(
|
||||||
container(settings::item_row(vec![
|
container(settings::item_row(vec![
|
||||||
icon("video-display-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
icon("preferences-desktop-wallpaper-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
column!(
|
column!(
|
||||||
text("Desktop Options").size(16),
|
text("Wallpaper").size(18),
|
||||||
text("Super Key action, hot corners, window control options.").size(12),
|
text("Background images, colors, and slideshow options.").size(12),
|
||||||
).into(),
|
).spacing(2).into(),
|
||||||
horizontal_space(iced::Length::Fill).into(),
|
horizontal_space(iced::Length::Fill).into(),
|
||||||
icon("go-next-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
icon("go-next-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
]).spacing(16))
|
]).spacing(16))
|
||||||
.padding([20, 32])
|
.padding([20, 24])
|
||||||
.style(theme::Container::Custom(list::column::style))
|
.style(theme::Container::Custom(list::column::style))
|
||||||
)
|
)
|
||||||
.style(theme::Button::Transparent)
|
.padding(0)
|
||||||
.on_press(Message::Page(Page::Desktop(DesktopPage::DesktopOptions)))
|
.style(theme::Button::Transparent)
|
||||||
.into(),
|
.on_press(Message::Page(Page::Desktop(DesktopPage::Wallpaper))),
|
||||||
|
|
||||||
iced::widget::Button::new(
|
iced::widget::Button::new(
|
||||||
container(settings::item_row(vec![
|
container(settings::item_row(vec![
|
||||||
icon("preferences-desktop-wallpaper-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
icon("preferences-pop-desktop-appearance-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
column!(
|
column!(
|
||||||
text("Wallpaper").size(16),
|
text("Appearance").size(18),
|
||||||
text("Background images, colors, and slideshow options.").size(12),
|
text("Accent colors and COSMIC theming").size(12),
|
||||||
).into(),
|
).spacing(2).into(),
|
||||||
horizontal_space(iced::Length::Fill).into(),
|
horizontal_space(iced::Length::Fill).into(),
|
||||||
icon("go-next-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
icon("go-next-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
]).spacing(16))
|
]).spacing(16))
|
||||||
.padding([20, 32])
|
.padding([20, 24])
|
||||||
.style(theme::Container::Custom(list::column::style))
|
.style(theme::Container::Custom(list::column::style))
|
||||||
)
|
)
|
||||||
.style(theme::Button::Transparent)
|
.padding(0)
|
||||||
.on_press(Message::Page(Page::Desktop(DesktopPage::Wallpaper)))
|
.style(theme::Button::Transparent)
|
||||||
.into(),
|
.on_press(Message::Page(Page::Desktop(DesktopPage::Appearance))),
|
||||||
|
|
||||||
iced::widget::Button::new(
|
iced::widget::Button::new(
|
||||||
container(settings::item_row(vec![
|
container(settings::item_row(vec![
|
||||||
icon("preferences-pop-desktop-appearance-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
icon("preferences-pop-desktop-dock-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
column!(
|
column!(
|
||||||
text("Appearance").size(16),
|
text("Dock & Top Panel").size(18),
|
||||||
text("Accent colors and COSMIC theming").size(12),
|
text("Customize size, positions, and more for Dock and Top Panel.").size(12),
|
||||||
).into(),
|
).spacing(2).into(),
|
||||||
horizontal_space(iced::Length::Fill).into(),
|
horizontal_space(iced::Length::Fill).into(),
|
||||||
icon("go-next-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
icon("go-next-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
]).spacing(16))
|
]).spacing(16))
|
||||||
.padding([20, 32])
|
.padding([20, 24])
|
||||||
.style(theme::Container::Custom(list::column::style))
|
.style(theme::Container::Custom(list::column::style))
|
||||||
)
|
)
|
||||||
.style(theme::Button::Transparent)
|
.padding(0)
|
||||||
.on_press(Message::Page(Page::Desktop(DesktopPage::Appearance)))
|
.style(theme::Button::Transparent)
|
||||||
.into(),
|
.on_press(Message::Page(Page::Desktop(DesktopPage::DockAndTopPanel))),
|
||||||
|
|
||||||
iced::widget::Button::new(
|
iced::widget::Button::new(
|
||||||
container(settings::item_row(vec![
|
container(settings::item_row(vec![
|
||||||
icon("preferences-pop-desktop-dock-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
icon("preferences-pop-desktop-workspaces-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
column!(
|
column!(
|
||||||
text("Dock & Top Panel").size(16),
|
text("Workspaces").size(18),
|
||||||
text("Customize size, positions, and more for Dock and Top Panel.").size(12),
|
text("Set workspace number, behavior, and placement.").size(12),
|
||||||
).into(),
|
).spacing(2).into(),
|
||||||
horizontal_space(iced::Length::Fill).into(),
|
horizontal_space(iced::Length::Fill).into(),
|
||||||
icon("go-next-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
icon("go-next-symbolic", 20).style(theme::Svg::Symbolic).into(),
|
||||||
]).spacing(16))
|
]).spacing(16))
|
||||||
.padding([20, 32])
|
.padding([20, 24])
|
||||||
.style(theme::Container::Custom(list::column::style))
|
.style(theme::Container::Custom(list::column::style))
|
||||||
)
|
)
|
||||||
.style(theme::Button::Transparent)
|
.padding(0)
|
||||||
.on_press(Message::Page(Page::Desktop(DesktopPage::DockAndTopPanel)))
|
.style(theme::Button::Transparent)
|
||||||
.into(),
|
.on_press(Message::Page(Page::Desktop(DesktopPage::Workspaces))),
|
||||||
|
).spacing(16).into()
|
||||||
iced::widget::Button::new(
|
|
||||||
container(settings::item_row(vec![
|
|
||||||
icon("preferences-pop-desktop-workspaces-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
|
||||||
column!(
|
|
||||||
text("Workspaces").size(16),
|
|
||||||
text("Set workspace number, behavior, and placement.").size(12),
|
|
||||||
).into(),
|
|
||||||
horizontal_space(iced::Length::Fill).into(),
|
|
||||||
icon("go-next-symbolic", 16).style(theme::Svg::Symbolic).into(),
|
|
||||||
]).spacing(16))
|
|
||||||
.padding([20, 32])
|
|
||||||
.style(theme::Container::Custom(list::column::style))
|
|
||||||
)
|
|
||||||
.style(theme::Button::Transparent)
|
|
||||||
.on_press(Message::Page(Page::Desktop(DesktopPage::Workspaces)))
|
|
||||||
.into(),
|
|
||||||
])
|
])
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue