on xenial help sign in
update page visuals
commit9a819d43136a46a7222a1d21d9203bca78e6a087 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 15 Jul 2016, 17:47 (10 years ago) parente5182ff
1 file changed+33−13
qml/Wizard/Pages/77-system-update.qml+33−13
qml/Wizard/Pages/77-system-update.qml+33−13
@@ -57,16 +57,13 @@ LocalComponents.Page {
5757 rowSpacing: units.gu(1)
5858 columnSpacing: units.gu(2)
5959
60− UbuntuShape {
60+ Image {
6161 Layout.rowSpan: 3
62− aspect: UbuntuShape.Flat
63− backgroundColor: theme.palette.normal.base
64− width: units.gu(8)
62+ width: units.gu(3)
6563 height: width
66− sourceScale: Qt.vector2d(0.5,0.5)
67− source: Image {
68− source: Qt.resolvedUrl("/usr/share/icons/suru/apps/scalable/ubuntu-logo-symbolic.svg")
69− }
64+ sourceSize: Qt.size(units.gu(3), units.gu(3))
65+ fillMode: Image.PreserveAspectFit
66+ source: "image://theme/distributor-logo"
7067 }
7168
7269 Label {
@@ -100,13 +97,36 @@ LocalComponents.Page {
10097 text: i18n.tr("This could take a few minutes...")
10198 }
10299
103− Button {
100+ Rectangle {
104101 anchors.left: parent.left
105102 anchors.leftMargin: column.anchors.leftMargin == 0 ? staticMargin : 0
106− text: i18n.tr("Install and restart now")
107− onClicked: {
108− // TODO mark the wizard to skip until the finished page for the next boot
109− SystemImage.applyUpdate();
103+ color: theme.palette.normal.base
104+ radius: units.dp(4)
105+ width: buttonLabel.paintedWidth + units.gu(3)
106+ height: buttonLabel.paintedHeight + units.gu(1.8)
107+
108+ Label {
109+ id: buttonLabel
110+ color: textColor
111+ text: i18n.tr("Install and restart now")
112+ fontSize: "medium"
113+ anchors.centerIn: parent
114+ }
115+
116+ AbstractButton {
117+ id: button
118+ objectName: "installButton"
119+ anchors.fill: parent
120+ onClicked: SystemImage.applyUpdate(); // TODO mark the wizard to skip until the finished page for the next boot
121+ }
122+
123+ transformOrigin: Item.Top
124+ scale: button.pressed ? 0.98 : 1.0
125+ Behavior on scale {
126+ ScaleAnimator {
127+ duration: UbuntuAnimation.SnapDuration
128+ easing.type: Easing.Linear
129+ }
110130 }
111131 }
112132 }