Changeset - r26427:197f9bcb0c32
[Not reviewed]
master
0 2 0
Peter Nelson - 21 months ago 2022-09-23 21:47:50
peter1138@openttd.org
Change: Default widget text colour to black.

TC_FROMSTRING really means blue, and we almost never actually use
blue text.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/network/network_chat_gui.cpp
Show inline comments
 
@@ -508,7 +508,7 @@ static const NWidgetPart _nested_chat_wi
 
		NWidget(WWT_CLOSEBOX, COLOUR_GREY, WID_NC_CLOSE),
 
		NWidget(WWT_PANEL, COLOUR_GREY, WID_NC_BACKGROUND),
 
			NWidget(NWID_HORIZONTAL),
 
				NWidget(WWT_TEXT, COLOUR_GREY, WID_NC_DESTINATION), SetMinimalSize(62, 12), SetPadding(1, 0, 1, 0), SetTextColour(TC_BLACK), SetAlignment(SA_TOP | SA_RIGHT), SetDataTip(STR_NULL, STR_NULL),
 
				NWidget(WWT_TEXT, COLOUR_GREY, WID_NC_DESTINATION), SetMinimalSize(62, 12), SetPadding(1, 0, 1, 0), SetAlignment(SA_TOP | SA_RIGHT), SetDataTip(STR_NULL, STR_NULL),
 
				NWidget(WWT_EDITBOX, COLOUR_GREY, WID_NC_TEXTBOX), SetMinimalSize(100, 12), SetPadding(1, 0, 1, 0), SetResize(1, 0),
 
																	SetDataTip(STR_NETWORK_CHAT_OSKTITLE, STR_NULL),
 
				NWidget(WWT_PUSHTXTBTN, COLOUR_GREY, WID_NC_SENDBUTTON), SetMinimalSize(62, 12), SetPadding(1, 0, 1, 0), SetDataTip(STR_NETWORK_CHAT_SEND, STR_NULL),
src/widget.cpp
Show inline comments
 
@@ -940,7 +940,7 @@ NWidgetCore::NWidgetCore(WidgetType tp, 
 
	this->widget_data = widget_data;
 
	this->tool_tip = tool_tip;
 
	this->scrollbar_index = -1;
 
	this->text_colour = TC_FROMSTRING;
 
	this->text_colour = TC_BLACK;
 
	this->align = SA_CENTER;
 
}
 

	
0 comments (0 inline, 0 general)