mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
fix(digital clock): properly define clock color
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user