delete styled popup

This commit is contained in:
Benjamin Palko 2025-09-06 22:28:06 -04:00
parent 96d1352666
commit 4e2a1874d1
2 changed files with 0 additions and 55 deletions

View file

@ -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
}
}

View file

@ -177,24 +177,6 @@ StyledWindow {
id: fileButton id: fileButton
text: "File" text: "File"
onPressed: menu.visible ? menu.close() : menu.open() onPressed: menu.visible ? menu.close() : menu.open()
StyledPopup {
id: menu
anchor.item: fileButton
Column {
StyledButton {
text: "New..."
}
StyledButton {
text: "Open..."
}
StyledText {
text: "Close"
}
}
}
} }
} }