Commit ce7dc258 authored by animtim's avatar animtim Committed by Mortier Benoit
Browse files

update timeout colors

update timeout colors
Showing with 10 additions and 8 deletions
+10 -8
...@@ -564,20 +564,22 @@ function setProgressPie(context, percent) ...@@ -564,20 +564,22 @@ function setProgressPie(context, percent)
{ {
context.clearRect(0, 0, 22, 22); context.clearRect(0, 0, 22, 22);
var r = "FF"; var r = "3D";
var g = "FF"; var g = "AE";
var b = "FF"; var b = "E9";
// Fade yellow // Fade orange
if (percent > 50) { if (percent > 50) {
d = 255 - parseInt((percent-50) * 255 / 50) r = "F6"
b = d.toString(16); g = "74"
b = "00";
} }
// Fade red // Fade red
if (percent > 75) { if (percent > 75) {
d = 255 - parseInt((percent-75) * 255 / 25) r = "ED"
g = d.toString(16); g = "15"
b = "15";
} }
context.strokeStyle = "#" + r + g + b context.strokeStyle = "#" + r + g + b
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment