diff --git a/components/StyledPopup.qml b/components/StyledPopup.qml deleted file mode 100644 index 0c54c45..0000000 --- a/components/StyledPopup.qml +++ /dev/null @@ -1,37 +0,0 @@ -import qs.config -import QtQuick -import Quickshell -import Quickshell.Hyprland - -PopupWindow { - id: root - - implicitWidth: background.implicitWidth - implicitHeight: background.implicitHeight - color: "transparent" - - function open() { - visible = true; - } - - function close() { - visible = false; - } - - HyprlandFocusGrab { - id: grab - windows: [root] - onCleared: { - root.close(); - } - } - - Rectangle { - id: background - anchors.centerIn: root - implicitWidth: root.contentItem.children.reduce((prev, child) => Math.max(prev, child.width), 0) - implicitHeight: root.contentItem.children.reduce((prev, child) => prev + child.height, 0) - color: Styling.theme.base200 - radius: 8 - } -} diff --git a/modules/storybook/Storybook.qml b/modules/storybook/Storybook.qml index 581c482..59962cc 100644 --- a/modules/storybook/Storybook.qml +++ b/modules/storybook/Storybook.qml @@ -177,24 +177,6 @@ StyledWindow { id: fileButton text: "File" onPressed: menu.visible ? menu.close() : menu.open() - - StyledPopup { - id: menu - - anchor.item: fileButton - - Column { - StyledButton { - text: "New..." - } - StyledButton { - text: "Open..." - } - StyledText { - text: "Close" - } - } - } } }