Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • You can apply a style to every instance of a particular UI element by specifying that the style apply to the tag name of the UI element.
    		<style applyTo="button">
         <normal backgroundColor="#0080FF" />
    </style> 
  • You can apply a style to a class as set on the element.

     

    An applyTo attribute starting with a period indicates that the style applies to a class rather than a tag name.

    		<style applyTo=".my-style"> 
        <normal backgroundColor="#FF0000" /> 
    </style> 

    The my-style class in the following example represents a class you can set on individual XAL elements in the UI. (The period in the XAL itself is optional.) <button class="my-style"/> or <button class=".my-style"/>

  • You can specify a comma-separated list of the tag names and classes, rather than a single tag name or class for theapplyTo attribute of a style.
    		<style applyTo="button,label,.my-style" >
        <normal backgroundColor="#0000FF" />
    </style>

...