2 * Copyright (C) 2018 The UBports project
3 * Copyright (C) 2013-2016 Canonical Ltd.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 3.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19import Lomiri.Components 1.3
21import ".." as LocalComponents
24 objectName: "finishedPage"
29 buttonBarVisible: false
31 Component.onCompleted: {
37 AnchorChanges { target: bgImage; anchors.top: parent.top; anchors.bottom: parent.bottom }
38 AnchorChanges { target: column;
39 anchors.verticalCenter: parent.verticalCenter;
40 anchors.top: undefined
44 transitions: Transition {
47 targets: [bgImage, column]
48 duration: LomiriAnimation.SlowDuration
49 easing.type: Easing.OutCirc
52 targets: [bgImage,column]
56 duration: LomiriAnimation.SlowDuration
57 easing.type: Easing.OutCirc
64 source: wideMode ? "data/Desktop_splash_screen_bkg.png" : "data/Phone_splash_screen_bkg.png"
65 scale: Image.PreserveAspectFit
66 anchors.left: parent.left
67 anchors.right: parent.right
68 anchors.bottom: parent.top // outside to let it slide down
74 anchors.leftMargin: leftMargin
75 anchors.rightMargin: rightMargin
76 anchors.left: parent.left
77 anchors.right: parent.right
78 anchors.top: parent.bottom // outside to let it slide in
79 height: childrenRect.height
84 anchors.left: parent.left
85 anchors.right: parent.right
86 horizontalAlignment: Text.AlignHCenter
89 font.weight: Font.Light
93 ? i18n.tr("Welcome Back")
94 // TRANSLATORS: %1 contains the distro name
95 : i18n.tr("Welcome to %1").arg(System.distroName)
102 anchors.left: parent.left
103 anchors.right: parent.right
104 anchors.top: welcomeLabel.bottom
105 anchors.topMargin: units.gu(2)
106 horizontalAlignment: Text.AlignHCenter
109 font.weight: Font.Light
111 text: i18n.tr("You are ready to use your device now")
117 top: welcomeText.bottom
118 horizontalCenter: parent.horizontalCenter
119 topMargin: units.gu(4)
122 border.width: units.dp(1)
123 border.color: whiteColor
125 width: buttonLabel.paintedWidth + units.gu(6)
126 height: buttonLabel.paintedHeight + units.gu(1.8)
131 text: (System.isUpdate) ? i18n.tr("Continue") : i18n.tr("Get Started")
133 anchors.centerIn: parent
136 objectName: "finishButton"
138 onClicked: root.quitWizard()