QmlProfiler: Remove gradient borders

It just looks so much better with "clean" borders.

Change-Id: I9aae0e6f24556042e23580e224abb696913fc989
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Ulf Hermann
2014-02-24 13:35:05 +01:00
committed by hjk
parent 4251265a63
commit cd85ac700d
7 changed files with 8 additions and 132 deletions

View File

@@ -92,26 +92,9 @@ Canvas {
context.lineTo(width, height-1);
context.stroke();
// gradient borders
var gradientDark = "rgba(0, 0, 0, 0.53125)";
var gradientClear = "rgba(0, 0, 0, 0)";
var grad = context.createLinearGradient(0, 0, 0, 6);
grad.addColorStop(0,gradientDark);
grad.addColorStop(1,gradientClear);
context.fillStyle = grad;
context.fillRect(0, 0, width, 6);
grad = context.createLinearGradient(0, 0, 6, 0);
grad.addColorStop(0,gradientDark);
grad.addColorStop(1,gradientClear);
context.fillStyle = grad;
context.fillRect(0, 0, 6, height);
grad = context.createLinearGradient(width, 0, width-6, 0);
grad.addColorStop(0,gradientDark);
grad.addColorStop(1,gradientClear);
context.fillStyle = grad;
context.fillRect(width-6, 0, 6, height);
// left border
context.fillStyle = "#858585";
context.fillRect(0, 0, 1, height);
}
function prettyPrintTime( t )