feat(battery): add option to show charge percentage next to the icon (#994)
* feat(battery): add option to show charge percentage next to the icon * feat: proper padding and text sizing * chore: use from_vec instead of from_children * chore: remove battery percentage setting from applet dropdown * chore: move config config definition to cosmic-applets-config * feat: add subscription for config * chore: revert unnecessary config module change * fix: correctly scale battery icon size * chore: change battery applet id * feat: better battery text sizing --------- Co-authored-by: Levi Portenier <levi@system76.com>
This commit is contained in:
parent
fe2ebe7a89
commit
a1a6caf5e5
6 changed files with 106 additions and 10 deletions
3
Cargo.lock
generated
3
Cargo.lock
generated
|
|
@ -1243,6 +1243,8 @@ name = "cosmic-applet-battery"
|
|||
version = "1.0.2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"cosmic-applets-config",
|
||||
"cosmic-config",
|
||||
"cosmic-settings-daemon-subscription",
|
||||
"cosmic-settings-upower-subscription",
|
||||
"cosmic-time",
|
||||
|
|
@ -1253,6 +1255,7 @@ dependencies = [
|
|||
"libcosmic",
|
||||
"rust-embed",
|
||||
"rustc-hash 2.1.1",
|
||||
"serde",
|
||||
"tokio",
|
||||
"tracing",
|
||||
"tracing-log",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue