Page 1 of 1

Widget Colors

Posted: Sun Oct 27, 2013 12:02 pm
by reaperrr
It bugged me that most widgets are hard-coded to white text (grey when disabled), so with some careful copy-pasting from the LabelWidget code and some adjustments I've successfully changed that for the ButtonWidget and will apply that to other Widgets where possible.
However, I have difficulties with the CheckboxWidget. The text is not a problem, but the check remains white. What do I have to do to change that?

Posted: Sun Oct 27, 2013 12:26 pm
by Scott_NZ
Checkbox depends on 'checkbox-bits' with a field named 'checked'.
Take RA as an example. It has the following in chrome.yaml:

Code: Select all

checkbox-bits: buttons.png
	checked: 0,112,16,16
The check art itself is in uibits/buttons.png at (0,112).

Posted: Sun Oct 27, 2013 3:05 pm
by reaperrr
Ah, I see. I really should have known better than to look at buttons.png with Windows Preview/Paint, which translates transparency to white :roll:

Thanks. Lesson learned, I guess...