This commit is contained in:
朱子楚\zhuzi 2023-11-04 22:06:05 +08:00
parent 139c5c455d
commit 661529f1f4
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,6 @@ 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
@ -49,6 +48,7 @@ Button {
verticalPadding: 8
horizontalPadding: 8
enabled: !disabled
font:FluTextStyle.Caption
background: Rectangle{
implicitWidth: 30
implicitHeight: 30
@ -83,7 +83,7 @@ Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: display !== Button.IconOnly
color: control.textColor
font.pixelSize: control.textSize
font: control.font
}
}
}
@ -100,7 +100,7 @@ Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: display !== Button.IconOnly
color: control.textColor
font.pixelSize: control.textSize
font: control.font
}
}
}

View File

@ -7,7 +7,6 @@ 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
@ -50,6 +49,7 @@ Button {
verticalPadding: 8
horizontalPadding: 8
enabled: !disabled
font:FluTextStyle.Caption
background: Rectangle{
implicitWidth: 30
implicitHeight: 30
@ -84,7 +84,7 @@ Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: display !== Button.IconOnly
color: control.textColor
font.pixelSize: control.textSize
font: control.font
}
}
}
@ -101,7 +101,7 @@ Button {
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
visible: display !== Button.IconOnly
color: control.textColor
font.pixelSize: control.textSize
font: control.font
}
}
}