From 59e1b2f4cee698cf58d6610c62880512ebd755db Mon Sep 17 00:00:00 2001 From: John Scipione Date: Tue, 22 Mar 2016 09:29:19 -0700 Subject: [PATCH] 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. --- src/kits/interface/MenuField.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/MenuField.cpp b/src/kits/interface/MenuField.cpp index 62aa993415..ae3812fc56 100644 --- a/src/kits/interface/MenuField.cpp +++ b/src/kits/interface/MenuField.cpp @@ -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);