123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import QtQuick 2.2
- import QtQuick.Controls 2.0
- import UM 1.3 as UM
- Item
- {
-
- property var buildplate: null
-
- height: 18 * screenScaleFactor
- width: childrenRect.width
- Row
- {
- height: parent.height
- spacing: UM.Theme.getSize("print_setup_slider_handle").width
-
-
- Item
- {
- height: parent.height
- width: 32 * screenScaleFactor
- Rectangle
- {
- anchors.centerIn: parent
- height: parent.height
- width: height
- color: buildplateIcon.visible > 0 ? "transparent" : UM.Theme.getColor("monitor_skeleton_loading")
- radius: Math.floor(height / 2)
- }
- UM.RecolorImage
- {
- id: buildplateIcon
- anchors.centerIn: parent
- color: UM.Theme.getColor("monitor_icon_primary")
- height: UM.Theme.getSize("medium_button_icon").width
- source: UM.Theme.getIcon("Buildplate")
- width: height
- visible: buildplate
- }
- }
- Label
- {
- id: buildplateLabel
- color: UM.Theme.getColor("text")
- elide: Text.ElideRight
- font: UM.Theme.getFont("default")
- text: buildplate ? buildplate : ""
- visible: text !== ""
-
- height: 18 * screenScaleFactor
- verticalAlignment: Text.AlignVCenter
- renderType: Text.NativeRendering
- }
- }
- }
|