summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 15:58:40 +0800
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-24 15:58:40 +0800
commit006189949ca3f34df4a15f583c94e0349b6f6adb (patch)
tree648a210921818a321fd31b576d3170e8f0939bd2 /modules
parentfeat: bar battery (diff)
downloadcaelestia-shell-006189949ca3f34df4a15f583c94e0349b6f6adb.tar.gz
caelestia-shell-006189949ca3f34df4a15f583c94e0349b6f6adb.tar.bz2
caelestia-shell-006189949ca3f34df4a15f583c94e0349b6f6adb.zip
internal: dont use childrenrect
Diffstat (limited to 'modules')
-rw-r--r--modules/launcher/ActionItem.qml4
-rw-r--r--modules/launcher/AppItem.qml4
2 files changed, 6 insertions, 2 deletions
diff --git a/modules/launcher/ActionItem.qml b/modules/launcher/ActionItem.qml
index f4f90a2..a650768 100644
--- a/modules/launcher/ActionItem.qml
+++ b/modules/launcher/ActionItem.qml
@@ -43,7 +43,7 @@ Item {
anchors.verticalCenter: icon.verticalCenter
implicitWidth: parent.width - icon.width
- implicitHeight: childrenRect.height
+ implicitHeight: name.implicitHeight + desc.implicitHeight
StyledText {
id: name
@@ -53,6 +53,8 @@ Item {
}
StyledText {
+ id: desc
+
text: root.modelData?.desc ?? ""
font.pointSize: Appearance.font.size.small
color: Colours.alpha(Colours.palette.m3outline, true)
diff --git a/modules/launcher/AppItem.qml b/modules/launcher/AppItem.qml
index 0b893bb..b6a0bf5 100644
--- a/modules/launcher/AppItem.qml
+++ b/modules/launcher/AppItem.qml
@@ -46,7 +46,7 @@ Item {
anchors.verticalCenter: icon.verticalCenter
implicitWidth: parent.width - icon.width
- implicitHeight: childrenRect.height
+ implicitHeight: name.implicitHeight + comment.implicitHeight
StyledText {
id: name
@@ -56,6 +56,8 @@ Item {
}
StyledText {
+ id: comment
+
text: (root.modelData?.comment || root.modelData?.genericName || root.modelData?.name) ?? ""
font.pointSize: Appearance.font.size.small
color: Colours.alpha(Colours.palette.m3outline, true)