Skip to content

Commit

Permalink
fixup! feat(Workspace): add missing settings and update design
Browse files Browse the repository at this point in the history
  • Loading branch information
acolombier committed Oct 20, 2024
1 parent 529c3ca commit 43aa41e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,6 @@ cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols//", rev =
# [patch.'https://github.com/pop-os/dbus-settings-bindings']
# cosmic-dbus-networkmanager = { path = "../dbus-settings-bindings/networkmanager" }
# upower_dbus = { path = "../dbus-settings-bindings/upower" }

[patch.'https://github.com/pop-os/cosmic-comp']
cosmic-comp-config = { path = "../cosmic-comp/cosmic-comp-config" }
9 changes: 5 additions & 4 deletions cosmic-settings/src/pages/desktop/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ fn workspace_orientation() -> Section<crate::pages::Message> {
cosmic::iced::widget::row!(
text(&descriptions[switch_workspace]),
cosmic::iced::widget::horizontal_space(2),
text(&descriptions[switch_ws_label]).font(cosmic::font::FONT_BOLD),
text(&descriptions[switch_ws_label]).font(cosmic::font::bold()),
cosmic::iced::widget::horizontal_space(Length::Fill),
cosmic::iced::widget::container(cosmic::iced::widget::svg(
switch_ws
Expand All @@ -425,7 +425,7 @@ fn workspace_orientation() -> Section<crate::pages::Message> {
cosmic::iced::widget::row!(
text(&descriptions[open_workspaces]),
cosmic::iced::widget::horizontal_space(2),
text(&descriptions[open_ws_label]).font(cosmic::font::FONT_BOLD),
text(&descriptions[open_ws_label]).font(cosmic::font::bold()),
cosmic::iced::widget::horizontal_space(Length::Fill),
cosmic::iced::widget::container(cosmic::iced::widget::svg(open_ws))
.width(115)
Expand All @@ -441,7 +441,7 @@ fn workspace_orientation() -> Section<crate::pages::Message> {
text(&descriptions[open_applications]),
cosmic::iced::widget::horizontal_space(2),
text(&descriptions[open_app_label])
.font(cosmic::font::FONT_BOLD),
.font(cosmic::font::bold()),
cosmic::iced::widget::horizontal_space(Length::Fill),
cosmic::iced::widget::container(cosmic::iced::widget::svg(
open_app
Expand Down Expand Up @@ -474,7 +474,8 @@ fn workspace_overview() -> Section<crate::pages::Message> {
.descriptions(descriptions)
.view::<Page>(move |_binder, page, section| {
let descriptions = &section.descriptions;
settings::view_section(&section.title)
settings::section()
.title(&section.title)
.add(
settings::item::builder(&descriptions[show_number])
.toggler(page.show_workspace_name, Message::SetShowName),
Expand Down

0 comments on commit 43aa41e

Please sign in to comment.