forked from qt-creator/qt-creator
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user