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/TrayItem.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/bar/components/TrayItem.qml') diff --git a/modules/bar/components/TrayItem.qml b/modules/bar/components/TrayItem.qml index 5ce45ee..57ec106 100644 --- a/modules/bar/components/TrayItem.qml +++ b/modules/bar/components/TrayItem.qml @@ -15,8 +15,8 @@ MouseArea { required property color colour acceptedButtons: Qt.LeftButton | Qt.RightButton - width: Appearance.font.size.smaller * 2 - height: Appearance.font.size.smaller * 2 + implicitWidth: Appearance.font.size.smaller * 2 + implicitHeight: Appearance.font.size.smaller * 2 onClicked: event => { if (event.button === Qt.LeftButton) -- cgit v1.2.3-freya