OSDN Git Service

fixed theme
[alterlinux/LFBS.git] / channels / share / airootfs / usr / share / calamares / branding / serene / show.qml
1 /* === This file is part of Calamares - <http://github.com/calamares> ===
2  *
3  *   Copyright 2015, Teo Mrnjavac <teo@kde.org>
4  *
5  *   Calamares 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, either version 3 of the License, or
8  *   (at your option) any later version.
9  *
10  *   Calamares is distributed in the hope that it will be useful,
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  *   GNU General Public License for more details.
14  *
15  *   You should have received a copy of the GNU General Public License
16  *   along with Calamares. If not, see <http://www.gnu.org/licenses/>.
17  */
18
19 /*
20  * Slides images dimensions are 800x440px.
21  */
22
23 import QtQuick 2.0;
24 import calamares.slideshow 1.0;
25
26 Presentation
27 {
28     id: presentation
29
30     
31     Slide {
32         Image {
33             id: background
34             source: "logo-512.png"
35             width: 200; height: 200
36             fillMode: Image.PreserveAspectFit
37             anchors.centerIn: parent
38         }
39         Text {
40             id: textkun
41             anchors.horizontalCenter: background.horizontalCenter
42             anchors.top: background.bottom
43             text: "Installing now...."
44             wrapMode: Text.WordWrap
45             width: presentation.width
46             horizontalAlignment: Text.Center
47         }
48
49     SequentialAnimation{
50         SequentialAnimation{
51             ParallelAnimation {
52                 YAnimator {
53                     target: imageleft
54                     from: imageleft.y
55                     to: imageleft.y * 4.8
56                     easing.type: Easing.OutExpo;
57                     duration: 300
58                 }
59             }
60             ParallelAnimation {
61                 YAnimator {
62                     target: imageleft;
63                     from: imageleft.y * 4.8
64                     to: imageleft.y
65                     easing.type: Easing.OutBounce;
66                     duration: 1000
67                 }
68             }
69         }
70         PauseAnimation { duration: 1100 }
71         running: true
72         loops: Animation.Infinite
73     }
74     SequentialAnimation{
75         PauseAnimation { duration: 300 }
76         SequentialAnimation{
77             ParallelAnimation {
78                 YAnimator {
79                     target: imagecenter
80                     from: imageleft.y
81                     to: imageleft.y * 4.8
82                     easing.type: Easing.OutExpo;
83                     duration: 300
84                 }
85             }
86             ParallelAnimation {
87                 YAnimator {
88                     target: imagecenter;
89                     from: imageleft.y * 4.8
90                     to: imageleft.y
91                     easing.type: Easing.OutBounce;
92                     duration: 1000
93                 }
94             }
95         }
96         PauseAnimation { duration: 800 }
97         running: true
98         loops: Animation.Infinite
99     }
100     SequentialAnimation{
101         PauseAnimation { duration: 600 }
102         SequentialAnimation{
103             ParallelAnimation {
104                 YAnimator {
105                     target: imageright
106                     from: imageleft.y
107                     to: imageleft.y * 4.8
108                     easing.type: Easing.OutExpo;
109                     duration: 300
110                 }
111             }
112             ParallelAnimation {
113                 YAnimator {
114                     target: imageright;
115                     from: imageleft.y * 4.8
116                     to: imageleft.y
117                     easing.type: Easing.OutBounce;
118                     duration: 1000
119                 }
120             }
121         }
122         PauseAnimation { duration: 500 }
123         running: true
124         loops: Animation.Infinite
125     }
126     Rectangle {
127         id: rectangle
128
129         anchors.horizontalCenter: background.horizontalCenter
130         anchors.top: textkun.bottom
131         color: "#ffffff"
132         anchors.topMargin: 28
133         width: textkun.width
134         Image {
135             id: imageleft
136             anchors.right: imagecenter.left
137             height: textkun.height / 3
138             width:textkun.height / 3
139             source: "circle.svg"
140             anchors.topMargin: 28
141             anchors.rightMargin: 9
142             anchors.leftMargin: 16
143             y:imagecenter.y
144
145             fillMode: Image.PreserveAspectFit
146         }
147         Image {
148             id: imagecenter
149             height: textkun.height / 3
150             width:textkun.height / 3
151             source: "circle.svg"
152             anchors.topMargin: 28
153             anchors.leftMargin: 9
154             anchors.centerIn: rectangle
155             fillMode: Image.PreserveAspectFit
156         }
157         Image {
158             id: imageright
159             anchors.left: imagecenter.right
160             height: imagecenter.height
161             source: "circle.svg"
162             y:imagecenter.y
163             anchors.topMargin: 28
164
165             anchors.leftMargin: 9
166             fillMode: Image.PreserveAspectFit
167         }
168     }
169     }
170 }