Rework printer cards (cont)

Contributes to CL-1051
This commit is contained in:
Ian Paschal 2018-09-28 17:00:50 +02:00
parent b5c893c08e
commit 7c01e632df
7 changed files with 641 additions and 624 deletions

View file

@ -0,0 +1,21 @@
import QtQuick 2.3
import QtQuick.Controls 2.0
import UM 1.3 as UM
Item {
id: root;
property var enabled: true;
width: parent.width;
height: childrenRect.height;
Rectangle {
anchors {
left: parent.left;
leftMargin: UM.Theme.getSize("default_margin").width;
right: parent.right;
rightMargin: UM.Theme.getSize("default_margin").width;
}
color: root.enabled ? UM.Theme.getColor("monitor_lining_inactive") : UM.Theme.getColor("monitor_lining_active");
height: UM.Theme.getSize("default_lining").height;
}
}