Fix Rectangles that always show as white regardless of the theme

This commit is contained in:
fieldOfView 2017-01-23 23:38:48 +01:00
parent 26ad2c8f6e
commit bf3d3d46e2
5 changed files with 12 additions and 3 deletions

View file

@ -15,12 +15,13 @@ Rectangle
id: base;
UM.I18nCatalog { id: catalog; name:"cura"}
color: "transparent"
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
property bool printerAcceptsCommands: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands
property real progress: printerConnected ? Cura.MachineManager.printerOutputDevices[0].progress : 0
property int backendState: UM.Backend.state
property bool showProgress: {
// determine if we need to show the progress bar + percentage
if(!printerConnected || !printerAcceptsCommands) {