Configuration override improvements

Contributes to CL-1124
This commit is contained in:
Ian Paschal 2018-11-05 12:15:17 +01:00
parent 90726ecbff
commit 4f10b7809a

View file

@ -355,7 +355,7 @@ Item {
anchors.fill: parent; anchors.fill: parent;
elide: Text.ElideRight; elide: Text.ElideRight;
color: UM.Theme.getColor("text"); color: UM.Theme.getColor("text");
font: UM.Theme.getFont("large_nonbold"); font: UM.Theme.getFont("medium");
text: { text: {
if (!printJob || printJob.configurationChanges.length === 0) { if (!printJob || printJob.configurationChanges.length === 0) {
return ""; return "";
@ -398,6 +398,22 @@ Item {
bottom: parent.bottom; bottom: parent.bottom;
left: parent.left; left: parent.left;
} }
background: Rectangle {
border {
color: UM.Theme.getColor("monitor_lining_heavy");
width: UM.Theme.getSize("default_lining").width;
}
color: parent.hovered ? UM.Theme.getColor("monitor_card_background_inactive") : UM.Theme.getColor("monitor_card_background");
implicitHeight: UM.Theme.getSize("default_margin").height * 3;
implicitWidth: UM.Theme.getSize("default_margin").height * 8;
}
contentItem: Label {
color: UM.Theme.getColor("text");
font: UM.Theme.getFont("medium");
horizontalAlignment: Text.AlignHCenter;
text: parent.text;
verticalAlignment: Text.AlignVCenter;
}
onClicked: { onClicked: {
overrideConfirmationDialog.visible = true; overrideConfirmationDialog.visible = true;
} }