From 4167bdc70e55926f57e8710b74dc860fd1fc2a1c Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 20 Jul 2025 15:45:06 +0800 Subject: Rect: use IRect with color animation --- bar/ActiveWindow.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bar/ActiveWindow.qml') 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 -- cgit v1.2.3