mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 14:11:33 +00:00
Fix tooltip display in app grid
This commit is contained in:
+3
-1
@@ -74,6 +74,7 @@ CenteredGridView {
|
|||||||
grid: appGrid
|
grid: appGrid
|
||||||
|
|
||||||
property alias appContextMenu: appContextMenuLoader.item
|
property alias appContextMenu: appContextMenuLoader.item
|
||||||
|
property alias appNameText: appNameTextLoader.item
|
||||||
|
|
||||||
// Dim the app if it's hidden
|
// Dim the app if it's hidden
|
||||||
opacity: model.hidden ? 0.4 : 1.0
|
opacity: model.hidden ? 0.4 : 1.0
|
||||||
@@ -106,7 +107,7 @@ CenteredGridView {
|
|||||||
ToolTip.text: model.name
|
ToolTip.text: model.name
|
||||||
ToolTip.delay: 1000
|
ToolTip.delay: 1000
|
||||||
ToolTip.timeout: 5000
|
ToolTip.timeout: 5000
|
||||||
ToolTip.visible: (parent.hovered || parent.highlighted) && (!appNameText.visible || appNameText.truncated)
|
ToolTip.visible: (parent.hovered || parent.highlighted) && (!appNameText || appNameText.truncated)
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
@@ -170,6 +171,7 @@ CenteredGridView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
id: appNameTextLoader
|
||||||
active: appIcon.isPlaceholder
|
active: appIcon.isPlaceholder
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user