mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 10:13:42 +00:00
Rework Button and add Modal to have a better experience on Phone
This commit is contained in:
parent
4164d8fbf3
commit
3bbcf60c61
7 changed files with 102 additions and 74 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue