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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user