Library for shared applet code; use in battery applet

Creates window, button, and popover with correct properties and CSS
style.
This commit is contained in:
Ian Douglas Scott 2022-07-01 21:33:58 -07:00
parent ab8131f5e6
commit f56b160635
7 changed files with 269 additions and 114 deletions

13
Cargo.lock generated
View file

@ -356,6 +356,7 @@ version = "0.1.0"
dependencies = [
"futures",
"gtk4",
"libcosmic-applet",
"relm4",
"zbus",
]
@ -502,7 +503,7 @@ dependencies = [
[[package]]
name = "cosmic-panel-config"
version = "0.1.0"
source = "git+https://github.com/pop-os/cosmic-panel#49b8d8c84f9db93c72ef06778b76ccb38329a8c4"
source = "git+https://github.com/pop-os/cosmic-panel/#49b8d8c84f9db93c72ef06778b76ccb38329a8c4"
dependencies = [
"anyhow",
"gtk4",
@ -1560,6 +1561,16 @@ dependencies = [
"x11",
]
[[package]]
name = "libcosmic-applet"
version = "0.1.0"
dependencies = [
"cosmic-panel-config",
"gtk4",
"once_cell",
"relm4-macros",
]
[[package]]
name = "libcosmic-widgets"
version = "0.1.0"