1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- // Copyright (c) 2019 Ultimaker B.V.
- // Toolbox is released under the terms of the LGPLv3 or higher.
- import QtQuick 2.10
- import QtQuick.Controls 2.3
- import UM 1.1 as UM
- Item
- {
- id: tile
- width: detailList.width - UM.Theme.getSize("wide_margin").width
- height: normalData.height + 2 * UM.Theme.getSize("wide_margin").height
- Column
- {
- id: normalData
- anchors
- {
- top: parent.top
- left: parent.left
- right: controls.left
- rightMargin: UM.Theme.getSize("wide_margin").width
- }
- Label
- {
- width: parent.width
- height: UM.Theme.getSize("toolbox_property_label").height
- text: model.name
- wrapMode: Text.WordWrap
- color: UM.Theme.getColor("text")
- font: UM.Theme.getFont("medium_bold")
- renderType: Text.NativeRendering
- }
- Label
- {
- width: parent.width
- text: model.description
- maximumLineCount: 25
- elide: Text.ElideRight
- wrapMode: Text.WordWrap
- color: UM.Theme.getColor("text")
- font: UM.Theme.getFont("default")
- renderType: Text.NativeRendering
- }
- ToolboxCompatibilityChart
- {
- width: parent.width
- packageData: model
- }
- }
- ToolboxDetailTileActions
- {
- id: controls
- anchors.right: tile.right
- anchors.top: tile.top
- width: childrenRect.width
- height: childrenRect.height
- packageData: model
- }
- Rectangle
- {
- color: UM.Theme.getColor("lining")
- width: tile.width
- height: UM.Theme.getSize("default_lining").height
- anchors.top: normalData.bottom
- anchors.topMargin: UM.Theme.getSize("default_margin").height + UM.Theme.getSize("wide_margin").height //Normal margin for spacing after chart, wide margin between items.
- }
- }
|