forked from Shinonome/dots-hyprland
digital clock: use clocktext instead of styledtext
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user