34 lines
896 B
QML
34 lines
896 B
QML
import QtQuick
|
|
import QtQuick.Controls.Basic
|
|
import QtQuick.Controls.impl // Needed for features like the Control.blend() function
|
|
import DesignSystem
|
|
|
|
Button {
|
|
id: control
|
|
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
|
|
implicitHeight: 40
|
|
visible: !control.flat || control.down || control.checked || control.highlighted
|
|
color: control.down ? Theme.card : "transparent"
|
|
border.color: Theme.softBorder
|
|
border.width: 1
|
|
// custom
|
|
radius: Theme.radius
|
|
}
|
|
}
|