Warning, /plasma/plasma-mobile/tests/ActionDrawerTest.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org> 0003 * SPDX-FileCopyrightText: 2022 Devin LIn <devin@kde.org> 0004 * 0005 * SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 0008 import QtQuick 2.15 0009 import QtQuick.Controls 2.15 0010 0011 import org.kde.kirigami 2.20 as Kirigami 0012 import org.kde.plasma.components 3.0 as PC3 0013 import org.kde.plasma.private.mobileshell as MobileShell 0014 0015 import org.kde.notificationmanager as NotificationManager 0016 0017 // This is a test app to conveniently test the Quick Settings that are available 0018 // on the system without having to load a full Plasma Mobile shell. 0019 // 0020 // Do not expect changes in this file to change the plasma UX. Do not install. 0021 // 0022 // This can be executed by running `qmlscene QuickSettingsTest.qml` 0023 0024 ApplicationWindow { 0025 width: 360 0026 height: 720 0027 visible: true 0028 0029 Image { 0030 source: "assets/background.jpg" 0031 anchors.fill: parent 0032 fillMode: Image.PreserveAspectCrop 0033 } 0034 0035 MobileShell.StatusBar { 0036 id: statusBar 0037 z: 1 0038 0039 anchors.top: parent.top 0040 anchors.left: parent.left 0041 anchors.right: parent.right 0042 0043 height: Kirigami.Units.gridUnit * 1.25 0044 0045 Kirigami.Theme.inherit: false 0046 Kirigami.Theme.colorSet: Kirigami.Theme.Complementary 0047 0048 backgroundColor: "transparent" 0049 0050 showSecondRow: false 0051 showDropShadow: true 0052 showTime: true 0053 disableSystemTray: true // prevent SIGABRT, since loading the system tray leads to bad... things 0054 } 0055 0056 MobileShell.ActionDrawerOpenSurface { 0057 anchors.fill: statusBar 0058 actionDrawer: drawer 0059 z: 1 0060 } 0061 0062 MobileShell.ActionDrawer { 0063 id: drawer 0064 z: 1 0065 anchors.fill: parent 0066 0067 notificationSettings: NotificationManager.Settings {} 0068 notificationModelType: MobileShell.NotificationsModelType.WatchedNotificationsModel 0069 notificationModel: NotificationManager.WatchedNotificationsModel {} 0070 } 0071 0072 PC3.Label { 0073 anchors.bottom: parent.bottom 0074 anchors.bottomMargin: Kirigami.Units.gridUnit 0075 anchors.horizontalCenter: parent.horizontalCenter 0076 text: "Pull down the action drawer from the top." 0077 color: "white" 0078 } 0079 }