quickshell: remove calendar inner wrappers
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c928cd3ca4
commit
6af8e5e129
1 changed files with 34 additions and 63 deletions
|
|
@ -1864,62 +1864,35 @@ in
|
||||||
NumberAnimation { duration: 150; easing.type: Easing.OutCubic }
|
NumberAnimation { duration: 150; easing.type: Easing.OutCubic }
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
Text {
|
||||||
width: 7 * 32 + 8
|
id: calTitle
|
||||||
height: calTitle.height + 12
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
radius: 8
|
text: clockText.now.toLocaleDateString(Qt.locale(), "dddd, d MMMM yyyy")
|
||||||
color: Theme.base02
|
color: Theme.base05
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
font.family: "FiraMono Nerd Font"
|
||||||
|
font.pixelSize: 16
|
||||||
|
font.weight: Font.Medium
|
||||||
|
}
|
||||||
|
|
||||||
Text {
|
Row {
|
||||||
id: calTitle
|
id: weekdayRow
|
||||||
anchors.centerIn: parent
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
text: clockText.now.toLocaleDateString(Qt.locale(), "dddd, d MMMM yyyy")
|
spacing: 0
|
||||||
color: Theme.base05
|
Repeater {
|
||||||
font.family: "FiraMono Nerd Font"
|
model: ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"]
|
||||||
font.pixelSize: 16
|
Text {
|
||||||
font.weight: Font.Medium
|
required property var modelData
|
||||||
}
|
width: 32
|
||||||
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
text: modelData
|
||||||
|
color: Theme.base04
|
||||||
|
font.family: "FiraMono Nerd Font"
|
||||||
|
font.pixelSize: 13
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Rectangle {
|
Grid {
|
||||||
width: 7 * 32 + 8
|
|
||||||
height: calInner.height + 12
|
|
||||||
radius: 8
|
|
||||||
color: Theme.base02
|
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
|
||||||
|
|
||||||
Column {
|
|
||||||
id: calInner
|
|
||||||
anchors.centerIn: parent
|
|
||||||
spacing: 4
|
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
width: 7 * 32
|
|
||||||
height: weekdayRow.height + 8
|
|
||||||
radius: 6
|
|
||||||
color: Theme.base03
|
|
||||||
|
|
||||||
Row {
|
|
||||||
id: weekdayRow
|
|
||||||
anchors.centerIn: parent
|
|
||||||
spacing: 0
|
|
||||||
Repeater {
|
|
||||||
model: ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"]
|
|
||||||
Text {
|
|
||||||
required property var modelData
|
|
||||||
width: 32
|
|
||||||
horizontalAlignment: Text.AlignHCenter
|
|
||||||
text: modelData
|
|
||||||
color: Theme.base00
|
|
||||||
font.family: "FiraMono Nerd Font"
|
|
||||||
font.pixelSize: 13
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Grid {
|
|
||||||
columns: 7
|
columns: 7
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
|
|
@ -1963,17 +1936,15 @@ in
|
||||||
font.pixelSize: 13
|
font.pixelSize: 13
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
width: 7 * 32 + 8
|
width: 7 * 32 + 8
|
||||||
height: 1
|
height: 1
|
||||||
color: Theme.base02
|
color: Theme.base02
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
width: 7 * 32 + 8
|
width: 7 * 32 + 8
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue