working carousel

This commit is contained in:
ari committed 2026-09-11 14:43:36 -04:00
1 parent 7d58533539
commit eb0dc429da
7 files changed
+109 -66

No files matched your search

+24 -22
View File
@@ -6,10 +6,10 @@ Rectangle {
id: root
required property var theme
required property App app
required property var app
required property bool selected
signal activated()
signal activated
width: theme.cardWidth
height: theme.cardHeight
@@ -20,26 +20,28 @@ Rectangle {
clip: true
ColumnLayout {
spacing: 10
width: root.theme.cardWidth
height: root.theme.cardHeight
anchors.fill: parent
anchors.margins: root.theme.cardPadding
Image {
fillMode: Image.PreserveAspectFit
Layout.alignment: Qt.AlignCenter
Layout.fillWidth: true
Layout.fillHeight: true
source: root.app.isIcon ? Quickshell.iconPath(root.app.image) : root.app.image
}
Text {
id: label
elide: Text.ElideRight
color: root.theme.textColor
text: root.app.name
font.pixelSize: root.theme.fontSize
Layout.alignment: Qt.AlignHCenter
}
spacing: 10
width: root.theme.cardWidth
height: root.theme.cardHeight
anchors.fill: parent
anchors.margins: root.theme.cardPadding
Image {
fillMode: Image.PreserveAspectFit
Layout.alignment: Qt.AlignCenter
Layout.fillWidth: true
Layout.fillHeight: true
source: root.app.isIcon ? Quickshell.iconPath(root.app.image) : root.app.image
sourceSize.width: root.app.isIcon ? root.app.dims[0] : undefined
sourceSize.height: root.app.isIcon ? root.app.dims[1] : undefined
}
Text {
id: label
elide: Text.ElideRight
color: root.theme.textColor
text: root.app.name
font.pixelSize: root.theme.fontSize
Layout.alignment: Qt.AlignHCenter
}
}
MouseArea {