The new hints
- hint-hourhand-rotation-center-offset
- hint-minutehand-rotation-center-offset
allow themes to define where in the hand pixmap the rotation center should
be placed.
mart | |
davidedmundson | |
ngraham |
Plasma | |
VDG |
The new hints
allow themes to define where in the hand pixmap the rotation center should
be placed.
Clear the cache (rm .cache/plasma* -r) and restart system settings, see
clocks of unmodified themes still have hands at normal position, and hands
of modified themes at expected positions.
No Linters Available |
No Unit Test Coverage |
Buildable 10639 | |
Build 10657: arc lint + arc unit |
See D20112 for the same change for the applet.
To test, you can download the Unicorn theme from store.kde.org, then edit the .local/share/plasma/desktoptheme/unicorn/widgets/clock.svg and append this before the final </svg>:
<rect style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none" id="hint-hands-shadow-offset-to-west" width="20" height="4" x="100" y="60" /> <rect style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none" id="hint-hands-shadow-offset-to-south" width="4" height="10" x="110" y="60" /> <!-- Updated: initial code variant <rect style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none" id="hint-hourhand-rotation-center-offset" width="7.4285" height="2.5" x="93.071" y="70" /> <rect style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none" id="hint-minutehand-rotation-center-offset" width="37.835" height="2.5" x="62.576" y="80" /> <rect style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none" id="hint-secondhand-rotation-center-offset" width="11,772" height="0.5" x="88.616" y="90" /> --> <circle style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none" id="hint-hourhand-rotation-center-offset" r="2" cx="100" cy="100" /> <circle style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none" id="hint-minutehand-rotation-center-offset" r="2" cx="100" cy="100" /> <circle style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none" id="hint-secondhand-rotation-center-offset" r="2" cx="100" cy="100" />
Clearing the cache and then reloading the theme settings will then fix the Unicorn clock to look like this (minute hand properly rotated around end) as well keep the other clocks unchanged: