mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:28:02 +02:00
Rework buttons
This commit is contained in:
parent
98cd706528
commit
1774ad9c53
1 changed files with 7 additions and 10 deletions
|
@ -31,9 +31,8 @@ DialogContainer {
|
||||||
readonly property int borderWidth: 30
|
readonly property int borderWidth: 30
|
||||||
readonly property int closeMargin: 16
|
readonly property int closeMargin: 16
|
||||||
readonly property int inputSpacing: 16
|
readonly property int inputSpacing: 16
|
||||||
readonly property int buttonWidth: 150
|
readonly property int buttonWidth: 100
|
||||||
readonly property int buttonHeight: 50
|
readonly property int buttonHeight: 30
|
||||||
readonly property int buttonRadius: 15
|
|
||||||
readonly property int noticeHeight: 15 * inputSpacing
|
readonly property int noticeHeight: 15 * inputSpacing
|
||||||
|
|
||||||
signal triggerBuildDownload
|
signal triggerBuildDownload
|
||||||
|
@ -140,11 +139,10 @@ DialogContainer {
|
||||||
id: cancelButton
|
id: cancelButton
|
||||||
width: updateDialog.buttonWidth
|
width: updateDialog.buttonWidth
|
||||||
height: updateDialog.buttonHeight
|
height: updateDialog.buttonHeight
|
||||||
radius: updateDialog.buttonRadius
|
|
||||||
color: "red"
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Cancel"
|
text: "Cancel"
|
||||||
|
font.weight: Font.DemiBold
|
||||||
anchors {
|
anchors {
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
@ -160,14 +158,13 @@ DialogContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: downloadButton
|
id: updateButton
|
||||||
width: updateDialog.buttonWidth
|
width: updateDialog.buttonWidth
|
||||||
height: updateDialog.buttonHeight
|
height: updateDialog.buttonHeight
|
||||||
radius: updateDialog.buttonRadius
|
|
||||||
color: "green"
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
text: "Upgrade"
|
text: "Update"
|
||||||
|
font.weight: Font.DemiBold
|
||||||
anchors {
|
anchors {
|
||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
|
@ -175,7 +172,7 @@ DialogContainer {
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: downloadButtonAction
|
id: updateButtonAction
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: updateDialog.triggerUpgrade()
|
onClicked: updateDialog.triggerUpgrade()
|
||||||
cursorShape: "PointingHandCursor"
|
cursorShape: "PointingHandCursor"
|
||||||
|
|
Loading…
Reference in a new issue