While it works nicely in a zoomed-in state (most and 2nd most zoomed-in), it doesn't change the colour of the town names in the two zoomed-out states. But I'd consider a colour change at those zoom levels actually most useful as at those zoomlevels I decide where I'm going to continue building.
The solution probably is to add the colour also to the string used in those two zoom states. My guess is that it uses a different one as the font size changes - which is part of the string definition in OpenTTD.
EDIT: hm... during compilation I get a warning for many language:
Code: Select all
/Users/ingo/ottd/clientpatches/src/lang/latvian.txt:1673: warning: STR_TOWN_LABEL_POP: template string and language string have a different # of commands