magpie/qml/Application/Assets.qml

52 lines
950 B
QML
Raw Normal View History

// SPDX-FileCopyrightText: 2023 Yury Gubich <blue@macaw.me>
// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import QtQuick.Controls
2024-01-17 21:57:34 +00:00
import magpie.API
Item {
2024-01-17 21:57:34 +00:00
signal add
Column {
anchors.fill: parent
Label {
text: "This is Assets screen"
font {
pixelSize: 24
bold: true
}
}
ListView {
anchors.centerIn: parent
model: API.assets
delegate: Rectangle {
Text {
text: title
}
}
}
}
Button {
anchors {
bottom: parent.bottom
right: parent.right
bottomMargin: 20
rightMargin: 20
}
onClicked: add()
width: 50
height: 50
icon {
name: "list-add"
height: 50
width: 50
}
}
}