From f92ac9f0b025f4f2b15f3d9aa80d9fa16bf33463 Mon Sep 17 00:00:00 2001 From: quadbyte Date: Mon, 11 Aug 2025 11:44:21 -0400 Subject: [PATCH] NIconButton support for custom font family --- Widgets/NIconButton.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Widgets/NIconButton.qml b/Widgets/NIconButton.qml index 042438a..2f3b964 100644 --- a/Widgets/NIconButton.qml +++ b/Widgets/NIconButton.qml @@ -18,6 +18,7 @@ Rectangle { property var onExited: function () {} property var onClicked: function () {} property real fontPointSize: Style.fontSizeMedium + property string fontFamily: "Material Symbols Outlined" implicitWidth: size implicitHeight: size @@ -30,7 +31,7 @@ Rectangle { anchors.horizontalCenterOffset: 0 anchors.verticalCenterOffset: 0 text: root.icon - font.family: "Material Symbols Outlined" + font.family: fontFamily font.pointSize: root.fontPointSize * scaling color: root.hovering ? Colors.onAccent : Colors.textPrimary horizontalAlignment: Text.AlignHCenter