summaryrefslogtreecommitdiff
path: root/modules/launcher/ActionItem.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-16 00:42:09 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-16 00:42:09 +1000
commita44910d3971b1eb7ce0b755ac98bdd35c6c3574e (patch)
tree953a20970fad86b6bbd545ace51f5c82d3d5a737 /modules/launcher/ActionItem.qml
parentMerge branch 'main' into betteractions (diff)
downloadcaelestia-shell-a44910d3971b1eb7ce0b755ac98bdd35c6c3574e.tar.gz
caelestia-shell-a44910d3971b1eb7ce0b755ac98bdd35c6c3574e.tar.bz2
caelestia-shell-a44910d3971b1eb7ce0b755ac98bdd35c6c3574e.zip
launcher: completely hide disabled actions
Diffstat (limited to 'modules/launcher/ActionItem.qml')
-rw-r--r--modules/launcher/ActionItem.qml12
1 files changed, 3 insertions, 9 deletions
diff --git a/modules/launcher/ActionItem.qml b/modules/launcher/ActionItem.qml
index 720b272..db3242a 100644
--- a/modules/launcher/ActionItem.qml
+++ b/modules/launcher/ActionItem.qml
@@ -31,9 +31,7 @@ Item {
MaterialIcon {
id: icon
- text: root.modelData?.disabled
- ? "disabled_by_default"
- : (root.modelData?.icon ?? "")
+ text: root.modelData?.icon ?? ""
font.pointSize: Appearance.font.size.extraLarge
anchors.verticalCenter: parent.verticalCenter
@@ -50,18 +48,14 @@ Item {
StyledText {
id: name
- text: root.modelData?.disabled
- ? (root.modelData?.name ?? "") + " - Disabled"
- : (root.modelData?.name ?? "")
+ text: root.modelData?.name ?? ""
font.pointSize: Appearance.font.size.normal
}
StyledText {
id: desc
- text: root.modelData?.disabled
- ? (root.modelData?.disabledReason ?? "")
- : (root.modelData?.desc ?? "")
+ text: root.modelData?.desc ?? ""
font.pointSize: Appearance.font.size.small
color: Colours.alpha(Colours.palette.m3outline, true)