2024-01-10 19:27:03 +00:00
|
|
|
// 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
|
|
|
|
|
2024-01-10 19:27:03 +00:00
|
|
|
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
|
2024-01-10 19:27:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|