1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 00:12:50 -05:00

Tweak colors a bit

This commit is contained in:
bbedward
2025-10-02 20:15:20 -04:00
parent 16055fe96e
commit 414a1ad4d2
9 changed files with 26 additions and 23 deletions

View File

@@ -107,11 +107,14 @@ PanelWindow {
return Math.max(Theme.popupDistance, Math.min(screenHeight - popupHeight - Theme.popupDistance, triggerY + Theme.popupDistance))
}
}
width: popupWidth
height: popupHeight
x: Math.round(calculatedX)
y: Math.round(calculatedY)
readonly property real dpr: root.screen.devicePixelRatio
function snap(v) { return Math.round(v * dpr) / dpr }
width: snap(popupWidth)
height: snap(popupHeight)
x: snap(calculatedX)
y: snap(calculatedY)
opacity: shouldBeVisible ? 1 : 0
scale: 1