Warning, /plasma/plasma-mobile/components/mobileshellstate/qml/Shell.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org> 0002 // SPDX-License-Identifier: GPL-2.0-or-later 0003 0004 import QtQuick 2.15 0005 import QtQuick.Window 2.15 0006 0007 pragma Singleton 0008 0009 /** 0010 * Provides access to common functions within the shell. Only available within the plasmashell process. 0011 */ 0012 QtObject { 0013 id: delegate 0014 0015 /** 0016 * Whether the task switcher is open. 0017 */ 0018 readonly property bool taskSwitcherVisible: HomeScreenControls.taskSwitcherVisible 0019 0020 /** 0021 * Whether the homescreen is currently visible. 0022 */ 0023 readonly property bool homeScreenVisible: HomeScreenControls.homeScreenVisible 0024 0025 /** 0026 * Whether the action drawer is currently open. 0027 */ 0028 readonly property bool actionDrawerVisible: TopPanelControls.actionDrawerVisible 0029 0030 /** 0031 * Open the app launch screen with animation parameters. 0032 */ 0033 function openAppLaunchAnimation(splashIcon: string, title: string, x: real, y: real, sourceIconSize: real) { 0034 HomeScreenControls.openAppLaunchAnimation(splashIcon, title, x, y, sourceIconSize); 0035 } 0036 0037 /** 0038 * Close the app launch screen. 0039 */ 0040 function closeAppLaunchAnimation() { 0041 HomeScreenControls.closeAppLaunchAnimation(); 0042 } 0043 0044 /** 0045 * Open the action drawer. 0046 */ 0047 function openActionDrawer() { 0048 TopPanelControls.openActionDrawer(); 0049 } 0050 0051 /** 0052 * Close the action drawer, if it is open. 0053 */ 0054 function closeActionDrawer() { 0055 TopPanelControls.closeActionDrawer(); 0056 } 0057 }