From 2ffaf4eb3cce40584568f8f01b70f5d092d5dd93 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 4 Jun 2025 17:01:36 +1000 Subject: feat: bar battery popout --- modules/bar/popouts/Content.qml | 45 +++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 20 deletions(-) (limited to 'modules/bar/popouts/Content.qml') 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 { -- cgit v1.2.3-freya