1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-18 09:05:24 -04:00

running apps: fix blurred tooltips

This commit is contained in:
bbedward
2026-06-16 18:26:29 -04:00
parent 2692777707
commit df41ae4acb
2 changed files with 33 additions and 16 deletions
@@ -18,6 +18,14 @@ BasePill {
property var widgetData: null
property var hoveredItem: null
onHoveredItemChanged: {
if (hoveredItem)
return;
if (tooltipLoader.item)
tooltipLoader.item.hide();
tooltipLoader.active = false;
}
property var topBar: null
property bool isAutoHideBar: false
property Item windowRoot: (Window.window ? Window.window.contentItem : null)
@@ -236,6 +244,11 @@ BasePill {
delegate: Item {
id: delegateItem
Component.onDestruction: {
if (root.hoveredItem === delegateItem)
root.hoveredItem = null;
}
property bool isGrouped: root._groupByApp
property var groupData: isGrouped ? modelData : null
property var toplevelData: isGrouped ? (modelData.windows.length > 0 ? modelData.windows[0].toplevel : null) : modelData
@@ -461,14 +474,8 @@ BasePill {
}
}
onExited: {
if (root.hoveredItem === delegateItem) {
if (root.hoveredItem === delegateItem)
root.hoveredItem = null;
if (tooltipLoader.item) {
tooltipLoader.item.hide();
}
tooltipLoader.active = false;
}
}
}
}
@@ -491,6 +498,11 @@ BasePill {
delegate: Item {
id: delegateItem
Component.onDestruction: {
if (root.hoveredItem === delegateItem)
root.hoveredItem = null;
}
property bool isGrouped: root._groupByApp
property var groupData: isGrouped ? modelData : null
property var toplevelData: isGrouped ? (modelData.windows.length > 0 ? modelData.windows[0].toplevel : null) : modelData
@@ -715,14 +727,8 @@ BasePill {
}
}
onExited: {
if (root.hoveredItem === delegateItem) {
if (root.hoveredItem === delegateItem)
root.hoveredItem = null;
if (tooltipLoader.item) {
tooltipLoader.item.hide();
}
tooltipLoader.active = false;
}
}
}
}
+13 -2
View File
@@ -2,6 +2,8 @@ import QtQuick
import Quickshell
import Quickshell.Wayland
import qs.Common
import qs.Services
import qs.Widgets
PanelWindow {
id: root
@@ -69,12 +71,21 @@ PanelWindow {
}
}
WindowBlur {
targetWindow: root
blurX: 0
blurY: 0
blurWidth: root.visible ? root.width : 0
blurHeight: root.visible ? root.height : 0
blurRadius: Theme.cornerRadius
}
Rectangle {
anchors.fill: parent
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
radius: Theme.cornerRadius
border.width: 1
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.08)
border.width: BlurService.enabled ? BlurService.borderWidth : 1
border.color: BlurService.enabled ? BlurService.borderColor : Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.08)
StyledText {
id: textContent