diff --git a/applets/digital-clock/package/contents/ui/DigitalClock.qml b/applets/digital-clock/package/contents/ui/DigitalClock.qml --- a/applets/digital-clock/package/contents/ui/DigitalClock.qml +++ b/applets/digital-clock/package/contents/ui/DigitalClock.qml @@ -290,10 +290,10 @@ PropertyChanges { target: timezoneLabel - height: Math.max(0.7 * timeLabel.height, minimumPixelSize) + height: timezoneLabel.paintedHeight width: main.width - fontSizeMode: Text.Fit + font.pixelSize: timeLabel.height * 0.4 minimumPixelSize: dateLabel.minimumPixelSize elide: Text.ElideRight } @@ -304,9 +304,8 @@ height: dateLabel.paintedHeight width: main.width - fontSizeMode: Text.Fit - minimumPixelSize: Math.min(0.7 * theme.smallestFont.pixelSize, timeLabel.height) - elide: Text.ElideRight + font.pixelSize: timeLabel.height * 0.4 + minimumPixelSize: Math.min(theme.smallestFont.pixelSize, 0.7 * timeLabel.height) wrapMode: Text.WordWrap }