https://bugs.kde.org/show_bug.cgi?id=399757

--- Comment #3 from Chris Holland <zrenf...@gmail.com> ---
Originally I was thinking we could maybe recreate the buttons in QML, as it's
just a simple rectangle with rounded corners (to make a circle) that's centered
with a simple zoom animation on the width/height.

But you know... it might be worth looking into the Window Decoration KCM. As it
was converted to QML. The buttons animated there too on hover.

* https://github.com/KDE/kwin/tree/master/kcmkwin/kwindecoration
*
https://github.com/KDE/kwin/blob/master/kcmkwin/kwindecoration/qml/Buttons.qml


We can get it to draw a non-animated button with:
https://gist.github.com/Zren/40f657da96e4d8a29b13d74b74e956c5

Unfortunately, it's not animated, since the KDecoration.Button is used for the
"button editor".

The complete animated decoration previews could be picked apart somehow to get
just the left side buttons + animated.

*
https://github.com/KDE/kwin/blob/master/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp
*
https://github.com/KDE/kwin/blob/master/kcmkwin/kwindecoration/declarative-plugin/previewbutton.cpp


We'd probably need to send the mouse events somehow.
*
https://github.com/KDE/kwin/blob/master/kcmkwin/kwindecoration/declarative-plugin/previewitem.cpp#L361

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to