From 6e82fbc8b901d00acbeeddc724916818cb313b53 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 17 May 2025 20:27:30 +0800 Subject: refactor: use implicit size instead of actual size --- modules/bar/components/workspaces/ActiveIndicator.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/bar/components/workspaces/ActiveIndicator.qml') diff --git a/modules/bar/components/workspaces/ActiveIndicator.qml b/modules/bar/components/workspaces/ActiveIndicator.qml index a9d3e60..0f904a1 100644 --- a/modules/bar/components/workspaces/ActiveIndicator.qml +++ b/modules/bar/components/workspaces/ActiveIndicator.qml @@ -24,8 +24,8 @@ Rectangle { clip: true x: vertical ? 1 : offset + 1 y: vertical ? offset + 1 : 1 - width: (vertical ? BarConfig.sizes.innerHeight : size) - 2 - height: (vertical ? size : BarConfig.sizes.innerHeight) - 2 + implicitWidth: (vertical ? BarConfig.sizes.innerHeight : size) - 2 + implicitHeight: (vertical ? size : BarConfig.sizes.innerHeight) - 2 radius: BarConfig.workspaces.rounded ? Appearance.rounding.full : 0 Rectangle { @@ -53,8 +53,8 @@ Rectangle { x: root.vertical ? 0 : -parent.offset y: root.vertical ? -parent.offset : 0 - width: root.maskWidth - height: root.maskHeight + implicitWidth: root.maskWidth + implicitHeight: root.maskHeight anchors.horizontalCenter: root.vertical ? parent.horizontalCenter : undefined anchors.verticalCenter: root.vertical ? undefined : parent.verticalCenter -- cgit v1.2.3-freya