diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-04 17:01:36 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-04 17:01:36 +1000 |
| commit | 2ffaf4eb3cce40584568f8f01b70f5d092d5dd93 (patch) | |
| tree | 94fdb183bcb1350062ea4e8b58dd74150ca1eac0 /modules/bar/popouts/Content.qml | |
| parent | bar: better active window popout (diff) | |
| download | caelestia-shell-2ffaf4eb3cce40584568f8f01b70f5d092d5dd93.tar.gz caelestia-shell-2ffaf4eb3cce40584568f8f01b70f5d092d5dd93.tar.bz2 caelestia-shell-2ffaf4eb3cce40584568f8f01b70f5d092d5dd93.zip | |
feat: bar battery popout
Diffstat (limited to 'modules/bar/popouts/Content.qml')
| -rw-r--r-- | modules/bar/popouts/Content.qml | 45 |
1 files changed, 25 insertions, 20 deletions
diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml index c10348c..6b65f56 100644 --- a/modules/bar/popouts/Content.qml +++ b/modules/bar/popouts/Content.qml @@ -23,7 +23,12 @@ Item { Popout { name: "activewindow" - sourceComponent: ActiveWindow {} + source: "ActiveWindow.qml" + } + + Popout { + name: "battery" + source: "Battery.qml" } } @@ -51,25 +56,25 @@ Item { active: shouldBeActive asynchronous: true - Behavior on active { - SequentialAnimation { - Anim { - target: popout - property: "opacity" - from: popout.shouldBeActive ? 1 : 0 - to: popout.shouldBeActive ? 0 : 1 - duration: popout.shouldBeActive ? 0 : Appearance.anim.durations.normal - } - PropertyAction {} - Anim { - target: popout - property: "opacity" - from: popout.shouldBeActive ? 0 : 1 - to: popout.shouldBeActive ? 1 : 0 - duration: popout.shouldBeActive ? Appearance.anim.durations.normal : 0 - } - } - } + // Behavior on active { + // SequentialAnimation { + // Anim { + // target: popout + // property: "opacity" + // from: popout.shouldBeActive ? 1 : 0 + // to: popout.shouldBeActive ? 0 : 1 + // duration: popout.shouldBeActive ? 0 : Appearance.anim.durations.normal + // } + // PropertyAction {} + // Anim { + // target: popout + // property: "opacity" + // from: popout.shouldBeActive ? 0 : 1 + // to: popout.shouldBeActive ? 1 : 0 + // duration: popout.shouldBeActive ? Appearance.anim.durations.normal : 0 + // } + // } + // } } component Anim: NumberAnimation { |