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

@ -28,6 +28,15 @@ ColumnLayout {
property var paths
}
AppText {
text: "Files"
font.pixelSize: 32
}
Item {
Layout.preferredHeight: 32
}
Repeater {
model: internal.paths
ColumnLayout {
@ -40,6 +49,15 @@ ColumnLayout {
}
}
AppButton {
text: "Add"
icon.source: "qrc:/qt/qml/Mirai/src/images/add.png"
icon.color: colorPalette.selected.palette.green
onClicked: {
fileDialog.open()
}
}
FileDialog {
id: fileDialog
onAccepted: {
@ -48,11 +66,8 @@ ColumnLayout {
}
}
AppButton {
text: "+ Add"
onClicked: {
fileDialog.open()
}
Item {
Layout.preferredHeight: 32
}
AppButton {