mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
disable layer debug opt
This commit is contained in:
@@ -82,7 +82,8 @@ PanelWindow {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: contentContainer
|
id: contentContainer
|
||||||
layer.enabled: true
|
// ! TODO - cannot figure out the proper fix for this, some texture artifacts with certain drivers screen scales
|
||||||
|
layer.enabled: Quickshell.env("DMS_DISABLE_LAYER") !== "true"
|
||||||
|
|
||||||
readonly property real screenWidth: root.screen.width
|
readonly property real screenWidth: root.screen.width
|
||||||
readonly property real screenHeight: root.screen.height
|
readonly property real screenHeight: root.screen.height
|
||||||
@@ -110,8 +111,8 @@ PanelWindow {
|
|||||||
|
|
||||||
readonly property real dpr: root.screen.devicePixelRatio
|
readonly property real dpr: root.screen.devicePixelRatio
|
||||||
function snap(v) { return Math.round(v * dpr) / dpr }
|
function snap(v) { return Math.round(v * dpr) / dpr }
|
||||||
width: snap(popupWidth)
|
width: popupWidth
|
||||||
height: snap(popupHeight)
|
height: popupHeight
|
||||||
x: snap(calculatedX)
|
x: snap(calculatedX)
|
||||||
y: snap(calculatedY)
|
y: snap(calculatedY)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user