From 0ab1b1e54576ee7a526dd67c56b9df260f0d8137 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 5 May 2026 02:32:41 +1000 Subject: [PATCH] fix: force even icon button size + fix vert off --- components/controls/IconButton.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/controls/IconButton.qml b/components/controls/IconButton.qml index 9313adb8..60316083 100644 --- a/components/controls/IconButton.qml +++ b/components/controls/IconButton.qml @@ -26,12 +26,19 @@ ButtonBase { } implicitWidth: implicitHeight - implicitHeight: label.implicitHeight + padding * 2 + implicitHeight: { + // Ensure even size so icon is centered properly + const h = label.implicitHeight + padding * 2; + if (h % 2 !== 0) + return h + 1; + return h; + } MaterialIcon { id: label anchors.centerIn: parent + anchors.verticalCenterOffset: 1 // AHHHHHHH material symbols whyyyy color: root.onColour fontStyle: root.font fill: !root.isToggle || root.internalChecked ? 1 : 0