on xenial help sign in
tweak the Get Started button ;)
commit391acffcb1ecb36ce7ced02404e9c5c94d22f398 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 22 Sep 2015, 01:08 (11 years ago) parent9476508
2 files changed+24−12
qml/Wizard/Pages.qml+2−2 qml/Wizard/Pages/80-finished.qml+22−10
qml/Wizard/Pages.qml+2−2
@@ -82,7 +82,7 @@ Item {
8282 }
8383
8484 function prev() {
85− var isPrimaryPage = !currentPage.customTitle; // skip for secondary/extra pages
85+ var isPrimaryPage = !currentPage.customTitle;
8686 if (pageList.index >= pageStack.depth - 1) {
8787 pageList.prev(); // update pageList.index, but not for extra pages
8888 }
@@ -115,7 +115,7 @@ Item {
115115 // skipValid to be assigned (see Connections object below)
116116 checkSkip()
117117
118− var isPrimaryPage = !currentPage.customTitle; // skip for secondary/extra pages
118+ var isPrimaryPage = !currentPage.customTitle;
119119 if (isPrimaryPage) {
120120 currentPage.aboutToShow(UbuntuAnimation.BriskDuration, Qt.RightToLeft);
121121 } else {
qml/Wizard/Pages/80-finished.qml+22−10
@@ -41,6 +41,7 @@ LocalComponents.Page {
4141 spacing: units.gu(2)
4242
4343 Label {
44+ id: welcomeLabel
4445 anchors.left: parent.left
4546 anchors.right: parent.right
4647 horizontalAlignment: Text.AlignHCenter
@@ -60,16 +61,27 @@ LocalComponents.Page {
6061 text: i18n.tr("You are ready to use your device now")
6162 }
6263
63− Button {
64− anchors.horizontalCenter: parent.horizontalCenter
65− text: i18n.tr("Get Started")
66− color: "transparent"
67− strokeColor: "white"
68− font.weight: Font.Normal
69− font.pixelSize: FontUtils.sizeToPixels("medium")
70− width: Math.max(parent.width/2, implicitWidth)
71− onClicked: {
72− root.quitWizard();
64+ Rectangle {
65+ anchors {
66+ horizontalCenter: parent.horizontalCenter
67+ }
68+ color: 'transparent'
69+ border.width: units.dp(1)
70+ border.color: 'white'
71+ radius: units.dp(4)
72+ width: buttonLabel.paintedWidth + units.gu(3)
73+ height: buttonLabel.paintedHeight + units.gu(1.5)
74+
75+ Label {
76+ id: buttonLabel
77+ color: 'white'
78+ text: i18n.tr("Get Started")
79+ fontSize: "medium"
80+ anchors.centerIn: parent
81+ }
82+ MouseArea {
83+ anchors.fill: parent
84+ onClicked: root.quitWizard()
7385 }
7486 }
7587 }