From 5e23476089839c2708170faf08824028cf3fa9db Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Tue, 9 Sep 2025 08:17:00 -0400 Subject: [PATCH] NIconButton: font size auto determined by button size --- Widgets/NIconButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Widgets/NIconButton.qml b/Widgets/NIconButton.qml index bb37444..e5576ed 100644 --- a/Widgets/NIconButton.qml +++ b/Widgets/NIconButton.qml @@ -40,7 +40,7 @@ Rectangle { NIcon { icon: root.icon - font.pointSize: Style.fontSizeM * scaling + font.pointSize: Math.max(1, root.width * 0.4) color: root.enabled && root.hovering ? colorFgHover : colorFg // Center horizontally x: (root.width - width) / 2