Warning, /plasma/plasma-bigscreen/containments/homescreen/package/contents/ui/launcher/delegates/SettingDelegate.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2019 Aditya Mehra <aix.m@outlook.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 import QtQuick 2.14
0008 import org.kde.mycroft.bigscreen 1.0 as BigScreen
0009 import org.kde.kirigami 2.12 as Kirigami
0010 import org.kde.plasma.private.nanoshell as NanoShell
0011 
0012 BigScreen.IconDelegate {
0013     id: delegate
0014     icon.name: modelData.kcmIconName
0015     text: modelData.kcmName
0016     useIconColors: plasmoid.configuration.coloredTiles
0017     compactMode: plasmoid.configuration.expandingTiles
0018 
0019     onClicked: {
0020         BigScreen.NavigationSoundEffects.playClickedSound()
0021         NanoShell.StartupFeedback.open(
0022                             delegate.icon.name,
0023                             delegate.text,
0024                             delegate.Kirigami.ScenePosition.x + delegate.width/2,
0025                             delegate.Kirigami.ScenePosition.y + delegate.height/2,
0026                             Math.min(delegate.width, delegate.height), delegate.Kirigami.Theme.backgroundColor);
0027         settingActions.launchSettings(modelData.kcmId)
0028         recentView.forceActiveFocus();
0029         recentView.currentIndex = 0;
0030     }
0031 }