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

@@ -8,14 +8,13 @@ import network
import llm
import mysettings
Dialog {
MyDialog {
id: startupDialog
anchors.centerIn: parent
modal: true
opacity: 0.9
padding: 20
padding: 10
width: 1024
height: column.height + 40
height: column.height + 20
closePolicy: !optInStatisticsRadio.choiceMade || !optInNetworkRadio.choiceMade ? Popup.NoAutoClose : (Popup.CloseOnEscape | Popup.CloseOnPressOutside)
Theme {
@@ -345,12 +344,4 @@ model release that uses your data!")
}
}
}
background: Rectangle {
anchors.fill: parent
color: theme.backgroundDarkest
border.width: 1
border.color: theme.dialogBorder
radius: 10
}
}