Power: Replace gtk applet with iced applet (#32)

* Power: Replace gtk applet with iced applet

No functionality yet, but the layout is nearly done. Only small
tweaks needed to font and svg backgrounds.

* Power: Add suspend+restart+shutdown functionality

* Power: Add lock + log out + settings

* Fix build.

* Fix window placement
This commit is contained in:
Brock 2022-12-12 11:41:16 -07:00 committed by GitHub
parent fd17241bcf
commit 31bea66801
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 3975 additions and 390 deletions

97
Cargo.lock generated
View file

@ -201,12 +201,6 @@ version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]]
name = "bytes"
version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db"
[[package]]
name = "cache-padded"
version = "1.2.0"
@ -358,23 +352,6 @@ dependencies = [
"zvariant",
]
[[package]]
name = "cosmic-applet-power"
version = "0.1.0"
dependencies = [
"futures-util",
"gtk4",
"libadwaita",
"libcosmic",
"libcosmic-applet",
"logind-zbus",
"nix 0.24.2",
"once_cell",
"relm4-macros",
"tokio",
"zbus 2.3.2",
]
[[package]]
name = "cosmic-applet-status-area"
version = "0.1.0"
@ -1294,17 +1271,6 @@ dependencies = [
"cfg-if",
]
[[package]]
name = "logind-zbus"
version = "3.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c03958f20018a20963daf0c16ada4f271ae2da3e0017fb40caa8b0e3dc5b0226"
dependencies = [
"serde",
"zbus 2.3.2",
"zvariant",
]
[[package]]
name = "malloc_buf"
version = "0.0.6"
@ -1329,18 +1295,6 @@ dependencies = [
"autocfg",
]
[[package]]
name = "mio"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf"
dependencies = [
"libc",
"log",
"wasi 0.11.0+wasi-snapshot-preview1",
"windows-sys",
]
[[package]]
name = "nix"
version = "0.23.1"
@ -1399,16 +1353,6 @@ dependencies = [
"autocfg",
]
[[package]]
name = "num_cpus"
version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
dependencies = [
"hermit-abi",
"libc",
]
[[package]]
name = "objc"
version = "0.2.7"
@ -1983,15 +1927,6 @@ dependencies = [
"opaque-debug",
]
[[package]]
name = "signal-hook-registry"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
dependencies = [
"libc",
]
[[package]]
name = "siphasher"
version = "0.3.10"
@ -2134,38 +2069,6 @@ version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29738eedb4388d9ea620eeab9384884fc3f06f586a2eddb56bedc5885126c7c1"
[[package]]
name = "tokio"
version = "1.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a8325f63a7d4774dd041e363b2409ed1c5cbbd0f867795e661df066b2b0a581"
dependencies = [
"autocfg",
"bytes",
"libc",
"memchr",
"mio",
"num_cpus",
"once_cell",
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"socket2",
"tokio-macros",
"winapi",
]
[[package]]
name = "tokio-macros"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9724f9a975fb987ef7a3cd9be0350edcbe130698af5b8f7a631e23d42d052484"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "toml"
version = "0.5.9"