All icons in System Tray "glow" a little bit when mouse is over the icon. This is easy to implement using IconItem, but for SvgItem this eefect must be applied manually.
BUG: 416310
broulik | |
ngraham | |
davidedmundson |
Plasma: Workspaces | |
Plasma |
All icons in System Tray "glow" a little bit when mouse is over the icon. This is easy to implement using IconItem, but for SvgItem this eefect must be applied manually.
BUG: 416310
Move mouse over the baterry icon, it should be a little bit brighter.
No Linters Available |
No Unit Test Coverage |
Buildable 21256 | |
Build 21274: arc lint + arc unit |
applets/batterymonitor/package/contents/ui/CompactRepresentation.qml | ||
---|---|---|
67 | batteryLabel does not exist anymore, it was replaced by BadgeOverlay | |
86 | Is it a good candidate for a component? It can be reused in Notifications applet. | |
87 | Must be a sibling | |
89 | 0.7 is from KIconEffect::init(). Theoretically it can be overwritten by kglobalconfig: ["DesktopIcons"]["ActiveEffect"]["value"], but I looked and found no usage of this config parameter. | |
93–94 | These two are from IconItem: m_animation->setEasingCurve(QEasingCurve::InOutQuad); m_animation->setDuration(250); //FIXME from theme Animation duration is hardcoded, how to get theme value (in QML)? |
As proposed by @broulik in Bug 416310 it might be a good idea to create IconEffects.qml (or IconEffect.qml?). Ideally, it should have a feature parity with KIconEffect.
Any recommendations?
Where to put this component (org.kde.plasma.core, org.kde.plasma.components 3.0, org.kde.plasma.extras, org.kde.plasma.workspace.components)?
How to correctly document it?
How to read KSharedConfig from QML?
BTW. Will it help with T11637?
It would live in PlasmaExtras; PlasmaComponents3 is just a theme for QtQuickControls2 components.
Nice. Could the same technique be applied for keyboardlayout applet?
Currently, it glows a bit on hover when showing a flag icon only. No such effect when in text label mode.