Log in

View Full Version : Default font color on buttons



Pharoid
August 30th, 2023, 03:08
I can't figure out how to change the font color on buttons. My buttons are dark and the font is dark since the update. I got the asset window font fixed. There must be a default font color for button text setting somewhere. I need to change it to "FFFFFF" white. right now its black. I'm looking for something like this in graphics.xml? I need to know the font name in order to override it in a theme extension right?

<font name="buttontext" merge="join">
<color value="000000" />
</font>

or is it something like this in the extention.xml?

DesktopManager.setButtonTextColor("FFFFFF");

Its basically all the buttons fonts so I suspect there's something like the above I'm missing.

I'd RTFM, but I can't find one. :-)

Thanks!

Moon Wizard
August 30th, 2023, 05:00
Try this code in a script in your extension:



ColorManager.setButtonIconColor("FFFFFF");


I'm trying to move the buttons slowly to be dynamically defined, so that we can use a single set of white icons that can be colored as needed when themes/rulesets change the button frames.

Regards,
JPG

Pharoid
August 30th, 2023, 15:54
Adding this fixed it...

<font name="button-white">
<ttf file="graphics/fonts/Noto_Sans/NotoSans-Regular.ttf" name="Noto Sans" size="16" />
<color value="#FFFFFF" />
</font>

Thanks!