quickshell: restyle calendar with background blobs and larger fonts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3b8bb68647
commit
269c9bbe15
1 changed files with 84 additions and 61 deletions
|
|
@ -1872,14 +1872,35 @@ in
|
||||||
NumberAnimation { duration: 150; easing.type: Easing.OutCubic }
|
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
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: calTitle
|
||||||
|
anchors.centerIn: parent
|
||||||
text: clockText.now.toLocaleDateString(Qt.locale(), "dddd, d MMMM yyyy")
|
text: clockText.now.toLocaleDateString(Qt.locale(), "dddd, d MMMM yyyy")
|
||||||
color: Theme.base05
|
color: Theme.base05
|
||||||
font.family: "FiraMono Nerd Font"
|
font.family: "FiraMono Nerd Font"
|
||||||
font.pixelSize: 14
|
font.pixelSize: 16
|
||||||
font.weight: Font.Medium
|
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 {
|
Row {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
@ -1887,12 +1908,12 @@ in
|
||||||
model: ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"]
|
model: ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"]
|
||||||
Text {
|
Text {
|
||||||
required property var modelData
|
required property var modelData
|
||||||
width: 28
|
width: 32
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
text: modelData
|
text: modelData
|
||||||
color: Theme.base03
|
color: Theme.base03
|
||||||
font.family: "FiraMono Nerd Font"
|
font.family: "FiraMono Nerd Font"
|
||||||
font.pixelSize: 11
|
font.pixelSize: 13
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1907,8 +1928,8 @@ in
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
required property int index
|
required property int index
|
||||||
width: 28
|
width: 32
|
||||||
height: 24
|
height: 26
|
||||||
radius: 4
|
radius: 4
|
||||||
color: {
|
color: {
|
||||||
let d = clockText.now;
|
let d = clockText.now;
|
||||||
|
|
@ -1938,20 +1959,22 @@ in
|
||||||
return (dayNum === d.getDate()) ? Theme.base05 : Theme.base04;
|
return (dayNum === d.getDate()) ? Theme.base05 : Theme.base04;
|
||||||
}
|
}
|
||||||
font.family: "FiraMono Nerd Font"
|
font.family: "FiraMono Nerd Font"
|
||||||
font.pixelSize: 11
|
font.pixelSize: 13
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 7 * 28
|
width: 7 * 32 + 16
|
||||||
height: 1
|
height: 1
|
||||||
color: Theme.base02
|
color: Theme.base02
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
width: 7 * 28
|
width: 7 * 32 + 16
|
||||||
Text {
|
Text {
|
||||||
text: "Notifications"
|
text: "Notifications"
|
||||||
color: Theme.base05
|
color: Theme.base05
|
||||||
|
|
@ -1981,7 +2004,7 @@ in
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
spacing: 4
|
spacing: 4
|
||||||
width: 7 * 28
|
width: 7 * 32 + 16
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
visible: bar.notifServer.trackedNotifications.values.length === 0
|
visible: bar.notifServer.trackedNotifications.values.length === 0
|
||||||
|
|
@ -1998,7 +2021,7 @@ in
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: notifItem
|
id: notifItem
|
||||||
required property var modelData
|
required property var modelData
|
||||||
width: 7 * 28
|
width: 7 * 32 + 16
|
||||||
height: notifCol.height + 12
|
height: notifCol.height + 12
|
||||||
radius: 6
|
radius: 6
|
||||||
color: Theme.base01
|
color: Theme.base01
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue