Fix 25f1c97bea: Incorrect background colour in badge configuration list. (#14850)

Provide correct widget colour instead of assuming COLOUR_GREY.
This commit is contained in:
Peter Nelson
2025-12-03 14:38:20 +00:00
committed by GitHub
parent 7e046f112b
commit bd338d6e42
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -444,7 +444,7 @@ void PickerWindow::OnClick(Point pt, WidgetID widget, int)
case WID_PW_CONFIGURE_BADGES:
if (this->badge_classes.GetClasses().empty()) break;
ShowDropDownList(this, BuildBadgeClassConfigurationList(this->badge_classes, 1, {}), -1, widget, 0, DropDownOption::Persist);
ShowDropDownList(this, BuildBadgeClassConfigurationList(this->badge_classes, 1, {}, COLOUR_DARK_GREEN), -1, widget, 0, DropDownOption::Persist);
break;
default:
@@ -466,7 +466,7 @@ void PickerWindow::OnDropdownSelect(WidgetID widget, int index, int click_result
this->ReInit();
if (reopen) {
ReplaceDropDownList(this, BuildBadgeClassConfigurationList(this->badge_classes, 1, {}), -1);
ReplaceDropDownList(this, BuildBadgeClassConfigurationList(this->badge_classes, 1, {}, COLOUR_DARK_GREEN), -1);
} else {
this->CloseChildWindows(WC_DROPDOWN_MENU);
}