1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 00:12:50 -05:00

clock: fix overview clock when seconds is on

This commit is contained in:
bbedward
2025-11-14 10:29:41 -05:00
parent cb4e0660e0
commit 97a0696930

View File

@@ -9,7 +9,7 @@ Card {
Column { Column {
anchors.centerIn: parent anchors.centerIn: parent
spacing: Theme.spacingS spacing: 0
Column { Column {
spacing: -8 spacing: -8
@@ -76,31 +76,26 @@ Card {
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
} }
} }
}
Row { Row {
visible: SettingsData.showSeconds visible: SettingsData.showSeconds
spacing: 0 spacing: 0
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
StyledText { StyledText {
text: String(systemClock?.date?.getSeconds()).padStart(2, '0').charAt(0) text: String(systemClock?.date?.getSeconds()).padStart(2, '0')
font.pixelSize: 48 font.pixelSize: 24
color: Theme.primary color: Qt.rgba(Theme.primary.r, Theme.primary.g, Theme.primary.b, 0.7)
font.weight: Font.Medium font.weight: Font.Medium
width: 28 horizontalAlignment: Text.AlignHCenter
horizontalAlignment: Text.AlignHCenter
}
StyledText {
text: String(systemClock?.date?.getSeconds()).padStart(2, '0').charAt(1)
font.pixelSize: 48
color: Theme.primary
font.weight: Font.Medium
width: 28
horizontalAlignment: Text.AlignHCenter
}
} }
}
Item {
width: 1
height: Theme.spacingXS
anchors.horizontalCenter: parent.horizontalCenter
} }
StyledText { StyledText {