fix: tweak primary, secondary, ghost buttons
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ Button {
|
||||
implicitWidth: 100
|
||||
implicitHeight: 40
|
||||
visible: !control.flat || control.down || control.checked || control.highlighted
|
||||
color: control.down ? "transparent" : Theme.card
|
||||
color: control.down ? Theme.card : "transparent"
|
||||
border.width: 0
|
||||
// custom
|
||||
radius: Theme.radius
|
||||
|
||||
@@ -8,6 +8,17 @@ Button {
|
||||
font.family: Fonts.dotrice
|
||||
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 {
|
||||
// NOTE: copied from ~/Qt/6.8.3/macos/qml/QtQuick/Controls/Basic/Button.qml
|
||||
implicitWidth: 100
|
||||
|
||||
@@ -8,6 +8,17 @@ Button {
|
||||
font.family: Fonts.dotrice
|
||||
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 {
|
||||
// NOTE: copied from ~/Qt/6.8.3/macos/qml/QtQuick/Controls/Basic/Button.qml
|
||||
implicitWidth: 100
|
||||
|
||||
Reference in New Issue
Block a user