Files
DankMaterialShell/quickshell/Widgets/DankFloatingWindow.qml
T
bbedward 0bd3e85150 settings: fix window rules overflow, unify popout border settings
cards: fix regression that created borders
matugen: run on a low priority worker and seeds dms-colors before other
templates
2026-09-21 11:47:52 -04:00

45 lines
1.0 KiB
QML

pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import qs.Common
FloatingWindow {
id: root
readonly property bool isFloatingWindowSurface: true
default property alias content: contentItem.data
property color surfaceColor: Theme.floatingWindowSurface
property bool contentVisible: true
color: "transparent"
Rectangle {
anchors.fill: parent
color: root.surfaceColor
visible: root.contentVisible
}
// No surfaceColor gate: compositor window rules can make this window translucent.
WindowBlur {
targetWindow: root
blurEnabled: root.contentVisible && Theme.connectedSurfaceBlurEnabled
blurX: 0
blurY: 0
blurWidth: root.visible ? root.width : 0
blurHeight: root.visible ? root.height : 0
}
Item {
id: contentItem
readonly property bool isFloatingWindowSurface: true
property bool disablePopupTransparency: true
anchors.fill: parent
visible: root.contentVisible
}
}