mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2026-06-19 03:45:50 +00:00
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.
30 lines
781 B
QML
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
|
|
}
|
|
}
|