]> Dogcows Code - chaz/openbox/commitdiff
make the bullet, checkmark, and text, all the same color in the menu
authorDana Jansens <danakj@orodu.net>
Thu, 18 Jul 2002 06:47:26 +0000 (06:47 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 18 Jul 2002 06:47:26 +0000 (06:47 +0000)
src/Basemenu.cc

index 228c43c7158cfdb3c930e9bc999a06e79c703a64..57c10fcb65223defa2e2615fc55418b538247e95 100644 (file)
@@ -557,8 +557,11 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
   }
 
   MenuStyle *style = screen->getMenuStyle();
-  BPen pen((highlight || item->isSelected()) ? style->h_text : style->f_text),
-      hipen(style->hilite.color());
+  BPen hipen(style->hilite.color());
+  // match the text color
+  BPen pen((highlight ? style->h_text :
+            (item->isEnabled() ? style->f_text :
+             style->d_text)));
 
 
   sel_x = item_x;
@@ -607,11 +610,6 @@ void Basemenu::drawItem(int index, bool highlight, bool clear,
   }
   
   if (dosel && item->isSelected()) {
-    // match the text color
-    BPen pen((highlight ? style->h_text :
-              (item->isEnabled() ? style->f_text :
-               style->d_text)));
-
       XPoint pts[6];
 
       // put the check mark on the opposite side of the menu
This page took 0.024833 seconds and 4 git commands to generate.