@@ -1,5 +1,5 @@
2− * Copyright (C) 2015-2016 Canonical, Ltd.
2+ * Copyright (C) 2013-2016 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
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
5 * it under the terms of the GNU General Public License as published by
@@ -16,30 +16,119 @@
17import QtQuick 2.4
17import QtQuick 2.4
18import Ubuntu.Components 1.3
18import Ubuntu.Components 1.3
19−import AccountsService 0.1
20import Wizard 0.1
19import Wizard 0.1
21import ".." as LocalComponents
20import ".." as LocalComponents
23LocalComponents.Page {
22LocalComponents.Page {
24 objectName: "welcomeUpdate"
23 objectName: "welcomeUpdate"
25− title: i18n.tr("Welcome to " + System.version)
27− forwardButtonSourceComponent: forwardButton
25+ hasBackButton: false
27+ buttonBarVisible: false
28 onlyOnUpdate: true
28 onlyOnUpdate: true
30− Label {
30+ Component.onCompleted: {
31− text: "This is where cool stuff would go"
31+ state = "reanchored";
34− Component {
34+ states: State {
35− id: forwardButton
35+ name: "reanchored"
36− LocalComponents.StackButton {
36+ AnchorChanges { target: bgImage; anchors.top: parent.top; anchors.bottom: parent.bottom }
37+ AnchorChanges { target: column;
38+ anchors.verticalCenter: parent.verticalCenter;
39+ anchors.top: undefined
43+ SequentialAnimation {
45+ PauseAnimation { duration: UbuntuAnimation.BriskDuration }
50+ duration: UbuntuAnimation.BriskDuration
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 ") + System.version.split("Base-Version: ")[1]
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("We will make sure your device is ready to use ") + System.version.split("Base-Version: ")[1]
110+ top: welcomeText.bottom
111+ horizontalCenter: parent.horizontalCenter
112+ topMargin: units.gu(4)
114+ color: "transparent"
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)
37− text: i18n.tr("Next")
124+ text: i18n.tr("Next")
38− onClicked: {
125+ fontSize: "medium"
39− if (d.validName) {
126+ anchors.centerIn: parent
40− AccountsService.realName = d.validName;
127+ }
41− }
128+ AbstractButton {
129+ objectName: "nextButton"
130+ anchors.fill: parent
42− pageStack.next();
131+ onClicked: pageStack.next();