<table><tr><td style="">kossebau added a comment.
</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/D20112">View Revision</a></tr></table><br /><div><div><p>Looking around on store.kde.org, I saw quite some clocks of (old) themes which have hands that are e.g. only indicators directly at the border. Or are ghost-like pointers floating disconnected from the center.<br />
They usually compensate by having an empty region until the center (or beyond, to make up for the currently hardcoded (width/2, width/2) rotation center offset).<br />
With some old themes, it appears even that in early Plasma times the vertical offset from the middle of the hand shape was used (cmp. e.g. clock of Spoons lite: <a href="https://store.kde.org/p/998821/" class="remarkup-link" target="_blank" rel="noreferrer">https://store.kde.org/p/998821/</a>)</p>
<p>To test the new variant to define the rotation offset, please get the current working version of Spoons dark:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">cd some/test/dir
git clone git://anongit.kde.org/scratch/ivan/plasma-theme-spoons-dark.git
cd .local/share/plasma/desktoptheme
ln -s some/test/dir/plasma-theme-spoons-dark spoons-dark-work</pre></div>
<p>Open <tt style="background: #ebebeb; font-size: 13px;">widgets/clock.svg</tt> and add this before the final `</svg>:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);"><circle
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
id="hint-hourhand-rotation-center-offset"
r="2"
cx="71.566"
cy="62.5" />
<circle
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
id="hint-minutehand-rotation-center-offset"
r="2"
cx="63.908"
cy="62.5" />
<circle
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
id="hint-secondhand-rotation-center-offset"
r="2"
cx="56.250"
cy="62.5" /></pre></div>
<p>The result would look like this in Inkscape:<br />
<a href="https://phabricator.kde.org/F6759682" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F6759682: Screenshot_20190408_223047.png</a><br />
And this patch then results in this at runtime:<br />
<a href="https://phabricator.kde.org/F6759679" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">F6759679: Screenshot_20190408_222812.png</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>fixclockshadowhandcenter</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D20112">https://phabricator.kde.org/D20112</a></div></div><br /><div><strong>To: </strong>kossebau, Plasma, VDG, mart, davidedmundson, ngraham<br /><strong>Cc: </strong>plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>