Skip to content

Commit

Permalink
chore: update libcosmic
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Feb 27, 2024
1 parent 111e31c commit 6c6c0b4
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 135 deletions.
266 changes: 138 additions & 128 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions app/src/pages/desktop/wallpaper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use cosmic::{
widget::{
button, dropdown, list_column, row,
segmented_button::{self, SingleSelectModel},
settings, text, toggler, view_switcher,
settings, tab_bar, text, toggler,
},
};
use cosmic::{
Expand Down Expand Up @@ -1113,7 +1113,7 @@ pub fn settings() -> Section<crate::pages::Message> {
.height(Length::Fixed(32.0))
.into()
} else {
view_switcher::horizontal(&page.outputs)
tab_bar::horizontal(&page.outputs)
.on_activate(Message::Output)
.into()
});
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/desktop/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ fn workspace_orientation() -> Section<crate::pages::Message> {
.view::<Page>(|_binder, page, section| {
settings::view_section(&section.title)
.add(
cosmic::widget::segmented_selection::horizontal(&page.orientation_model)
cosmic::widget::segmented_control::horizontal(&page.orientation_model)
.on_activate(Message::OrientationButtonSelected),
)
.apply(Element::from)
Expand Down
4 changes: 2 additions & 2 deletions app/src/pages/display/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use arrangement::Arrangement;
use cosmic::iced::Length;
use cosmic::iced_widget::scrollable::{Direction, Properties, RelativeOffset};
use cosmic::widget::{
column, container, dropdown, list_column, segmented_button, toggler, view_switcher,
column, container, dropdown, list_column, segmented_button, tab_bar, toggler,
};
use cosmic::{command, Command, Element};
use cosmic_randr_shell::{List, Output, OutputKey, Transform};
Expand Down Expand Up @@ -460,7 +460,7 @@ impl Page {

if self.list.outputs.len() > 1 {
let display_switcher =
view_switcher::horizontal(&self.display_tabs).on_activate(Message::Display);
tab_bar::horizontal(&self.display_tabs).on_activate(Message::Display);

let display_enable = list_column().add(cosmic::widget::settings::item(
&*text::DISPLAY_ENABLE,
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/input/mouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ fn mouse() -> Section<crate::pages::Message> {
settings::view_section(&section.title)
.add(settings::item(
&*super::PRIMARY_BUTTON,
cosmic::widget::segmented_selection::horizontal(&input.primary_button)
cosmic::widget::segmented_control::horizontal(&input.primary_button)
.minimum_button_width(0)
.on_activate(|x| Message::PrimaryButtonSelected(x, false)),
))
Expand Down
2 changes: 1 addition & 1 deletion app/src/pages/input/touchpad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn touchpad() -> Section<crate::pages::Message> {
settings::view_section(&section.title)
.add(settings::item(
&*super::PRIMARY_BUTTON,
cosmic::widget::segmented_selection::horizontal(&input.touchpad_primary_button)
cosmic::widget::segmented_control::horizontal(&input.touchpad_primary_button)
.minimum_button_width(0)
.on_activate(|x| Message::PrimaryButtonSelected(x, true)),
))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(
red: 0.0,
green: 0.0,
blue: 0.0,
alpha: 0.32,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(
red: 0.0,
green: 0.0,
blue: 0.0,
alpha: 0.08,
)

0 comments on commit 6c6c0b4

Please sign in to comment.