changeset 2738:a17f921c4327

don't say 'FL_GRAY' because it's a misleading term
author corvid <corvid@lavabit.com>
date Mon, 31 Dec 2012 20:24:41 +0000
parents 8c2845cee119
children 3897bcd54db2
files dw/fltkviewport.cc src/ui.cc
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewport.cc	Mon Dec 31 20:17:26 2012 +0000
+++ b/dw/fltkviewport.cc	Mon Dec 31 20:24:41 2012 +0000
@@ -218,7 +218,7 @@
          draw_child (*vscrollbar);
 
          if (d == FL_DAMAGE_ALL && hdiff && vdiff) {
-            fl_color(FL_GRAY);
+            fl_color(FL_BACKGROUND_COLOR);
             fl_rectf(x()+w()-hdiff, y()+h()-vdiff, hdiff, vdiff);
          }
       }
--- a/src/ui.cc	Mon Dec 31 20:17:26 2012 +0000
+++ b/src/ui.cc	Mon Dec 31 20:24:41 2012 +0000
@@ -409,17 +409,17 @@
    if (!icons->ImgLeftIn) {
       icons->ImgLeftIn = icons->ImgLeft->copy();
       icons->ImgLeftIn->desaturate();
-      icons->ImgLeftIn->color_average(FL_GRAY, .1f);
+      icons->ImgLeftIn->color_average(FL_BACKGROUND_COLOR, .1f);
    }
    if (!icons->ImgRightIn) {
       icons->ImgRightIn = icons->ImgRight->copy();
       icons->ImgRightIn->desaturate();
-      icons->ImgRightIn->color_average(FL_GRAY, .1f);
+      icons->ImgRightIn->color_average(FL_BACKGROUND_COLOR, .1f);
    }
    if (!icons->ImgStopIn) {
       icons->ImgStopIn = icons->ImgStop->copy();
       icons->ImgStopIn->desaturate();
-      icons->ImgStopIn->color_average(FL_GRAY, .1f);
+      icons->ImgStopIn->color_average(FL_BACKGROUND_COLOR, .1f);
    }
    Back = make_button("Back", icons->ImgLeft, icons->ImgLeftIn, UI_BACK, 1);
    Forw = make_button("Forw", icons->ImgRight, icons->ImgRightIn, UI_FORW);