BMenuField: Change label to panel text color

...instead of menu item text color when the label is unselected.

Menu item text color seems to make sense when the control is unselected
because we use selected menu item text color when the control is
selected, but, this isn't the case. We color the label background using
the menu item color because we are reproducing similar behavior of
BeOS R5. However, when the menu field is unselected the label needs to
draw so that it goes on the panel bg color.
This commit is contained in:
John Scipione
2016-03-22 11:59:15 -07:00
parent 846a5b0272
commit 59e1b2f4ce
+1 -1
View File
@@ -1089,7 +1089,7 @@ BMenuField::_DrawLabel(BRect updateRect)
FillRect(fillRect, B_SOLID_LOW);
textColor = ui_color(B_MENU_SELECTED_ITEM_TEXT_COLOR);
} else
textColor = ui_color(B_MENU_ITEM_TEXT_COLOR);
textColor = ui_color(B_PANEL_TEXT_COLOR);
be_control_look->DrawLabel(this, label, rect, updateRect, LowColor(), flags,
BAlignment(fAlign, B_ALIGN_MIDDLE), &textColor);