all repos — openbox @ 90239e2bfa0fe28fa55b3c31a6c18ca7939291f7

openbox fork - make it a bit more like ryudo

make the bullet, checkmark, and text, all the same color in the menu
Dana Jansens danakj@orodu.net
commit

90239e2bfa0fe28fa55b3c31a6c18ca7939291f7

parent

62d40248d9e57610279868dea63adf62dac1b351

1 files changed, 5 insertions(+), 7 deletions(-)

jump to
M src/Basemenu.ccsrc/Basemenu.cc

@@ -557,8 +557,11 @@ text_h = menu.item_h - menu.bevel_w;

} 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 @@ hilite_x, hilite_y, hilite_w, hilite_h);

} 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