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

--- Comment #3 from Konrad Materka <mate...@gmail.com> ---
Hmm, then maybe we can implement this effect in QML, like:

import QtGraphicalEffects 1.12
...
GammaAdjust {
    anchors.fill: batteryIcon
    source: batteryItem
    gamma: root.containsMouse ? (1.0 / 0.7) : 1

    Behavior on gamma {
        PropertyAnimation {
            easing: Easing.InOutQuad
            duration: 250
        }
    }
}

I can provide a patch. The only problem is to maintain consistency with
IconItem (animation easing, duration) and with KIconEffect (effect type,
values). Some parameters are hardcoded, some are read from kglobalconfig, like:
["DesktopIcons"]["ActiveEffect"]["value"]. I was not able to find any usage of
these config values, but some themes may use it. 
In addition, it might be a good idea to extract this as a separate component.

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

Reply via email to