fix: tweak primary, secondary, ghost buttons

This commit is contained in:
talksik
2025-04-11 13:33:42 -07:00
parent 539e643b8f
commit 151697bbe6
3 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ Button {
implicitWidth: 100 implicitWidth: 100
implicitHeight: 40 implicitHeight: 40
visible: !control.flat || control.down || control.checked || control.highlighted visible: !control.flat || control.down || control.checked || control.highlighted
color: control.down ? "transparent" : Theme.card color: control.down ? Theme.card : "transparent"
border.width: 0 border.width: 0
// custom // custom
radius: Theme.radius radius: Theme.radius
+11
View File
@@ -8,6 +8,17 @@ Button {
font.family: Fonts.dotrice font.family: Fonts.dotrice
font.bold: true font.bold: true
contentItem: IconLabel {
spacing: control.spacing
mirrored: control.mirrored
display: control.display
icon: control.icon
text: control.text
font: control.font
color: "#FFFFFF"
}
background: Rectangle { background: Rectangle {
// NOTE: copied from ~/Qt/6.8.3/macos/qml/QtQuick/Controls/Basic/Button.qml // NOTE: copied from ~/Qt/6.8.3/macos/qml/QtQuick/Controls/Basic/Button.qml
implicitWidth: 100 implicitWidth: 100
+11
View File
@@ -8,6 +8,17 @@ Button {
font.family: Fonts.dotrice font.family: Fonts.dotrice
font.bold: true font.bold: true
contentItem: IconLabel {
spacing: control.spacing
mirrored: control.mirrored
display: control.display
icon: control.icon
text: control.text
font: control.font
color: Theme.foreground
}
background: Rectangle { background: Rectangle {
// NOTE: copied from ~/Qt/6.8.3/macos/qml/QtQuick/Controls/Basic/Button.qml // NOTE: copied from ~/Qt/6.8.3/macos/qml/QtQuick/Controls/Basic/Button.qml
implicitWidth: 100 implicitWidth: 100