Commit fed83f88 authored by Niccolò Venerandi's avatar Niccolò Venerandi Committed by Niccolò Venerandi

Fixed margin of digital clock

Summary: The clock was too close to the panel right edge when displaying hours beginning with 10, 11 and 12. Weirdly enough, the right margin was different based on the clock current time. This patch makes the margin constantly equal to the one that there was before when displaying 10,11,12 plus units.smallSpacing.

Reviewers: #vdg, #plasma, davidedmundson, ngraham

Reviewed By: #vdg, #plasma, davidedmundson, ngraham

Subscribers: gvgeo, davidedmundson, ngraham, plasma-devel

Tags: #plasma

Differential Revision:
parent 9e0711ac
......@@ -113,7 +113,8 @@ Item {
target: contentItem
height: timeLabel.height + (main.showDate || timezoneLabel.visible ? 0.8 * timeLabel.height : 0)
width: Math.max(labelsGrid.width, timezoneLabel.paintedWidth, dateLabel.paintedWidth)
width: Math.max(timeLabel.paintedWidth + (main.showDate ? timezoneLabel.paintedWidth : 0),
timezoneLabel.paintedWidth, dateLabel.paintedWidth) + units.smallSpacing * 2
PropertyChanges {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment