From 189144099b75cb0130a7c4e3e15d5795d823a175 Mon Sep 17 00:00:00 2001 From: kossLAN Date: Wed, 16 Jul 2025 23:43:43 -0400 Subject: [PATCH] track styled popup --- shell/widgets/StyledPopup.qml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 shell/widgets/StyledPopup.qml diff --git a/shell/widgets/StyledPopup.qml b/shell/widgets/StyledPopup.qml new file mode 100644 index 0000000..8afa616 --- /dev/null +++ b/shell/widgets/StyledPopup.qml @@ -0,0 +1,32 @@ +import QtQuick +import Quickshell +import Quickshell.Widgets +import ".." + +PopupWindow { + id: root + color: "transparent" + implicitWidth: container.width + implicitHeight: container.height + + default property alias contentItem: container.children + + WrapperRectangle { + id: container + margin: 5 + radius: 12 + + color: { + let base = ShellSettings.colors.surface; + return Qt.rgba(base.r, base.g, base.b, 0.15); + } + + border { + width: 1 + color: { + let base = ShellSettings.colors.active; + return Qt.rgba(base.r, base.g, base.b, 0.05); + } + } + } +}