2 * Copyright (C) 2013-2016 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 import Ubuntu.Components 1.3
19 import ".." as LocalComponents
21 LocalComponents.Page {
22 objectName: "finishedPage"
27 buttonBarVisible: false
29 Component.onCompleted: {
35 AnchorChanges { target: bgImage; anchors.top: parent.top; anchors.bottom: parent.bottom }
36 AnchorChanges { target: column;
37 anchors.verticalCenter: parent.verticalCenter;
38 anchors.top: undefined
42 transitions: Transition {
45 targets: [bgImage, column]
46 duration: UbuntuAnimation.SlowDuration
47 easing.type: Easing.OutCirc
50 targets: [bgImage,column]
54 duration: UbuntuAnimation.SlowDuration
55 easing.type: Easing.OutCirc
62 source: wideMode ? "data/Desktop_splash_screen_bkg.png" : "data/Phone_splash_screen_bkg.png"
63 scale: Image.PreserveAspectFit
64 anchors.left: parent.left
65 anchors.right: parent.right
66 anchors.bottom: parent.top // outside to let it slide down
72 anchors.leftMargin: leftMargin
73 anchors.rightMargin: rightMargin
74 anchors.left: parent.left
75 anchors.right: parent.right
76 anchors.top: parent.bottom // outside to let it slide in
77 height: childrenRect.height
82 anchors.left: parent.left
83 anchors.right: parent.right
84 horizontalAlignment: Text.AlignHCenter
87 font.weight: Font.Light
89 text: i18n.tr("Welcome to Ubuntu")
95 anchors.left: parent.left
96 anchors.right: parent.right
97 anchors.top: welcomeLabel.bottom
98 anchors.topMargin: units.gu(2)
99 horizontalAlignment: Text.AlignHCenter
102 font.weight: Font.Light
104 text: i18n.tr("You are ready to use your device now")
110 top: welcomeText.bottom
111 horizontalCenter: parent.horizontalCenter
112 topMargin: units.gu(4)
115 border.width: units.dp(1)
116 border.color: whiteColor
118 width: buttonLabel.paintedWidth + units.gu(6)
119 height: buttonLabel.paintedHeight + units.gu(1.8)
124 text: i18n.tr("Get Started")
126 anchors.centerIn: parent
129 objectName: "finishButton"
131 onClicked: root.quitWizard()