Add a close button for dialogs.

This commit is contained in:
Adam Treat
2023-07-06 10:53:43 -04:00
parent fb576fbd7e
commit db528ef1b0
12 changed files with 54 additions and 82 deletions

View File

@@ -7,27 +7,18 @@ import download
import network
import llm
Dialog {
MyDialog {
id: newVerionDialog
anchors.centerIn: parent
modal: true
opacity: 0.9
width: contentItem.width
height: contentItem.height
padding: 20
padding: 10
Theme {
id: theme
}
background: Rectangle {
anchors.fill: parent
color: theme.backgroundDarkest
border.width: 1
border.color: theme.dialogBorder
radius: 10
}
Item {
id: contentItem
width: childrenRect.width + 40