Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions qml/windowed/AppListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,12 @@ FocusScope {
ColorSelector.pressed: false
property Palette textColor: DStyle.Style.button.text
palette.windowText: ColorSelector.textColor
ColorSelector.hovered: itemHoverHandler.hovered

HoverHandler {
id: itemHoverHandler
}

ToolTip.text: text
ToolTip.delay: 500
ToolTip.visible: hovered && contentItem.implicitWidth > contentItem.width
Expand Down Expand Up @@ -261,6 +267,8 @@ FocusScope {
implicitWidth: DStyle.Style.itemDelegate.width
implicitHeight: Helper.windowed.listItemHeight
button: itemDelegate
interactionPressed: mouseArea.pressed
interactionHovered: itemHoverHandler.hovered
}
}
Keys.onReturnPressed: {
Expand Down
7 changes: 7 additions & 0 deletions qml/windowed/FreeSortListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ Item {
property Palette textColor: DStyle.Style.button.text
palette.windowText: ColorSelector.textColor
opacity: !Drag.active && (typeof dndItem === "undefined" || dndItem.currentlyDraggedId !== model.desktopId) ? 1 : 0
ColorSelector.hovered: itemHoverHandler.hovered

HoverHandler {
id: itemHoverHandler
}

ToolTip.text: text
ToolTip.delay: 500
Expand All @@ -323,6 +328,8 @@ Item {
implicitWidth: DStyle.Style.itemDelegate.width
implicitHeight: Helper.windowed.listItemHeight
button: itemDelegate
interactionPressed: mouseArea.pressed
interactionHovered: itemHoverHandler.hovered
}

MouseArea {
Expand Down
6 changes: 4 additions & 2 deletions qml/windowed/ItemBackground.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd.
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later

Expand All @@ -12,6 +12,8 @@ D.BoxPanel {
id: control
property Item button
property D.Palette background: Helper.itemBackground
property bool interactionPressed: control.D.ColorSelector.controlState === D.DTK.PressedState
property bool interactionHovered: control.D.ColorSelector.controlState === D.DTK.HoveredState

implicitWidth: DS.Style.toolButton.width
implicitHeight: DS.Style.toolButton.height
Expand All @@ -24,7 +26,7 @@ D.BoxPanel {
if (typeof dndItem !== "undefined" && dndItem.currentlyDraggedId !== "") {
return false
}
return button.checked || button.highlighted || button.visualFocus || control.D.ColorSelector.controlState === D.DTK.PressedState || control.D.ColorSelector.controlState === D.DTK.HoveredState
return button.checked || button.highlighted || button.visualFocus || interactionPressed || interactionHovered
}

function selectValue(normal, checked, highlighted) {
Expand Down
Loading