From fb803563b76ad840f428d625ea2ec6a764277f2e Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Thu, 6 May 2021 01:45:55 +0300 Subject: [PATCH] Better colors for build confirmation estimated cost tooltip --- src/build_confirmation_gui.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/build_confirmation_gui.cpp b/src/build_confirmation_gui.cpp index 58a0617c78..6467fef1e2 100644 --- a/src/build_confirmation_gui.cpp +++ b/src/build_confirmation_gui.cpp @@ -83,16 +83,15 @@ struct BuildInfoWindow : public Window /* Increase slightly to have some space around the box. */ size->width += 2 + WD_FRAMERECT_LEFT + WD_FRAMERECT_RIGHT; - size->height += 2 + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM; + size->height += 6 + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM; } void DrawWidget(const Rect &r, int widget) const override { /* There is only one widget. */ - GfxFillRect(r.left, r.top, r.right, r.bottom, PC_BLACK); - GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, PC_LIGHT_YELLOW); + DrawFrameRect(r.left, r.top, r.right, r.bottom, COLOUR_GREY, FR_NONE); - int top = r.top + WD_FRAMERECT_TOP; + int top = r.top + WD_FRAMERECT_TOP + 4; Money cost = BuildInfoWindow::cost; StringID msg = STR_MESSAGE_ESTIMATED_COST; SetDParam(0, cost);