Change: Rename text colour NWidgetPart to SetTextStyle and add font size.

This allows to set both text colour and size for any widget with default
drawing.
This commit is contained in:
Peter Nelson
2023-04-28 17:59:14 +01:00
committed by PeterN
parent ba3de0383a
commit 35ba49bfb4
6 changed files with 63 additions and 51 deletions

View File

@@ -76,7 +76,7 @@ static inline void DrawFrameRect(const Rect &r, Colours colour, FrameFlags flags
DrawFrameRect(r.left, r.top, r.right, r.bottom, colour, flags);
}
void DrawCaption(const Rect &r, Colours colour, Owner owner, TextColour text_colour, StringID str, StringAlignment align);
void DrawCaption(const Rect &r, Colours colour, Owner owner, TextColour text_colour, StringID str, StringAlignment align, FontSize fs);
/* window.cpp */
using WindowList = std::list<Window *>;