[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Aug 12 23:34:46 CEST 2004


CVS commit by arwalker: 

Removed the hard-coded "slate gray" color for the tied zoom box.
It now uses an average of the foreground and background colors.
For the standard black and white plots this is "slate gray" so the
default behaviour is unchanged.

Fixes 87076.


  M +3 -1      kst2dplot.cpp   1.222


--- kdeextragear-2/kst/kst/kst2dplot.cpp  #1.221:1.222
@@ -1331,5 +1331,7 @@ void Kst2DPlot::updateTieBox(QPainter& p
   p.setPen(foregroundColor());
   if (isTied()) {
-    p.fillRect(tr, QColor("slate gray"));
+    p.fillRect(tr, QColor((foregroundColor().red() + backgroundColor().red()) / 2,
+                          (foregroundColor().green() + backgroundColor().green()) / 2,
+                          (foregroundColor().blue() + backgroundColor().blue()) / 2));
   } else {
     p.fillRect(tr, backgroundColor());





More information about the Kst mailing list