digital clock: use clocktext instead of styledtext

This commit is contained in:
vaguesyntax
2025-11-28 23:21:58 +03:00
parent 533b9c01f5
commit fd209851d9
2 changed files with 4 additions and 12 deletions
@@ -16,7 +16,7 @@ Text {
hintingPreference: Font.PreferDefaultHinting hintingPreference: Font.PreferDefaultHinting
family: defaultFont family: defaultFont
pixelSize: Appearance?.font.pixelSize.small ?? 15 pixelSize: Appearance?.font.pixelSize.small ?? 15
//variableAxes: shouldUseNumberFont ? ({}) : Appearance.font.variableAxes.main //variableAxes: shouldUseNumberFont ? ({}) : Appearance.font.variableAxes.main // Disabled for now because it causes some fonts to not display their weight properly
} }
color: Appearance?.m3colors.m3onBackground ?? "black" color: Appearance?.m3colors.m3onBackground ?? "black"
linkColor: Appearance?.m3colors.m3primary linkColor: Appearance?.m3colors.m3primary
@@ -54,19 +54,11 @@ ColumnLayout {
Layout.topMargin: clockColumn.isVertical ? -10 : 0 Layout.topMargin: clockColumn.isVertical ? -10 : 0
text: DateTime.longDate text: DateTime.longDate
} }
StyledText { ClockText {
// Somehow gets fucked up if made a 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
Layout.fillWidth: true font.pixelSize: Appearance.font.pixelSize.normal
horizontalAlignment: root.textHorizontalAlignment
font {
pixelSize: Appearance.font.pixelSize.normal
weight: 350
}
color: root.colText
style: Text.Raised
styleColor: Appearance.colors.colShadow
text: Config.options.background.widgets.clock.quote.text text: Config.options.background.widgets.clock.quote.text
animateChange: false
} }
} }