mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 16:26:17 +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 closeMargin: 16
|
||||
readonly property int inputSpacing: 16
|
||||
readonly property int buttonWidth: 150
|
||||
readonly property int buttonHeight: 50
|
||||
readonly property int buttonRadius: 15
|
||||
readonly property int buttonWidth: 100
|
||||
readonly property int buttonHeight: 30
|
||||
readonly property int noticeHeight: 15 * inputSpacing
|
||||
|
||||
signal triggerBuildDownload
|
||||
|
@ -140,11 +139,10 @@ DialogContainer {
|
|||
id: cancelButton
|
||||
width: updateDialog.buttonWidth
|
||||
height: updateDialog.buttonHeight
|
||||
radius: updateDialog.buttonRadius
|
||||
color: "red"
|
||||
|
||||
Text {
|
||||
text: "Cancel"
|
||||
font.weight: Font.DemiBold
|
||||
anchors {
|
||||
verticalCenter: parent.verticalCenter
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
|
@ -160,14 +158,13 @@ DialogContainer {
|
|||
}
|
||||
|
||||
Rectangle {
|
||||
id: downloadButton
|
||||
id: updateButton
|
||||
width: updateDialog.buttonWidth
|
||||
height: updateDialog.buttonHeight
|
||||
radius: updateDialog.buttonRadius
|
||||
color: "green"
|
||||
|
||||
Text {
|
||||
text: "Upgrade"
|
||||
text: "Update"
|
||||
font.weight: Font.DemiBold
|
||||
anchors {
|
||||
verticalCenter: parent.verticalCenter
|
||||
horizontalCenter: parent.horizontalCenter
|
||||
|
@ -175,7 +172,7 @@ DialogContainer {
|
|||
}
|
||||
|
||||
MouseArea {
|
||||
id: downloadButtonAction
|
||||
id: updateButtonAction
|
||||
anchors.fill: parent
|
||||
onClicked: updateDialog.triggerUpgrade()
|
||||
cursorShape: "PointingHandCursor"
|
||||
|
|
Loading…
Reference in a new issue