mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-06-15 10:47:42 +00:00
Add a gamingModeEnabled bool and a gamingDismissHintEnabled bool to the shell settings plugin, persisted in plasmamobilerc [General], following the same pattern as convergenceModeEnabled. Two new quick settings tiles: - org.kde.plasma.quicksetting.gaming: toggles gaming mode on/off, shows explicit on/off label matching the convergence tile style. - org.kde.plasma.quicksetting.gaminghint: shown while gaming mode is active; dismisses the Game Center hint. Both tiles are added to the default group in quicksettings config.
18 lines
557 B
QML
18 lines
557 B
QML
// SPDX-FileCopyrightText: 2026 Marco Allegretti
|
|
// SPDX-License-Identifier: EUPL-1.2
|
|
|
|
import QtQuick 2.15
|
|
|
|
import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings
|
|
import org.kde.plasma.private.mobileshell.quicksettingsplugin as QS
|
|
|
|
QS.QuickSetting {
|
|
text: i18n("Game Center Hint")
|
|
icon: "dialog-information"
|
|
status: ""
|
|
enabled: ShellSettings.Settings.gamingDismissHintEnabled
|
|
|
|
function toggle() {
|
|
ShellSettings.Settings.gamingDismissHintEnabled = !ShellSettings.Settings.gamingDismissHintEnabled;
|
|
}
|
|
}
|