quickshell: restyle calendar with background blobs and larger fonts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rope 2026-05-27 11:19:12 +01:00
parent 3b8bb68647
commit 269c9bbe15

View file

@ -1872,14 +1872,35 @@ in
NumberAnimation { duration: 150; easing.type: Easing.OutCubic }
}
Text {
Rectangle {
width: 7 * 32 + 16
height: calTitle.height + 16
radius: 8
color: Theme.base01
anchors.horizontalCenter: parent.horizontalCenter
Text {
id: calTitle
anchors.centerIn: parent
text: clockText.now.toLocaleDateString(Qt.locale(), "dddd, d MMMM yyyy")
color: Theme.base05
font.family: "FiraMono Nerd Font"
font.pixelSize: 14
font.pixelSize: 16
font.weight: Font.Medium
}
}
Rectangle {
width: 7 * 32 + 16
height: calInner.height + 16
radius: 8
color: Theme.base01
anchors.horizontalCenter: parent.horizontalCenter
Column {
id: calInner
anchors.centerIn: parent
spacing: 4
Row {
spacing: 0
@ -1887,12 +1908,12 @@ in
model: ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"]
Text {
required property var modelData
width: 28
width: 32
horizontalAlignment: Text.AlignHCenter
text: modelData
color: Theme.base03
font.family: "FiraMono Nerd Font"
font.pixelSize: 11
font.pixelSize: 13
}
}
}
@ -1907,8 +1928,8 @@ in
Rectangle {
required property int index
width: 28
height: 24
width: 32
height: 26
radius: 4
color: {
let d = clockText.now;
@ -1938,20 +1959,22 @@ in
return (dayNum === d.getDate()) ? Theme.base05 : Theme.base04;
}
font.family: "FiraMono Nerd Font"
font.pixelSize: 11
font.pixelSize: 13
}
}
}
}
}
}
Rectangle {
width: 7 * 28
width: 7 * 32 + 16
height: 1
color: Theme.base02
}
Row {
width: 7 * 28
width: 7 * 32 + 16
Text {
text: "Notifications"
color: Theme.base05
@ -1981,7 +2004,7 @@ in
Column {
spacing: 4
width: 7 * 28
width: 7 * 32 + 16
Text {
visible: bar.notifServer.trackedNotifications.values.length === 0
@ -1998,7 +2021,7 @@ in
Rectangle {
id: notifItem
required property var modelData
width: 7 * 28
width: 7 * 32 + 16
height: notifCol.height + 12
radius: 6
color: Theme.base01