Skip to content

Commit a23f181

Browse files
committed
Use cosmic::Application/cosmic::app::applet
This saves a bit of duplicated boilerplate. Applets seem to work fairly well with this. Though we should see if any other changes to initial window settings are needed in certain applets for the exact behavior we want.
1 parent 3ad64df commit a23f181

File tree

28 files changed

+1995
-2563
lines changed

28 files changed

+1995
-2563
lines changed

Cargo.lock

Lines changed: 357 additions & 357 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[workspace]
22

33
members = [
4-
"applet",
54
"cosmic-app-list",
65
"cosmic-applet-audio",
76
"cosmic-applet-battery",
@@ -20,8 +19,8 @@ resolver="2"
2019
[workspace.dependencies]
2120
cctk = { git = "https://github.com/pop-os/cosmic-protocols", package = "cosmic-client-toolkit", rev = "e39748e" }
2221
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols", default-features = false, features = ["client"], rev = "e39748e" }
23-
cosmic-time = { git = "https://github.com/pop-os/cosmic-time", rev = "c39e737", default-features = false, features = ["libcosmic", "once_cell"] }
24-
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false, features = ["tokio", "wayland"] }
22+
cosmic-time = { git = "https://github.com/pop-os/cosmic-time", default-features = false, features = ["libcosmic", "once_cell"] }
23+
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false, features = ["applet", "tokio", "wayland"] }
2524

2625
[profile.release]
2726
lto = "thin"

applet/Cargo.toml

Lines changed: 0 additions & 13 deletions
This file was deleted.

applet/src/lib.rs

Lines changed: 0 additions & 258 deletions
This file was deleted.

cosmic-app-list/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ edition = "2021"
88
cctk.workspace = true
99
cosmic-protocols.workspace = true
1010
libcosmic.workspace = true
11-
cosmic-applet = { path = "../applet" }
1211
# libcosmic = { path = "../../libcosmic", default-features = false, features = ["wayland", "tokio"] }
1312
ron = "0.8"
1413
futures = "0.3"

0 commit comments

Comments
 (0)