-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathshow.qml
143 lines (133 loc) · 4.6 KB
/
show.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
*
* SPDX-FileCopyrightText: 2015 Teo Mrnjavac <[email protected]>
* SPDX-FileCopyrightText: 2018 Adriaan de Groot <[email protected]>
* SPDX-FileCopyrightText: 2022 Victor Fuentes <[email protected]>
* SPDX-License-Identifier: GPL-3.0-or-later
*
* Calamares is Free Software: see the License-Identifier above.
*
*/
import QtQuick 2.0;
import calamares.slideshow 1.0;
Presentation
{
id: presentation
function nextSlide() {
console.log("QML Component (default slideshow) Next slide");
presentation.goToNextSlide();
}
Timer {
id: advanceTimer
interval: 20000
running: presentation.activatedInCalamares
repeat: true
onTriggered: nextSlide()
}
Slide {
Text {
id: text1
anchors.centerIn: parent
text: "Reproducible"
font.pixelSize: 30
wrapMode: Text.WordWrap
width: presentation.width
horizontalAlignment: Text.Center
color: "#6586C8"
}
Image {
id: background1
source: "gfx-landing-reproducible.png"
width: 200; height: 200
fillMode: Image.PreserveAspectFit
anchors.bottom: text1.top
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
anchors.horizontalCenter: background1.horizontalCenter
anchors.top: text1.bottom
text: "Nix builds packages in isolation from each other.<br/>"+
"This ensures that they are reproducible and don't<br/>"+
"have undeclared dependencies, so <b>if a package<br/>"+
"works on one machine, it will also work on another.</b>"
wrapMode: Text.WordWrap
width: presentation.width
horizontalAlignment: Text.Center
}
}
Slide {
Text {
id: text2
anchors.centerIn: parent
text: "Declarative"
font.pixelSize: 30
wrapMode: Text.WordWrap
width: presentation.width
horizontalAlignment: Text.Center
color: "#6586C8"
}
Image {
id: background2
source: "gfx-landing-declarative.png"
width: 200; height: 200
fillMode: Image.PreserveAspectFit
anchors.bottom: text2.top
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
anchors.horizontalCenter: background2.horizontalCenter
anchors.top: text2.bottom
text: "Nix makes it <b>trivial to share development and build<br/>"+
"environments</b> for your projects, regardless of what<br/>"+
"programming languages and tools you’re using."
wrapMode: Text.WordWrap
width: presentation.width
horizontalAlignment: Text.Center
}
}
Slide {
Text {
id: text3
anchors.centerIn: parent
text: "Reliable"
font.pixelSize: 30
wrapMode: Text.WordWrap
width: presentation.width
horizontalAlignment: Text.Center
color: "#6586C8"
}
Image {
id: background3
source: "gfx-landing-reliable.png"
width: 200; height: 200
fillMode: Image.PreserveAspectFit
anchors.bottom: text3.top
anchors.horizontalCenter: parent.horizontalCenter
}
Text {
anchors.horizontalCenter: background3.horizontalCenter
anchors.top: text3.bottom
text: "Nix ensures that installing or upgrading one package<br/>"+
"<b>cannot break other packages.</b> It allows you to <b>roll<br/>"+
"back to previous versions,</b> and ensures that no<br/>"+
"package is in an inconsistent state during an<br/>"+
"upgrade."
wrapMode: Text.WordWrap
width: presentation.width
horizontalAlignment: Text.Center
}
}
// When this slideshow is loaded as a V1 slideshow, only
// activatedInCalamares is set, which starts the timer (see above).
//
// In V2, also the onActivate() and onLeave() methods are called.
// These example functions log a message (and re-start the slides
// from the first).
function onActivate() {
console.log("QML Component (default slideshow) activated");
presentation.currentSlide = 0;
}
function onLeave() {
console.log("QML Component (default slideshow) deactivated");
}
}