Warning, /plasma/plasma-bigscreen/containments/homescreen/package/contents/ui/ConfigWindow.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org> 0003 SPDX-FileCopyrightText: 2019 Aditya Mehra <aix.m@outlook.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 import QtQuick 2.14 0009 import QtQuick.Window 2.14 0010 import QtQuick.Layouts 1.14 0011 import QtQuick.Controls 2.14 as Controls 0012 import org.kde.kirigami 2.12 as Kirigami 0013 0014 Window { 0015 id: window 0016 color: Qt.rgba(0, 0, 0, 0.8) 0017 0018 width: screen.availableGeometry.width 0019 height: screen.availableGeometry.height 0020 0021 Kirigami.Theme.colorSet: Kirigami.Theme.Complementary 0022 Item { 0023 id: contentItem 0024 anchors { 0025 fill: parent 0026 margins: Kirigami.Units.largeSpacing 0027 } 0028 ColumnLayout { 0029 Controls.CheckBox { 0030 id: backgroundCheckbox 0031 text: i18n("Use Colored Tiles") 0032 checked: plasmoid.configuration.coloredTiles 0033 onCheckedChanged: plasmoid.configuration.coloredTiles = checked 0034 focus: true 0035 Keys.onEnterPressed: checked = !checked 0036 Keys.onReturnPressed: checked = !checked 0037 KeyNavigation.down: expandingCheckbox 0038 } 0039 Controls.CheckBox { 0040 id: expandingCheckbox 0041 text: i18n("Use Expanding Tiles") 0042 checked: plasmoid.configuration.expandingTiles 0043 onCheckedChanged: plasmoid.configuration.expandingTiles = checked 0044 Keys.onEnterPressed: checked = !checked 0045 Keys.onReturnPressed: checked = !checked 0046 KeyNavigation.down: closeButton 0047 } 0048 } 0049 } 0050 Controls.Button { 0051 id: closeButton 0052 anchors { 0053 bottom: parent.bottom 0054 right: parent.right 0055 } 0056 icon.name: "window-close" 0057 text: i18n("close") 0058 onClicked: window.close() 0059 Keys.onEnterPressed: clicked() 0060 Keys.onReturnPressed: clicked() 0061 KeyNavigation.up: backgroundCheckbox 0062 } 0063 }