mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Add hover feedback on window icons
This commit is contained in:
@@ -770,11 +770,23 @@ Item {
|
||||
width: root.iconSize
|
||||
height: root.iconSize
|
||||
|
||||
HoverHandler {
|
||||
id: hoverHandler
|
||||
}
|
||||
|
||||
IconImage {
|
||||
id: groupedAppIcon
|
||||
|
||||
width: parent.width
|
||||
height: parent.height
|
||||
scale: hoverHandler.hovered ? (root.isVertical ? 1.1 : 1.2) : (root.isVertical ? 0.9 : 1.0)
|
||||
Behavior on scale {
|
||||
NumberAnimation {
|
||||
duration: Style.animationNormal
|
||||
easing.type: Easing.OutBack
|
||||
}
|
||||
}
|
||||
|
||||
source: {
|
||||
root.iconRevision; // Force re-evaluation when revision changes
|
||||
return ThemeIcons.iconForAppId(modelData.appId?.toLowerCase());
|
||||
|
||||
Reference in New Issue
Block a user