mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-13 05:17:48 +03:00
Highlight the hovered item in the task group tooltip
Summary: Currently, the task group tooltip doesn't react to the user hovering over a thumbnail. This patch modifies the active window line to also act as a hover indicator, making the UI more responsive to the user's mouse movements. {F6734813} Reviewers: #latte_dock, mvourlakos Reviewed By: #latte_dock, mvourlakos Subscribers: mvourlakos, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D19281
This commit is contained in:
parent
0a3755dce5
commit
6f84812a53
@ -87,6 +87,10 @@ Column {
|
||||
|| (playbackLoader.active && playbackLoader.item.containsMouse());
|
||||
}
|
||||
|
||||
function isTaskActive() {
|
||||
return (isGroup ? isActive : (parentTask ? parentTask.isActive : false));
|
||||
}
|
||||
|
||||
// launcher icon + text labels + close button
|
||||
RowLayout {
|
||||
id: header
|
||||
@ -437,9 +441,9 @@ Column {
|
||||
Rectangle{
|
||||
width: parent.width
|
||||
height: 2
|
||||
color: theme.buttonFocusColor
|
||||
color: isTaskActive() ? theme.buttonFocusColor : theme.buttonHoverColor
|
||||
anchors.bottom: parent.bottom
|
||||
visible: isGroup ? isActive : (parentTask ? parentTask.isActive : false)
|
||||
visible: isTaskActive() || area2.containsMouse
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user