powermenu: fix blur/transparency token not applying

This commit is contained in:
bbedward
2026-09-17 19:46:47 -04:00
parent 39d42f850d
commit bffeb252ee
5 changed files with 22 additions and 5 deletions
Generated
+3 -3
View File
@@ -3,11 +3,11 @@
"dank-qml-common": {
"flake": false,
"locked": {
"lastModified": 1789688403,
"narHash": "sha256-ob7P1Y7GZBAGVBu/8eugS8MJb9leSPJQfg9AbxCc9Qs=",
"lastModified": 1789688760,
"narHash": "sha256-RGc+qYJNN4ZveKv7NuWud3Ad2Qzg2Z3fvxpByG3gQLY=",
"owner": "AvengeMedia",
"repo": "dank-qml-common",
"rev": "4288c86638fbc403fa1992c9b5eaa09a505d0734",
"rev": "63bc92b97ea5e91c553c4d2df7592b3c78a71ec7",
"type": "github"
},
"original": {
-1
View File
@@ -11,7 +11,6 @@ DankModal {
layerNamespace: "dms:power-menu"
keepPopoutsOpen: true
useOverlayLayer: true
backgroundColor: Theme.surfaceContainerHigh
animationType: "fade"
animationDuration: LockMetrics.effectsDuration
animationEnterCurve: Theme.expressiveCurves.expressiveEffects
@@ -431,6 +431,8 @@ FocusScope {
PowerMenuView {
id: powerView
anchors.fill: parent
color: "transparent"
buttonColor: Theme.floatingWindowNestedSurface
actions: root.visibleActions
actionProvider: root.getActionData
gridLayout: SettingsData.powerMenuGridLayout
+16
View File
@@ -23,6 +23,18 @@ def read_line(fd):
return data.decode().strip()
def mesa_egl_vendor():
for directory in ["/etc/glvnd/egl_vendor.d", "/usr/share/glvnd/egl_vendor.d"]:
for path in sorted(Path(directory).glob("*.json")):
try:
library = json.loads(path.read_text())["ICD"]["library_path"]
except (OSError, ValueError, KeyError):
continue
if "libEGL_mesa" in library:
return str(path)
return None
suite = len(sys.argv) > 1 and sys.argv[1] == "--suite"
fixtures = [name for name in sys.argv[2:] if not name.startswith("--")] if suite else [sys.argv[1] if len(sys.argv) > 1 else "quickshell/tests/qml/instance-routing.qml"]
if not fixtures:
@@ -71,6 +83,10 @@ with tempfile.TemporaryDirectory(prefix="dms-surface-test-") as temporary:
for name in ["runtime", "config", "cache", "state", "data"]:
env["XDG_" + name.upper() + ("_DIR" if name == "runtime" else "_HOME")] = str(root / name)
env.update(QT_QPA_PLATFORM="wayland", QT_LOGGING_RULES="qml.debug=true", LIBGL_ALWAYS_SOFTWARE="1", DMS_DISABLE_HOT_RELOAD="1", DMS_DISABLE_MATUGEN="1", DBUS_SESSION_BUS_ADDRESS="unix:path=" + str(root / "no-session-bus"), DBUS_SYSTEM_BUS_ADDRESS="unix:path=" + str(root / "no-system-bus"), PULSE_SERVER="unix:" + str(root / "no-pulse"), PIPEWIRE_REMOTE="no-pipewire")
# glvnd loads the nvidia vendor first, which powers up a sleeping dGPU
mesa_vendor = mesa_egl_vendor()
if mesa_vendor:
env["__EGL_VENDOR_LIBRARY_FILENAMES"] = mesa_vendor
if "--capture" in sys.argv:
env["DMS_FIXTURE_CAPTURE"] = "1"
if "--corners" in sys.argv: