summaryrefslogtreecommitdiff
path: root/modules/launcher/ActionItem.qml
diff options
context:
space:
mode:
authorTim Hämisch <tim@thaemisch.net>2025-06-13 18:04:45 +0200
committerTim Hämisch <tim@thaemisch.net>2025-06-13 18:04:45 +0200
commit0bcee304e5170214cb85aa2236c81299d01ab792 (patch)
tree119cc073d119440e0164ec3cd01c6793c39f35dd /modules/launcher/ActionItem.qml
parentMerge branch 'caelestia-dots:main' into betteractions (diff)
downloadcaelestia-shell-0bcee304e5170214cb85aa2236c81299d01ab792.tar.gz
caelestia-shell-0bcee304e5170214cb85aa2236c81299d01ab792.tar.bz2
caelestia-shell-0bcee304e5170214cb85aa2236c81299d01ab792.zip
launcher: add opt-in for dangerous actions
Diffstat (limited to 'modules/launcher/ActionItem.qml')
-rw-r--r--modules/launcher/ActionItem.qml12
1 files changed, 9 insertions, 3 deletions
diff --git a/modules/launcher/ActionItem.qml b/modules/launcher/ActionItem.qml
index a650768..20638e3 100644
--- a/modules/launcher/ActionItem.qml
+++ b/modules/launcher/ActionItem.qml
@@ -31,7 +31,9 @@ Item {
MaterialIcon {
id: icon
- text: root.modelData?.icon ?? ""
+ text: root.modelData?.disabled
+ ? "disabled_by_default"
+ : (root.modelData?.icon ?? "")
font.pointSize: Appearance.font.size.extraLarge
anchors.verticalCenter: parent.verticalCenter
@@ -48,14 +50,18 @@ Item {
StyledText {
id: name
- text: root.modelData?.name ?? ""
+ text: root.modelData?.disabled
+ ? (root.modelData?.name ?? "") + " - Disabled"
+ : (root.modelData?.name ?? "")
font.pointSize: Appearance.font.size.normal
}
StyledText {
id: desc
- text: root.modelData?.desc ?? ""
+ text: root.modelData?.disabled
+ ? (root.modelData?.disabledReason ?? "")
+ : (root.modelData?.desc ?? "")
font.pointSize: Appearance.font.size.small
color: Colours.alpha(Colours.palette.m3outline, true)