Skip to content

Commit

Permalink
chore: update libcosmic
Browse files Browse the repository at this point in the history
enable desktop-systemd-scope
  • Loading branch information
wash2 authored and jackpot51 committed Oct 17, 2024
1 parent d193f10 commit 6630709
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 22 deletions.
53 changes: 34 additions & 19 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = fa
"applet-token",
"tokio",
"wayland",
"desktop",
"desktop-systemd-scope",
"dbus-config",
] }
rust-embed = "8.3"
Expand Down
7 changes: 5 additions & 2 deletions cosmic-applet-workspaces/src/components/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
use cctk::sctk::reexports::{calloop::channel::SyncSender, client::backend::ObjectId};
use cosmic::{
applet::cosmic_panel_config::PanelAnchor,
font::FONT_BOLD,
iced::{
alignment::{Horizontal, Vertical},
event,
Expand Down Expand Up @@ -176,7 +175,11 @@ impl cosmic::Application for IcedWorkspacesApplet {
let popup_index = self.popup_index().unwrap_or(self.workspaces.len());

let buttons = self.workspaces[..popup_index].iter().filter_map(|w| {
let content = self.core.applet.text(w.0.clone()).font(FONT_BOLD);
let content = self
.core
.applet
.text(w.0.clone())
.font(cosmic::font::bold());

let (width, height) = if self.core.applet.is_horizontal() {
(suggested_total as f32, suggested_window_size.1.get() as f32)
Expand Down

0 comments on commit 6630709

Please sign in to comment.