1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-29 14:32:08 -04:00

popout: fix texture sizing during animation

This commit is contained in:
bbedward
2026-06-29 08:21:07 -04:00
parent 424d4ed701
commit a874f76d72
3 changed files with 9 additions and 4 deletions
+3
View File
@@ -110,6 +110,9 @@ bin/
# Core dumps # Core dumps
core.* core.*
# prek-installed local git hooks (generated from .pre-commit-config.yaml)
.githooks/
# direnv # direnv
.envrc .envrc
.direnv/ .direnv/
+3 -2
View File
@@ -576,7 +576,8 @@ Item {
readonly property real screenWidth: screen ? screen.width : 0 readonly property real screenWidth: screen ? screen.width : 0
readonly property real screenHeight: screen ? screen.height : 0 readonly property real screenHeight: screen ? screen.height : 0
readonly property real dpr: screen ? screen.devicePixelRatio : 1 // devicePixelRatio rounds to integer under fractional scaling; use the real scale Qt renders at.
readonly property real dpr: screen ? (CompositorService.getScreenScale(screen) || screen.devicePixelRatio) : 1
readonly property bool closeFrameGapsActive: SettingsData.frameCloseGaps && frameOwnsConnectedChrome readonly property bool closeFrameGapsActive: SettingsData.frameCloseGaps && frameOwnsConnectedChrome
readonly property real frameInset: { readonly property real frameInset: {
if (!root.frameOwnsConnectedChrome) if (!root.frameOwnsConnectedChrome)
@@ -1271,7 +1272,7 @@ Item {
layer.enabled: _animating || (_fadeWithOpacity && publishedOpacity < 1) layer.enabled: _animating || (_fadeWithOpacity && publishedOpacity < 1)
layer.smooth: false layer.smooth: false
layer.textureSize: root.dpr > 1 ? Qt.size(Math.ceil(width * root.dpr), Math.ceil(height * root.dpr)) : Qt.size(0, 0) layer.textureSize: Qt.size(0, 0)
Behavior on opacity { Behavior on opacity {
enabled: contentWrapper._fadeWithOpacity enabled: contentWrapper._fadeWithOpacity
+3 -2
View File
@@ -404,7 +404,8 @@ Item {
readonly property real screenWidth: screen ? screen.width : 0 readonly property real screenWidth: screen ? screen.width : 0
readonly property real screenHeight: screen ? screen.height : 0 readonly property real screenHeight: screen ? screen.height : 0
readonly property real dpr: screen ? screen.devicePixelRatio : 1 // devicePixelRatio rounds to integer under fractional scaling; use the real scale Qt renders at.
readonly property real dpr: screen ? (CompositorService.getScreenScale(screen) || screen.devicePixelRatio) : 1
readonly property var shadowLevel: Theme.elevationLevel3 readonly property var shadowLevel: Theme.elevationLevel3
readonly property real shadowFallbackOffset: 6 readonly property real shadowFallbackOffset: 6
@@ -845,7 +846,7 @@ Item {
layer.enabled: !Theme.isDirectionalEffect && publishedOpacity < 1 layer.enabled: !Theme.isDirectionalEffect && publishedOpacity < 1
layer.smooth: false layer.smooth: false
layer.textureSize: root.dpr > 1 ? Qt.size(Math.ceil(width * root.dpr), Math.ceil(height * root.dpr)) : Qt.size(0, 0) layer.textureSize: Qt.size(0, 0)
Behavior on opacity { Behavior on opacity {
enabled: !Theme.isDirectionalEffect enabled: !Theme.isDirectionalEffect