2023-05-22 13:01:46 +00: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-23 02:13:42 +00:00
|
|
|
color: myButton.enabled ? theme.textColor : theme.mutedTextColor
|
2023-05-22 13:01:46 +00:00
|
|
|
Accessible.role: Accessible.Button
|
|
|
|
Accessible.name: text
|
|
|
|
}
|
|
|
|
background: Rectangle {
|
2023-05-30 23:58:37 +00:00
|
|
|
border.color: myButton.down ? theme.backgroundLightest : theme.buttonBorder
|
|
|
|
border.width: 2
|
2023-05-22 13:01:46 +00:00
|
|
|
radius: 10
|
2023-07-01 15:34:21 +00:00
|
|
|
color: myButton.hovered ? theme.backgroundDark : theme.backgroundDarkest
|
2023-05-22 13:01:46 +00:00
|
|
|
}
|
2023-05-23 15:26:49 +00:00
|
|
|
Accessible.role: Accessible.Button
|
|
|
|
Accessible.name: text
|
2023-05-22 13:01:46 +00:00
|
|
|
}
|