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
91 text: (System.isUpdate) ? i18n.tr("Welcome Back") : i18n.tr("Welcome to Lomiri")
97 anchors.left: parent.left
98 anchors.right: parent.right
99 anchors.top: welcomeLabel.bottom
100 anchors.topMargin: units.gu(2)
101 horizontalAlignment: Text.AlignHCenter
104 font.weight: Font.Light
106 text: i18n.tr("You are ready to use your device now")
112 top: welcomeText.bottom
113 horizontalCenter: parent.horizontalCenter
114 topMargin: units.gu(4)
117 border.width: units.dp(1)
118 border.color: whiteColor
120 width: buttonLabel.paintedWidth + units.gu(6)
121 height: buttonLabel.paintedHeight + units.gu(1.8)
126 text: (System.isUpdate) ? i18n.tr("Continue") : i18n.tr("Get Started")
128 anchors.centerIn: parent
131 objectName: "finishButton"
133 onClicked: root.quitWizard()