Rework buttons

This commit is contained in:
David Rowe 2015-07-07 15:59:34 -07:00
parent 98cd706528
commit 1774ad9c53

View file

@ -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"