dedup qml: convert more buttons to MyButton

This commit is contained in:
Justin Wang
2023-05-23 15:53:32 +02:00
committed by AT
parent 8e705d730d
commit eb6a7cca47
4 changed files with 24 additions and 110 deletions

View File

@@ -43,30 +43,13 @@ Dialog {
color: theme.textColor
}
Button {
MyButton {
id: button
anchors.left: label.right
anchors.leftMargin: 10
anchors.verticalCenter: label.verticalCenter
padding: 20
contentItem: Text {
text: qsTr("Update")
horizontalAlignment: Text.AlignHCenter
color: theme.textColor
Accessible.role: Accessible.Button
Accessible.name: text
Accessible.description: qsTr("Use this to launch an external application that will check for updates to the installer")
}
background: Rectangle {
opacity: .5
border.color: theme.backgroundLightest
border.width: 1
radius: 10
color: theme.backgroundLight
}
text: qsTr("Update")
onClicked: {
if (!LLM.checkForUpdates())
checkForUpdatesError.open()