From 139c5c455db09fde9ca2ab033d749ef01147469b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E5=AD=90=E6=A5=9A=5Czhuzi?= Date: Sat, 4 Nov 2023 21:58:21 +0800 Subject: [PATCH] update --- src/Qt5/imports/FluentUI/Controls/FluIconButton.qml | 3 +++ src/Qt6/imports/FluentUI/Controls/FluIconButton.qml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Qt5/imports/FluentUI/Controls/FluIconButton.qml b/src/Qt5/imports/FluentUI/Controls/FluIconButton.qml index b9bd08b4..f73b5258 100644 --- a/src/Qt5/imports/FluentUI/Controls/FluIconButton.qml +++ b/src/Qt5/imports/FluentUI/Controls/FluIconButton.qml @@ -6,6 +6,7 @@ import FluentUI 1.0 Button { display: Button.IconOnly property int iconSize: 20 + property int textSize: 12 property int iconSource property bool disabled: false property int radius:4 @@ -82,6 +83,7 @@ Button { Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter visible: display !== Button.IconOnly color: control.textColor + font.pixelSize: control.textSize } } } @@ -98,6 +100,7 @@ Button { Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter visible: display !== Button.IconOnly color: control.textColor + font.pixelSize: control.textSize } } } diff --git a/src/Qt6/imports/FluentUI/Controls/FluIconButton.qml b/src/Qt6/imports/FluentUI/Controls/FluIconButton.qml index 2b755475..13435a62 100644 --- a/src/Qt6/imports/FluentUI/Controls/FluIconButton.qml +++ b/src/Qt6/imports/FluentUI/Controls/FluIconButton.qml @@ -7,6 +7,7 @@ import FluentUI Button { display: Button.IconOnly property int iconSize: 20 + property int textSize: 12 property int iconSource property bool disabled: false property int radius:4 @@ -83,6 +84,7 @@ Button { Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter visible: display !== Button.IconOnly color: control.textColor + font.pixelSize: control.textSize } } } @@ -99,6 +101,7 @@ Button { Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter visible: display !== Button.IconOnly color: control.textColor + font.pixelSize: control.textSize } } }