delete styled popup
This commit is contained in:
parent
96d1352666
commit
4e2a1874d1
2 changed files with 0 additions and 55 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue