HomeWildfire Games

Implement placeholder text for input fields and get rid of hack with mod filter

Description

Implement placeholder text for input fields and get rid of hack with mod filter

different font colour
no need to delete the text, when one wants to write there something
text displayed is not a value so field is technically empty
will disappear when user writes some character
will appear when user deletes all characters
we can get rid of text value "Filter" in mod selection screen and ugly hack around it

Differential Revision: D2460
Comments by: vladislavbelov, elexis

Event Timeline

bb added a subscriber: bb.Dec 22 2020, 10:56 PM
bb added inline comments.
/ps/trunk/binaries/data/mods/mod/gui/modmod/modmod.xml
21

Why not set it as default in Modern/styles.xml?

Imarok added a subscriber: Imarok.May 22 2021, 3:44 PM
Imarok added inline comments.
/ps/trunk/source/gui/ObjectTypes/CInput.cpp
937

Seems like this setting does not exist for CInput