mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
Change deactiveStates to inactiveStates
Contributes to CL-1047
This commit is contained in:
parent
79aeca9663
commit
90426749a2
3 changed files with 6 additions and 4 deletions
|
@ -696,13 +696,13 @@ Component
|
||||||
color:
|
color:
|
||||||
{
|
{
|
||||||
var state = modelData.activePrintJob.state
|
var state = modelData.activePrintJob.state
|
||||||
var deactiveStates = [
|
var inactiveStates = [
|
||||||
"pausing",
|
"pausing",
|
||||||
"paused",
|
"paused",
|
||||||
"resuming",
|
"resuming",
|
||||||
"wait_cleanup"
|
"wait_cleanup"
|
||||||
]
|
]
|
||||||
if(deactiveStates.indexOf(state) > -1 && remainingTime > 0)
|
if(inactiveStates.indexOf(state) > -1 && remainingTime > 0)
|
||||||
{
|
{
|
||||||
return UM.Theme.getColor("monitor_secondary_text")
|
return UM.Theme.getColor("monitor_secondary_text")
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ Item
|
||||||
{
|
{
|
||||||
id: base
|
id: base
|
||||||
property var printJob: null
|
property var printJob: null
|
||||||
property var shadowRadius: 5
|
property var shadowRadius: 5 * screenScaleFactor
|
||||||
function getPrettyTime(time)
|
function getPrettyTime(time)
|
||||||
{
|
{
|
||||||
return OutputDevice.formatDuration(time)
|
return OutputDevice.formatDuration(time)
|
||||||
|
|
|
@ -471,6 +471,8 @@
|
||||||
"toolbox_progress_bar": [8.0, 0.5],
|
"toolbox_progress_bar": [8.0, 0.5],
|
||||||
"toolbox_chart_row": [1.0, 2.0],
|
"toolbox_chart_row": [1.0, 2.0],
|
||||||
"toolbox_action_button": [8.0, 2.5],
|
"toolbox_action_button": [8.0, 2.5],
|
||||||
"toolbox_loader": [2.0, 2.0]
|
"toolbox_loader": [2.0, 2.0],
|
||||||
|
|
||||||
|
"drop_shadow_radius": [1.0, 1.0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue