Files
DankMaterialShell/quickshell/Modules/ControlCenter/Widgets/ActionTile.qml
T
bbedward 8aac4c767a cc: stop avatar and app icon reloads from stalling the sheet, disable
edit fill in edit mode

fixes #3975
port 2.0

(cherry picked from commit d2792b8a11)
2026-10-28 15:49:47 +00:00

34 lines
823 B
QML

import QtQuick
import qs.Common
import qs.Modules.ControlCenter
CcTile {
id: root
readonly property string action: widgetData?.id ?? ""
readonly property bool finishing: action === "edit" && (host?.editMode ?? false)
toggle: false
tooltips: !finishing
iconName: finishing ? "check" : widgetDef?.icon ?? ""
title: widgetDef?.text ?? ""
restIconColor: action === "power" ? Theme.error : CcMetrics.tileInactiveIcon
onClicked: {
switch (action) {
case "lock":
host?.lockRequested();
return;
case "power":
host?.powerRequested();
return;
case "settings":
host?.settingsRequested();
return;
case "edit":
host?.editRequested();
return;
}
}
}