From 7b335cd69759afdec5b491a6d9e87b55dca3ed3c Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Mon, 3 May 2021 11:27:15 -0600 Subject: [PATCH] [applets/digital-clock] Use -1 instead of undefined to unset font.pointSize It's a bit more reliable in this case --- .../package/contents/ui/DigitalClock.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/applets/digital-clock/package/contents/ui/DigitalClock.qml b/applets/digital-clock/package/contents/ui/DigitalClock.qml index 7217d49bf..7c16323ea 100644 --- a/applets/digital-clock/package/contents/ui/DigitalClock.qml +++ b/applets/digital-clock/package/contents/ui/DigitalClock.qml @@ -491,8 +491,8 @@ Item { weight: plasmoid.configuration.boldText ? Font.Bold : PlasmaCore.Theme.defaultFont.weight italic: plasmoid.configuration.italicText pixelSize: 1024 - pointSize: undefined // Because we're setting the pixel size instead - // TODO: remove once this label is ported to PC3 + pointSize: -1 // Because we're setting the pixel size instead + // TODO: remove once this label is ported to PC3 } minimumPixelSize: 1 @@ -518,8 +518,8 @@ Item { font.weight: timeLabel.font.weight font.italic: timeLabel.font.italic font.pixelSize: 1024 - font.pointSize: undefined // Because we're setting the pixel size instead - // TODO: remove once this label is ported to PC3 + font.pointSize: -1 // Because we're setting the pixel size instead + // TODO: remove once this label is ported to PC3 minimumPixelSize: 1 visible: text.length > 0 @@ -537,8 +537,8 @@ Item { font.weight: timeLabel.font.weight font.italic: timeLabel.font.italic font.pixelSize: 1024 - font.pointSize: undefined // Because we're setting the pixel size instead - // TODO: remove once this label is ported to PC3 + font.pointSize: -1 // Because we're setting the pixel size instead + // TODO: remove once this label is ported to PC3 minimumPixelSize: 1 horizontalAlignment: Text.AlignHCenter