Changeset View
Changeset View
Standalone View
Standalone View
ubiquity-slideshow/slides/index.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | Copyright 2019 Harald Sitter <sitter@kde.org> | ||||
3 | | ||||
4 | This program is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU General Public License as | ||||
6 | published by the Free Software Foundation; either version 3 of | ||||
7 | the License or any later version accepted by the membership of | ||||
8 | KDE e.V. (or its successor approved by the membership of KDE | ||||
9 | e.V.), which shall act as a proxy defined in Section 14 of | ||||
10 | version 3 of the license. | ||||
11 | | ||||
12 | This program is distributed in the hope that it will be useful, | ||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
15 | GNU General Public License for more details. | ||||
16 | | ||||
17 | You should have received a copy of the GNU General Public License | ||||
18 | along with this program. If not, see <https://www.gnu.org/licenses/>. | ||||
19 | */ | ||||
20 | | ||||
21 | import QtQuick 2.12 | ||||
22 | import calamares.slideshow 1.0 | ||||
23 | | ||||
24 | Presentation | ||||
25 | { | ||||
26 | id: presentation | ||||
27 | | ||||
28 | property string colorPaperWhite: "#fcfcfc" | ||||
29 | property string colorCharcoalGrey: "#31363b" | ||||
30 | | ||||
31 | Rectangle { | ||||
32 | SystemPalette { id: systemPalette } | ||||
33 | | ||||
34 | anchors.fill: parent | ||||
35 | color: systemPalette.window | ||||
36 | } | ||||
37 | | ||||
38 | Timer { | ||||
39 | id: timer | ||||
40 | interval: 5000 | ||||
41 | running: false | ||||
42 | repeat: true | ||||
43 | onTriggered: presentation.goToNextSlide() | ||||
44 | } | ||||
45 | | ||||
46 | UbiquitySlide { name: 'kde'; textColor: colorPaperWhite } | ||||
47 | UbiquitySlide { name: 'neon'; textColor: colorPaperWhite } | ||||
48 | UbiquitySlide { name: 'plasma'; textColor: colorCharcoalGrey } | ||||
49 | UbiquitySlide { name: 'secure'; textColor: colorPaperWhite } | ||||
50 | | ||||
51 | Component.onCompleted: timer.running = true | ||||
52 | } |