Warning, /plasma-bigscreen/calamares-bigscreen-branding/bigscreen/calamares-navigation.qml is written in an unsupported language. File is not indexed.

0001 /* Sample of QML navigation.
0002    SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
0003    SPDX-License-Identifier: GPL-3.0-or-later
0004    The navigation panel is generally "horizontal" in layout, with
0005    buttons for next and previous; this particular one copies
0006    the layout and size of the widgets panel.
0007 */
0008 import io.calamares.ui 1.0
0009 import io.calamares.core 1.0
0010 
0011 import QtQuick 2.10
0012 import QtQuick.Controls 2.10
0013 import QtQuick.Layouts 1.3
0014 import org.kde.kirigami 2.7 as Kirigami
0015 
0016 import Libfakeqevents 1.0 as LQ
0017 
0018 Rectangle {
0019     id: fakeProgress;
0020     color: Branding.styleString( Branding.SidebarBackground );
0021     height: 2;
0022 
0023     Repeater {
0024         id: viewProgressRepeater
0025         model: ViewManager
0026 
0027         Rectangle {
0028             width: 2;
0029             height: 2;
0030             visible: false
0031             color: Branding.styleString( index == ViewManager.currentStepIndex ? Branding.SidebarBackgroundSelected : Branding.SidebarBackground );
0032 
0033             Text {
0034                 anchors.verticalCenter: parent.verticalCenter;
0035                 anchors.horizontalCenter: parent.horizontalCenter;
0036                 property bool selected: index == ViewManager.currentStepIndex ? 1 : 0
0037 
0038                 onSelectedChanged: {
0039                     if(index == ViewManager.currentStepIndex) {
0040                         LQ.FakeEvent.messageCaller(display)
0041                     }
0042                 }
0043 
0044                 color: Branding.styleString( index == ViewManager.currentStepIndex ? Branding.SidebarTextSelected : Branding.SidebarText );
0045                 text: display;
0046             }
0047         }
0048     }
0049 }