fix(digital clock): properly define clock color

This commit is contained in:
vaguesyntax
2025-12-14 13:51:38 +03:00
parent 0e3b3eceb6
commit 2ef8342187
2 changed files with 8 additions and 1 deletions
@@ -63,7 +63,9 @@ AbstractBackgroundWidget {
anchors.horizontalCenter: parent.horizontalCenter
shown: root.clockStyle === "digital" && (root.shouldShow)
fade: false
sourceComponent: DigitalClock {}
sourceComponent: DigitalClock {
colText: root.colText
}
}
StatusRow {
anchors.horizontalCenter: parent.horizontalCenter
@@ -15,6 +15,7 @@ ColumnLayout {
spacing: 6
property bool isVertical: Config.options.background.widgets.clock.digital.vertical
property color colText: Appearance.colors.colOnSecondaryContainer
Item {
Layout.fillWidth: true
@@ -24,6 +25,7 @@ ColumnLayout {
ClockText {
id: timeTextTop
text: clockColumn.isVertical ? DateTime.time.substring(0, 2) : DateTime.time
color: clockColumn.colText
anchors {
top: parent.top
horizontalCenter: parent.horizontalCenter
@@ -42,6 +44,7 @@ ColumnLayout {
id: timeTextBottom
text: clockColumn.isVertical ? DateTime.time.substring(3, 5) : ""
visible: clockColumn.isVertical
color: clockColumn.colText
anchors {
bottom: parent.bottom
@@ -63,12 +66,14 @@ ColumnLayout {
visible: Config.options.background.widgets.clock.digital.showDate
Layout.topMargin: clockColumn.isVertical ? -10 : 0
text: DateTime.longDate
color: clockColumn.colText
}
ClockText {
visible: Config.options.background.widgets.clock.quote.enable && Config.options.background.widgets.clock.quote.text.length > 0
font.pixelSize: Appearance.font.pixelSize.normal
text: Config.options.background.widgets.clock.quote.text
animateChange: false
color: clockColumn.colText
}
}