mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-28 06:33:09 +00:00
40 lines
1.1 KiB
QML
40 lines
1.1 KiB
QML
// SPDX-FileCopyrightText: 2020 Marco Martin <mart@kde.org>
|
|
// SPDX-FileCopyrightText: 2021 Devin Lin <devin@kde.org>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
import QtQuick 2.12
|
|
import QtQuick.Window 2.2
|
|
|
|
import org.kde.plasma.private.mobileshell as MobileShell
|
|
import org.kde.plasma.private.mobileshell.windowplugin as WindowPlugin
|
|
|
|
pragma Singleton
|
|
|
|
/**
|
|
* Provides access to the homescreen plasmoid containment within the shell.
|
|
*/
|
|
QtObject {
|
|
id: root
|
|
|
|
signal openHomeScreen()
|
|
signal resetHomeScreenPosition()
|
|
signal requestRelativeScroll(point pos)
|
|
|
|
signal openAppLaunchAnimation(string splashIcon, string title, real x, real y, real sourceIconSize)
|
|
signal closeAppLaunchAnimation()
|
|
|
|
property var taskSwitcher
|
|
property QtObject homeScreenWindow
|
|
property bool taskSwitcherVisible: false
|
|
|
|
// this state is updated from WindowUtil
|
|
property bool homeScreenVisible: true
|
|
|
|
property var windowListener: Connections {
|
|
target: WindowPlugin.WindowUtil
|
|
|
|
function onAllWindowsMinimizedChanged() {
|
|
root.homeScreenVisible = WindowPlugin.WindowUtil.allWindowsMinimized
|
|
}
|
|
}
|
|
}
|