Air/Oxygen desktoptheme: fix hand offsets with hint-*-rotation-center-offset
Summary: The hands of the clocks still relied on the KDE4 times rule that the position in y-axis relativ to the clock center would define the relative rotation point for the hands. With the default in Plasma 5 being (width/2, width/2) from topleft of the hand shape, using hints of upcoming Plasma 5.16 allows to override that again to match the original definition, without the need to enlarge the pixmaps of the hand shapes. Reviewers: #plasma, mart, ngraham Reviewed By: ngraham Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D20496
This commit is contained in:
parent
83d85dc228
commit
37a1845bc4
@ -740,4 +740,47 @@
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<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-hourhandshadow-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-minutehandshadow-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" />
|
||||
<circle
|
||||
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
|
||||
id="hint-secondhandshadow-rotation-center-offset"
|
||||
r="2"
|
||||
cx="100"
|
||||
cy="100" />
|
||||
<rect
|
||||
id="hint-hands-shadow-offset-to-south"
|
||||
style="opacity:1;fill:#008000;fill-opacity:1;stroke:none"
|
||||
width="4"
|
||||
height="2"
|
||||
x="100"
|
||||
y="80" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 256 KiB |
@ -1081,4 +1081,47 @@
|
||||
style="opacity:0.40090093;fill:url(#linearGradient3364);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.28699994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||
sodipodi:type="arc" />
|
||||
</g>
|
||||
<circle
|
||||
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
|
||||
id="hint-hourhand-rotation-center-offset"
|
||||
r="2"
|
||||
cx="125"
|
||||
cy="125" />
|
||||
<circle
|
||||
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
|
||||
id="hint-hourhandshadow-rotation-center-offset"
|
||||
r="2"
|
||||
cx="125"
|
||||
cy="125" />
|
||||
<circle
|
||||
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
|
||||
id="hint-minutehand-rotation-center-offset"
|
||||
r="2"
|
||||
cx="125"
|
||||
cy="125" />
|
||||
<circle
|
||||
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
|
||||
id="hint-minutehandshadow-rotation-center-offset"
|
||||
r="2"
|
||||
cx="125"
|
||||
cy="125" />
|
||||
<circle
|
||||
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
|
||||
id="hint-secondhand-rotation-center-offset"
|
||||
r="2"
|
||||
cx="125"
|
||||
cy="125" />
|
||||
<circle
|
||||
style="opacity:0.875;fill:#008000;fill-opacity:1;stroke:none"
|
||||
id="hint-secondhandshadow-rotation-center-offset"
|
||||
r="2"
|
||||
cx="125"
|
||||
cy="125" />
|
||||
<rect
|
||||
id="hint-hands-shadow-offset-to-south"
|
||||
style="opacity:1;fill:#008000;fill-opacity:1;stroke:none"
|
||||
width="4"
|
||||
height="2"
|
||||
x="125"
|
||||
y="100" />
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 241 KiB After Width: | Height: | Size: 242 KiB |
Loading…
Reference in New Issue
Block a user