This commit is contained in:
ari committed 2026-10-27 13:12:37 -04:00
1 parent b127fc2256
commit 0f42427f94
8 files changed
+600 -323

No files matched your search

+15 -25
View File
@@ -10,7 +10,6 @@ Item {
required property int workspaceIndex
required property bool selected
required property bool current
required property bool animateMoves
required property var windows
signal activated
@@ -22,26 +21,6 @@ Item {
width: root.theme.cardWidth
height: root.theme.cardHeight
Behavior on anchors.verticalCenterOffset {
enabled: root.animateMoves
NumberAnimation {
duration: root.theme.carouselDuration
easing.type: Easing.OutCubic
}
}
Behavior on opacity {
enabled: root.animateMoves
NumberAnimation {
duration: root.theme.carouselDuration
}
}
Behavior on scale {
enabled: root.animateMoves
NumberAnimation {
duration: root.theme.carouselDuration
}
}
Glass {
anchors.fill: parent
theme: root.theme
@@ -77,11 +56,22 @@ Item {
text: String(root.workspaceIndex)
}
Text {
// A small yellow badge.
Rectangle {
visible: root.current
color: root.theme.fieldBorder
font.pixelSize: root.theme.monitorLabelSize
text: "current"
implicitWidth: currentText.implicitWidth + root.theme.pillPadding * 2
implicitHeight: currentText.implicitHeight + root.theme.pillPadding / 2
radius: height / 2
color: root.theme.accentColor
Text {
id: currentText
anchors.centerIn: parent
color: root.theme.accentText
font.pixelSize: root.theme.pillFontSize
font.bold: true
text: "current"
}
}
}