Skip to content
Snippets Groups Projects
Select Git revision
  • f9f4c6f36e941c1af65a13bdfa3c58b27a41cb7b
  • development default protected
  • 3.2.x-stable
  • prepare
  • 6b369dc5
  • 3.1.x-stable
  • 3.0.x-stable
  • 2.4.x-stable
  • v3.2.61
  • v3.2.60
  • v3.2.59
  • v3.2.54
  • v3.2.53
  • v3.2.52
  • v3.2.51
  • v3.2.48
  • v3.2.45
  • v3.2.44.3
  • v3.2.44
  • v3.2.40
  • v3.2.13
  • v3.2.9
  • v3.2.8
  • v3.2.7
  • v3.2.6
  • v3.2.5
  • v3.2.4
  • v3.2.3
28 results

Offline.qml

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Offline.qml 7.64 KiB
    /* === This file is part of Calamares - <https://calamares.io> ===
     *
     *   SPDX-FileCopyrightText: 2020-2022 Anke Boersma <demm@kaosx.us>
     *   SPDX-License-Identifier: GPL-3.0-or-later
     *
     *   Calamares is Free Software: see the License-Identifier above.
     *
     */
    
    import io.calamares.core 1.0
    import io.calamares.ui 1.0
    
    import QtQuick 2.10
    import QtQuick.Controls 2.10
    import QtQuick.Window 2.14
    import QtQuick.Layouts 1.3
    
    import org.kde.kirigami 2.7 as Kirigami
    
    Page {
        width: 800 //parent.width
        height: 500
    
        id: control
        property string currentRegion
        property string currentZone
    
        readonly property color backgroundColor: Kirigami.Theme.backgroundColor //"#F5F5F5"
        readonly property color backgroundLighterColor: "#ffffff"
        readonly property color highlightColor: Kirigami.Theme.highlightColor //"#3498DB"
        readonly property color textColor: Kirigami.Theme.textColor
        readonly property color highlightedTextColor: Kirigami.Theme.highlightedTextColor
    
         StackView {
            id: stack
            anchors.fill: parent
            clip: true
    
            initialItem: Item {
    
                Label {
    
                    id: region
                    anchors.horizontalCenter: parent.horizontalCenter
                    color: textColor
                    horizontalAlignment: Text.AlignCenter
                    text: qsTr("Select your preferred Region, or use the default settings.")
                }
    
                ListView {
    
                    id: list
                    ScrollBar.vertical: ScrollBar {
                        active: true
                    }
    
                    width: parent.width / 2
                    height: parent.height / 1.5
                    anchors.centerIn: parent
                    anchors.verticalCenterOffset: -30
                    focus: true
                    clip: true
                    boundsBehavior: Flickable.StopAtBounds
                    spacing: 2
    
                    Rectangle {
    
                        z: parent.z - 1
                        anchors.fill: parent
                        color: backgroundLighterColor