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 } } }