1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-14 09:42:10 -04:00

DankPopout: make bg and content siblings

This commit is contained in:
bbedward
2026-02-03 14:31:31 -05:00
parent f59aeb2782
commit b811316d0c
2 changed files with 11 additions and 13 deletions

View File

@@ -1,5 +1,4 @@
import QtQuick import QtQuick
import QtQuick.Layouts
import qs.Common import qs.Common
import qs.Services import qs.Services
import qs.Widgets import qs.Widgets

View File

@@ -453,25 +453,24 @@ Item {
} }
} }
DankRectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
radius: Theme.cornerRadius radius: Theme.cornerRadius
color: Theme.withAlpha(Theme.surfaceContainer, Theme.popupTransparency) color: Theme.surfaceContainer
} }
} }
Item { DankRectangle {
id: contentLoaderWrapper
anchors.fill: parent anchors.fill: parent
x: Theme.snap(x, root.dpr) radius: Theme.cornerRadius
y: Theme.snap(y, root.dpr) color: Theme.withAlpha(Theme.surfaceContainer, Theme.popupTransparency)
}
Loader { Loader {
id: contentLoader id: contentLoader
anchors.fill: parent anchors.fill: parent
active: shouldBeVisible || contentWindow.visible active: shouldBeVisible || contentWindow.visible
asynchronous: false asynchronous: false
}
} }
} }
} }