This commit is contained in:
朱子楚\zhuzi 2023-11-04 21:58:21 +08:00
parent 3460b59839
commit 139c5c455d
2 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import FluentUI 1.0
Button { Button {
display: Button.IconOnly display: Button.IconOnly
property int iconSize: 20 property int iconSize: 20
property int textSize: 12
property int iconSource property int iconSource
property bool disabled: false property bool disabled: false
property int radius:4 property int radius:4
@ -82,6 +83,7 @@ Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: display !== Button.IconOnly visible: display !== Button.IconOnly
color: control.textColor color: control.textColor
font.pixelSize: control.textSize
} }
} }
} }
@ -98,6 +100,7 @@ Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: display !== Button.IconOnly visible: display !== Button.IconOnly
color: control.textColor color: control.textColor
font.pixelSize: control.textSize
} }
} }
} }

View File

@ -7,6 +7,7 @@ import FluentUI
Button { Button {
display: Button.IconOnly display: Button.IconOnly
property int iconSize: 20 property int iconSize: 20
property int textSize: 12
property int iconSource property int iconSource
property bool disabled: false property bool disabled: false
property int radius:4 property int radius:4
@ -83,6 +84,7 @@ Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: display !== Button.IconOnly visible: display !== Button.IconOnly
color: control.textColor color: control.textColor
font.pixelSize: control.textSize
} }
} }
} }
@ -99,6 +101,7 @@ Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: display !== Button.IconOnly visible: display !== Button.IconOnly
color: control.textColor color: control.textColor
font.pixelSize: control.textSize
} }
} }
} }