[PATCH] ActionButton.qml: centre-align the clickable part of the button

Rick Walsh rickmwalsh at gmail.com
Fri Feb 5 23:09:41 UTC 2016


ActionButton.qml: centre-align the clickable part of the button

buttonGraphics.x refers to the centre of the action button. For the click to
be within the central area of the button, mouse.x needs to be between:
        buttonGraphics.x - buttonGraphics.width / 2, and
        buttonGraphics.x + buttonGraphics.width / 2

Signed-off-by: Rick Walsh <rickmwalsh at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160206/2fd6e74d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ActionButton.qml-centre-align-the-clickable-part-of-.patch
Type: text/x-patch
Size: 1284 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160206/2fd6e74d/attachment.bin>


More information about the Plasma-devel mailing list