D20112: [analog-clock] Allow themes to define hand shadow offset & hand rot center

Friedrich W. H. Kossebau noreply at phabricator.kde.org
Fri Mar 29 11:37:22 GMT 2019


kossebau added a comment.


  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" />
    <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" />
  
  Reloading the theme will then fix the clock to look like this (extreme shadow offset just done for demo purpose)
  F6730106: Screenshot_20190329_112243.png <https://phabricator.kde.org/F6730106>

REPOSITORY
  R120 Plasma Workspace

REVISION DETAIL
  https://phabricator.kde.org/D20112

To: kossebau, #plasma, #vdg, mart, davidedmundson, ngraham
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190329/8651df0c/attachment-0001.html>


More information about the Plasma-devel mailing list