mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-21 03:12:41 +01:00
Change: Draw info headers as shade of window colour instead of pixel colour. (#14123)
Use the normal or lightest colour gradient to pick a suitable colour, instead of an arbitrary pixel colour. (Except for the NewGRF window's info panel, this happens to be the same colour.)
This commit is contained in:
@@ -623,8 +623,8 @@ public:
|
||||
tr.top += header_height;
|
||||
|
||||
/* Draw the right menu */
|
||||
/* Create the nice grayish rectangle at the details top */
|
||||
GfxFillRect(r.WithHeight(header_height).Shrink(WidgetDimensions::scaled.bevel), PC_DARK_BLUE);
|
||||
/* Create the nice darker rectangle at the details top */
|
||||
GfxFillRect(r.WithHeight(header_height).Shrink(WidgetDimensions::scaled.bevel), GetColourGradient(COLOUR_LIGHT_BLUE, SHADE_NORMAL));
|
||||
hr.top = DrawStringMultiLine(hr, header_msg, TC_FROMSTRING, SA_HOR_CENTER);
|
||||
if (sel == nullptr) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user