summaryrefslogtreecommitdiff
path: root/bar/ActiveWindow.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-20 15:45:06 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-20 15:45:06 +0800
commit4167bdc70e55926f57e8710b74dc860fd1fc2a1c (patch)
treed9b1e1c9ba912aa7a33c16a9358bd1837c0e052d /bar/ActiveWindow.qml
parent3beb5d7ac893f7dc9dca74cde40fa8f1986f51fc (diff)
Rect: use IRect with color animation
Diffstat (limited to 'bar/ActiveWindow.qml')
-rw-r--r--bar/ActiveWindow.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/bar/ActiveWindow.qml b/bar/ActiveWindow.qml
index dff75be..c5cd117 100644
--- a/bar/ActiveWindow.qml
+++ b/bar/ActiveWindow.qml
@@ -7,7 +7,7 @@ import qs.components
import qs.config
// TODO use a item wrapping loader for opacity Behavior
-Rectangle {
+IRect {
id: root
// hyprland toplevel isn't shown immediately...
property var toplevel: ToplevelManager.activeToplevel
@@ -15,7 +15,6 @@ Rectangle {
property var activated: toplevel?.activated || false
- // use IRect
implicitWidth: activated ? rowLayout.implicitWidth + General.rectMargin * 4 : 0
implicitHeight: rowLayout.implicitHeight + General.rectMargin * 2
anchors.centerIn: parent