summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-07-18 06:47:26 +0000
committerDana Jansens <danakj@orodu.net>2002-07-18 06:47:26 +0000
commit90239e2bfa0fe28fa55b3c31a6c18ca7939291f7 (patch)
treed3aa3bfd1e72f301514e389957f441e4ff09e1b8
parent62d40248d9e57610279868dea63adf62dac1b351 (diff)
make the bullet, checkmark, and text, all the same color in the menu
-rw-r--r--src/Basemenu.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc
index 228c43c7..57c10fcb 100644
--- a/src/Basemenu.cc
+++ b/src/Basemenu.cc
@@ -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