fade in/out for dynamic modules, fix tray icon theming
This commit is contained in:
parent
d0f7c0872a
commit
4109078a91
6 changed files with 17 additions and 7 deletions
|
|
@ -6,7 +6,8 @@ import "." as M
|
|||
M.BarSection {
|
||||
id: root
|
||||
spacing: M.Theme.moduleSpacing
|
||||
visible: M.Modules.battery && (UPower.displayDevice?.isLaptopBattery ?? false)
|
||||
opacity: M.Modules.battery && (UPower.displayDevice?.isLaptopBattery ?? false) ? 1 : 0
|
||||
visible: opacity > 0
|
||||
tooltip: {
|
||||
const state = root.charging ? "Charging" : "Discharging";
|
||||
const t = root.charging ? root.dev?.timeToFull : root.dev?.timeToEmpty;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue