uwerat / qskinny

A lightweight framework on top of the Qt scene graph and only few classes from Qt/Quick. It is usable from C++ and/or QML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

better support for implementing ripple effects

uwerat opened this issue · comments

commented

Material defines 2 different types of visual feedback with the term "ripple". Flutter calls them Highlight and Splash.
At the moment these effects need to be implemented by additional subcontrols in the controls and specific nodes in the skinlet.

It might be possible to introduce specific primitives to replace the subcontrols and to handle them in tailored methods of QskSkinlet.

While Highlight could work similar to QskAspect::Shadow the Splash effect is more tricky as it is a temporary effect that is related to the state transition - not to the new state ( Mealy vs. Moore machine ). Maybe it is possible to introduce new types of animation hints to be able to declare this type of transitions in the skin - instead of having extra code in the controls.