]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/plugins/contextswitches.py
Introduce a colour scheme and fix design of the graphs
[collecty.git] / src / collecty / plugins / contextswitches.py
index 18fa4d80636d214f2e2d540f298fd63009d612d3..c1299aa812baa34839fdf511a584b8c6b01b91e6 100644 (file)
@@ -23,6 +23,7 @@ import re
 
 from . import base
 
+from ..colours import *
 from ..i18n import _
 
 class GraphTemplateContextSwitches(base.GraphTemplate):
@@ -33,10 +34,14 @@ class GraphTemplateContextSwitches(base.GraphTemplate):
                _ = self.locale.translate
 
                return [
-                       "AREA:ctxt#90EE90:%-15s" % _("Context Switches"),
+                       "AREA:ctxt%s:%-15s" % (
+                               util.lighten(PRIMARY, AREA_OPACITY),
+                               _("Context Switches"),
+                       ),
                        "GPRINT:ctxt_max:%12s\:" % _("Maximum") + " %6.2lf" ,
                        "GPRINT:ctxt_min:%12s\:" % _("Minimum") + " %6.2lf" ,
                        "GPRINT:ctxt_avg:%12s\:" % _("Average") + " %6.2lf\\n",
+                       "LINE1:ctxt%s" % PRIMARY,
                ]
 
        lower_limit = 0