Rework Button and add Modal to have a better experience on Phone

This commit is contained in:
Vyn 2024-05-22 18:00:56 +02:00
parent 4164d8fbf3
commit 3bbcf60c61
7 changed files with 102 additions and 74 deletions

View file

@ -129,21 +129,9 @@ Rectangle {
Layout.fillHeight: true
}
Popup {
parent: Overlay.overlay
Modal {
id: filesFormPopup
width: parent.width * 0.75
implicitHeight: filesForm.height + padding * 2
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height * 0.4) / 2)
padding: 8
background: Rectangle {
border.color: colorPalette.selected.modalBorder
border.width: 2
color: colorPalette.selected.pane
radius: 4
}
fullScreen: root.isPhone
FilesForm {
id: filesForm
width: parent.width
@ -155,20 +143,9 @@ Rectangle {
}
}
Popup {
parent: Overlay.overlay
Modal {
id: tagsFormPopup
width: parent.width * 0.75
implicitHeight: tagsForm.height + padding * 2
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height * 0.4) / 2)
padding: 8
background: Rectangle {
border.color: colorPalette.selected.modalBorder
border.width: 2
color: colorPalette.selected.pane
radius: 4
}
fullScreen: root.isPhone
TagsConfigForm {
id: tagsForm
width: parent.width