#Changing the toggleButton color on toggle (no lua)

1 messages · Page 1 of 1 (latest)

carmine bolt
#

Hello!

Is there a way to change the color a toggle button has when it's toggled? Since the default gray is ugly.

A quick glance at UI's docs (this & that) showed that there's no way to do using attributes.
I also tried to use a "toggleGroup" "toggleSelectedColor" attribute, but it seems to affect nothing. Am I missing something?

Markup:

<Panel width='50' height='50'>
  <ToggleGroup toggleSelectedColor='Red'>
      <ToggleButton colors='White|Green|Blue|Black'/>
  </ToggleGroup>
</Panel>

Thank you in advance for your response :)

reef rose
#

theoretically, the colors attribute should handle that

#

but there are several other color attributes listed there that may help

carmine bolt
carmine bolt
#

OMG, nevermind

reef rose
#

i believe you're wanting to change the color of the icon though, not the background, right?

carmine bolt
carmine bolt
carmine bolt
reef rose
#

yes

carmine bolt
reef rose
#

sure! remember that webpage. if you plan on doing lots of XML, it comes in quite handy