fix: tweak primary, secondary, ghost buttons
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user