2023-05-22 09:01:46 -04:00
|
|
|
import QtCore
|
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Basic
|
|
|
|
|
|
|
|
Button {
|
|
|
|
id: myButton
|
|
|
|
padding: 10
|
|
|
|
contentItem: Text {
|
|
|
|
text: myButton.text
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
2023-05-22 22:13:42 -04:00
|
|
|
color: myButton.enabled ? theme.textColor : theme.mutedTextColor
|
2023-08-07 13:54:13 -04:00
|
|
|
font.pixelSize: theme.fontSizeLarge
|
2023-05-22 09:01:46 -04:00
|
|
|
Accessible.role: Accessible.Button
|
|
|
|
Accessible.name: text
|
|
|
|
}
|
|
|
|
background: Rectangle {
|
2023-05-30 19:58:37 -04:00
|
|
|
border.color: myButton.down ? theme.backgroundLightest : theme.buttonBorder
|
|
|
|
border.width: 2
|
2023-05-22 09:01:46 -04:00
|
|
|
radius: 10
|
2023-07-01 11:34:21 -04:00
|
|
|
color: myButton.hovered ? theme.backgroundDark : theme.backgroundDarkest
|
2023-05-22 09:01:46 -04:00
|
|
|
}
|
2023-05-23 11:26:49 -04:00
|
|
|
Accessible.role: Accessible.Button
|
|
|
|
Accessible.name: text
|
2023-08-07 13:54:13 -04:00
|
|
|
}
|