aerothemeplasma/plasma/plasmoids/io.gitgud.wackyideas.win7showdesktop/contents/ui/PeekController.qml
wackyideas 8d6fbd7bdb overhaul: prepare repo for Plasma 6.6 release
This commit overhauls the repository structure such that it separates
the project into multiple repositories, one for each subproject. This
repository will be moved to the AeroShell group, and most importantly,
the installation method changes from locally installed modifications, to
CMake-based installation, in preparation for AUR packages, and possibly
packages for other distros.

Migration details are in INSTALL.md, which are highly recommended, if
not required to uninstall any old instance of AeroThemePlasma.
2026-02-21 21:15:07 +01:00

30 lines
781 B
QML

/*
SPDX-FileCopyrightText: 2022 ivan (@ratijas) tkachenko <me@ratijas.tk>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import aeroshell.showdesktop
import org.kde.plasma.plasmoid 2.0
Controller {
id: controller
titleInactive: i18nc("@action:button", "Peek at Desktop")
titleActive: Plasmoid.containment.corona.editMode ? titleInactive : i18nc("@action:button", "Stop Peeking at Desktop")
descriptionActive: i18nc("@info:tooltip", "Moves windows back to their original positions")
descriptionInactive: i18nc("@info:tooltip", "Temporarily shows the desktop by moving windows away")
active: showdesktop.showingDesktop
// override
function toggle() {
showdesktop.toggleDesktop();
}
readonly property ShowDesktop showdesktop: ShowDesktop {
id: showdesktop
}
}