[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kde-workspace/plasma/sreich/qml2-system-monitors] plasma/generic/applets/system-monitor/plotter/pri
From: Shaun Reich <shaun.reich () kdemail ! net>
Date: 2012-02-16 13:37:02
Message-ID: 20120216133702.E6F55A60C6 () git ! kde ! org
[Download RAW message or body]
Git commit 5b6fe2810d6451403c58813b6abbd483ef6909a7 by Shaun Reich.
Committed on 16/02/2012 at 06:26.
Pushed by sreich into branch 'plasma/sreich/qml2-system-monitors'.
add a vertical linear gradient, adjust opacity on fill
it looks quite nice now
M +4 -0 plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
http://commits.kde.org/kde-workspace/5b6fe2810d6451403c58813b6abbd483ef6909a7
diff --git a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js \
b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js index \
eab1b4f..0f22bf6 100644
--- a/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
+++ b/plasma/generic/applets/system-monitor/plotter/private/plotterpainter.js
@@ -262,6 +262,10 @@ function drawLines()
context.lineTo(0, height - graphPadding);
context.closePath();
+ var grd = context.createLinearGradient(graphPadding, graphPadding, graphPadding, \
height - graphPadding); + grd.addColorStop(0, "rgba(0, 255, 0, 0.5)");
+ grd.addColorStop(1, "rgba(0, 180, 0, 0.2)");
+ context.fillStyle = grd;
context.fill();
context.stroke();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic