mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-10-04 14:46:36 +08:00
44 lines
1.1 KiB
QML
44 lines
1.1 KiB
QML
// Copyright (c) 2021 Ultimaker B.V.
|
|
// Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import Cura 1.7 as Cura
|
|
import UM 1.0 as UM
|
|
|
|
ScrollView
|
|
{
|
|
clip: true
|
|
|
|
Column
|
|
{
|
|
id: pluginColumn
|
|
width: parent.width
|
|
spacing: UM.Theme.getSize("default_margin").height
|
|
|
|
Repeater
|
|
{
|
|
model: Cura.PackageList{}
|
|
|
|
delegate: Rectangle
|
|
{
|
|
width: pluginColumn.width
|
|
height: UM.Theme.getSize("card").height
|
|
|
|
color: UM.Theme.getColor("main_background")
|
|
radius: UM.Theme.getSize("default_radius").width
|
|
|
|
Label
|
|
{
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
anchors.left: parent.left
|
|
anchors.leftMargin: (parent.height - height) / 2
|
|
|
|
text: model.package.displayName
|
|
font: UM.Theme.getFont("medium_bold")
|
|
color: UM.Theme.getColor("text")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |