Font colors via $VAR[]'s
#1
I'm never sure where the best place to post such things are, as they border on feature requests, bug reports and just plain asking for advice on better ways to accomplish what I want. So, if this would be better elsewhere, please do move it Smile

I'm a great fan of user customisation, and have been playing about with user customisation of text colors using a variable - something like

Code:
    <variable name="selectedColor">
        <value condition="!IsEmpty(Skin.String(selectedColor))">FF$INFO[Skin.String(selectedColor)]</value>
        <value>FFFFFFFF</value>
    </variable>

With all references to the selected color then being (for example)

Code:
    <textcolor>$VAR[selectedColor]</textcolor>

and the color being chosen via a custom window in the skin. Generally this works great, except in two instances (that I've noticed in the ≈12 hours since I implemented this) - label2's on Buttons which display such a label don't use the color (for example, the currently selected skin on the Select Skin button in Settings > Appearance), and the label on Edit controls.

In these cases, the label doesn't appear, suggesting it isn't getting any color value at all. All other instances (that I've tested so far) correctly use the color specified by the variable.

To be clear, I'm developing against the latest Helix nightlies, but have confirmed the same behaviour in the latest Gotham release. Is this a known issue? If so, is there any chance of a fix in Helix? If either of the previous are true, is there any more information I can provide? And if neither are true, can anyone suggest any alternative methods for allowing the user to set the color of text that would apply to label2's and edit controls?

Thanks Smile
Reply


Messages In This Thread
Font colors via $VAR[]'s - by removed151214 - 2014-08-31, 01:34
RE: Font colors via $VAR[]'s - by MassIV - 2014-08-31, 02:11
RE: Font colors via $VAR[]'s - by phil65 - 2014-08-31, 02:13
RE: Font colors via $VAR[]'s - by removed151214 - 2014-08-31, 02:21
RE: Font colors via $VAR[]'s - by phil65 - 2014-08-31, 02:28
RE: Font colors via $VAR[]'s - by removed151214 - 2014-08-31, 02:34
RE: Font colors via $VAR[]'s - by removed151214 - 2014-08-31, 02:57
RE: Font colors via $VAR[]'s - by `Black - 2014-08-31, 22:59
RE: Font colors via $VAR[]'s - by Hitcher - 2014-08-31, 23:50
RE: Font colors via $VAR[]'s - by Chillbo - 2018-12-05, 14:33
RE: Font colors via $VAR[]'s - by removed151214 - 2014-08-31, 23:18
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-06-12, 16:46
RE: Font colors via $VAR[]'s - by User 224999 - 2015-05-18, 22:26
RE: Font colors via $VAR[]'s - by braz - 2015-05-19, 17:35
RE: Font colors via $VAR[]'s - by User 224999 - 2015-05-21, 19:30
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-05-22, 12:16
RE: Font colors via $VAR[]'s - by User 224999 - 2015-05-22, 22:57
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-01, 08:49
RE: Font colors via $VAR[]'s - by User 224999 - 2015-08-01, 13:43
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-08-01, 12:19
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-08-01, 13:46
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-01, 13:51
RE: Font colors via $VAR[]'s - by User 224999 - 2015-08-01, 13:47
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-08-01, 13:56
RE: Font colors via $VAR[]'s - by User 224999 - 2015-08-01, 14:19
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-08-02, 11:21
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-02, 11:26
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-08-02, 11:43
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-02, 11:44
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-08-02, 11:56
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-02, 11:57
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-02, 12:25
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-08-02, 13:18
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-02, 16:37
RE: Font colors via $VAR[]'s - by braz - 2015-08-03, 03:21
RE: Font colors via $VAR[]'s - by Jayz2K - 2015-08-03, 09:24
RE: Font colors via $VAR[]'s - by User 224999 - 2015-08-04, 21:58
RE: Font colors via $VAR[]'s - by braz - 2015-08-03, 02:25
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-03, 08:14
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-03, 09:09
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-03, 09:27
RE: Font colors via $VAR[]'s - by braz - 2015-08-03, 16:27
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-03, 16:29
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-03, 16:34
RE: Font colors via $VAR[]'s - by braz - 2015-08-04, 03:01
RE: Font colors via $VAR[]'s - by mkortstiege - 2015-08-04, 07:44
RE: Font colors via $VAR[]'s - by Atamans - 2021-01-04, 00:40
RE: Font colors via $VAR[]'s - by Atamans - 2021-01-09, 20:45
Logout Mark Read Team Forum Stats Members Help
Font colors via $VAR[]'s0