Skip to content

Commit

Permalink
chore: update libcosmic and reduce binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed Jan 14, 2025
1 parent 3ff7f27 commit ff6b8d9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 55 deletions.
86 changes: 34 additions & 52 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ inherits = "release"
debug = true

[profile.release]
opt-level = "z"
lto = "thin"

# [patch.'https://github.com/smithay/client-toolkit/']
Expand Down
2 changes: 1 addition & 1 deletion cosmic-settings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ futures = "0.3.30"
hostname-validator = "1.1.1"
hostname1-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
i18n-embed-fl = "0.9.1"
image = "0.25"
image = { version = "0.25", default-features = false, features = ["jpeg", "png", "rayon", "webp", "hdr"] }
indexmap = "2.5.0"
itertools = "0.13.0"
itoa = "1.0.11"
Expand Down
5 changes: 3 additions & 2 deletions cosmic-settings/src/pages/desktop/panel/applets_inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use cosmic::iced::id::Internal;
use cosmic::iced::Vector;

use cosmic::iced_core;
use cosmic::iced_core::clipboard::IconSurface;
use cosmic::widget::{button, column, container, icon, list_column, row, text, text_input, Column};

use cosmic::{
Expand Down Expand Up @@ -1024,16 +1025,16 @@ where
iced_core::clipboard::start_dnd::<
cosmic::Theme,
cosmic::Renderer,
(),
>(
clipboard,
false,
Some(iced_core::clipboard::DndSource::Widget(
self.id.clone(),
)),
Some((
Some(IconSurface::new(
dnd_icon(applet.clone(), &layout).into(),
iced_core::widget::tree::State::new(state.clone()),
iced_core::Vector::new(0.0, 0.0),
)),
Box::new(AppletString(p.clone())),
DndAction::Move,
Expand Down

0 comments on commit ff6b8d9

Please sign in to comment.