CL-474 Fix the image used for the camera icon

Subtask of CL-457 Cura plugin: primary visual improvements
This commit is contained in:
Simon Edwards 2017-10-01 12:01:08 +02:00
parent 553a309d23
commit 5865d52000
2 changed files with 25 additions and 9 deletions

View file

@ -136,15 +136,28 @@ Rectangle
anchors.right: printProgressArea.left
anchors.rightMargin: UM.Theme.getSize("default_margin").width
color: emphasisColor
UM.RecolorImage
Image
{
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
width: 40 * screenScaleFactor
height: width
anchors.right: printProgressArea.left
anchors.rightMargin: UM.Theme.getSize("default_margin").width
source: "camera-icon.svg"
width: sourceSize.width
height: sourceSize.height * width / sourceSize.width
color: "white"
}
// FIXME: Currently using Image instead of UM.RecolorImage because RecolorImage has
// the bad side effect of scaling/shrinking the image on my HiDPI laptop screen(!)
// UM.RecolorImage
// {
// anchors.verticalCenter: parent.verticalCenter
// anchors.horizontalCenter: parent.horizontalCenter
// source: "camera-icon.svg"
// width: sourceSize.width
// height: sourceSize.height * width / sourceSize.width
// color: "white"
// }
}
Row // PrintCode config