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

layers: up texture quality

This commit is contained in:
bbedward
2025-10-31 12:06:02 -04:00
parent f9932ea222
commit 92926331b5
5 changed files with 7 additions and 2 deletions

View File

@@ -171,6 +171,8 @@ PanelWindow {
clip: false
layer.enabled: true
layer.smooth: true
layer.textureSize: Qt.size(width * Math.max(2, root.screen?.devicePixelRatio || 1), height * Math.max(2, root.screen?.devicePixelRatio || 1))
layer.samples: 4
opacity: root.shouldBeVisible ? 1 : 0
transform: [scaleTransform, motionTransform]

View File

@@ -33,7 +33,6 @@ Item {
color: Theme.surfaceText
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
renderType: Text.NativeRendering
antialiasing: true
font.variableAxes: {
"FILL": root.fill.toFixed(1),

View File

@@ -137,7 +137,6 @@ Item {
text: root.text
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
renderType: Text.NativeRendering
antialiasing: true
}
}

View File

@@ -123,6 +123,8 @@ PanelWindow {
transformOrigin: Item.Center
layer.enabled: Quickshell.env("DMS_DISABLE_LAYER") !== "true" && Quickshell.env("DMS_DISABLE_LAYER") !== "1"
layer.smooth: true
layer.textureSize: Qt.size(width * Math.max(2, root.screen?.devicePixelRatio || 1), height * Math.max(2, root.screen?.devicePixelRatio || 1))
layer.samples: 4
opacity: shouldBeVisible ? 1 : 0
transform: [scaleTransform, motionTransform]

View File

@@ -69,6 +69,9 @@ PanelWindow {
StyledRect {
id: contentRect
layer.enabled: true
layer.smooth: true
layer.textureSize: Qt.size(width * Math.max(2, root.modelData?.devicePixelRatio || 1), height * Math.max(2, root.modelData?.devicePixelRatio || 1))
layer.samples: 4
anchors.top: parent.top
anchors.bottom: parent.bottom