<table><tr><td style="">guoyunhe created this revision.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D6813" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><p>This patch is not tested! I have some trouble to compile or run Plasma Workspace. Hope someone could help me test or give some build/test instruction. :-)</p></blockquote>

<p>The "Digital Clock" applet uses panel height or applet height to decide the font size. If the panel is 50px high, the "Digital Clock" applet would have a huge font size around 48px. (without date or timezone) This is too big for many users.</p>

<p>In other desktop environment, like Unity, GNOME, Windows, macOS, similar date time applets have fixed font size that equals to the default UI font size.</p>

<p>This patch would add a "Font size" option to appearance configuration dialog.</p>

<p>If not set a font size, it uses "Default", the default font size of Plamsa. If a value was set, it will use the specific font size. It still follow the panel size and applet size limits. So the font size should never be larger than label height.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6813" rel="noreferrer">https://phabricator.kde.org/D6813</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>applets/digital-clock/package/contents/ui/DigitalClock.qml<br />
applets/digital-clock/package/contents/ui/configAppearance.qml</div></div></div><br /><div><strong>To: </strong>guoyunhe, Plasma: Workspaces<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>