forked from Shinonome/dots-hyprland
fix(digital clock): properly define clock color
This commit is contained in:
@@ -63,7 +63,9 @@ AbstractBackgroundWidget {
|
|||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
shown: root.clockStyle === "digital" && (root.shouldShow)
|
shown: root.clockStyle === "digital" && (root.shouldShow)
|
||||||
fade: false
|
fade: false
|
||||||
sourceComponent: DigitalClock {}
|
sourceComponent: DigitalClock {
|
||||||
|
colText: root.colText
|
||||||
|
}
|
||||||
}
|
}
|
||||||
StatusRow {
|
StatusRow {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ ColumnLayout {
|
|||||||
spacing: 6
|
spacing: 6
|
||||||
|
|
||||||
property bool isVertical: Config.options.background.widgets.clock.digital.vertical
|
property bool isVertical: Config.options.background.widgets.clock.digital.vertical
|
||||||
|
property color colText: Appearance.colors.colOnSecondaryContainer
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -24,6 +25,7 @@ ColumnLayout {
|
|||||||
ClockText {
|
ClockText {
|
||||||
id: timeTextTop
|
id: timeTextTop
|
||||||
text: clockColumn.isVertical ? DateTime.time.substring(0, 2) : DateTime.time
|
text: clockColumn.isVertical ? DateTime.time.substring(0, 2) : DateTime.time
|
||||||
|
color: clockColumn.colText
|
||||||
anchors {
|
anchors {
|
||||||
top: parent.top
|
top: parent.top
|
||||||
horizontalCenter: parent.horizontalCenter
|
horizontalCenter: parent.horizontalCenter
|
||||||
@@ -42,6 +44,7 @@ ColumnLayout {
|
|||||||
id: timeTextBottom
|
id: timeTextBottom
|
||||||
text: clockColumn.isVertical ? DateTime.time.substring(3, 5) : ""
|
text: clockColumn.isVertical ? DateTime.time.substring(3, 5) : ""
|
||||||
visible: clockColumn.isVertical
|
visible: clockColumn.isVertical
|
||||||
|
color: clockColumn.colText
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
@@ -63,12 +66,14 @@ ColumnLayout {
|
|||||||
visible: Config.options.background.widgets.clock.digital.showDate
|
visible: Config.options.background.widgets.clock.digital.showDate
|
||||||
Layout.topMargin: clockColumn.isVertical ? -10 : 0
|
Layout.topMargin: clockColumn.isVertical ? -10 : 0
|
||||||
text: DateTime.longDate
|
text: DateTime.longDate
|
||||||
|
color: clockColumn.colText
|
||||||
}
|
}
|
||||||
ClockText {
|
ClockText {
|
||||||
visible: Config.options.background.widgets.clock.quote.enable && Config.options.background.widgets.clock.quote.text.length > 0
|
visible: Config.options.background.widgets.clock.quote.enable && Config.options.background.widgets.clock.quote.text.length > 0
|
||||||
font.pixelSize: Appearance.font.pixelSize.normal
|
font.pixelSize: Appearance.font.pixelSize.normal
|
||||||
text: Config.options.background.widgets.clock.quote.text
|
text: Config.options.background.widgets.clock.quote.text
|
||||||
animateChange: false
|
animateChange: false
|
||||||
|
color: clockColumn.colText
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user