robben 0 Newbie Poster

Hi,

I'm currently using Synth and I'm having some problems with sliders. The sliders appear and work fine, although I can't seem to change the color of the ticks and text.
I would like the ticks and text to be orange, but it seems to default to black. I tried changing this in the Slider section of my Synth file (see below) but with no luck.

Would anyone have any suggestions?

Thanks in advance for your help.

<!-- ================================= -->
   <!-- SLIDER TRACK -->
   <!-- ================================= -->
   <style id="SliderTrackStyle">
      <imagePainter method="sliderTrackBackground" path="images/Slider/slider_track.png"
                    sourceInsets="7 7 7 7" destinationInsets="7 7 7 7" paintCenter="true"
                    stretch="true" center="false" />
      <state value="DISABLED">
         <imagePainter method="sliderTrackBackground" path="images/Slider/slider_track_disabled.png"
                       sourceInsets="7 7 7 7" destinationInsets="7 7 7 7" paintCenter="true"
                       stretch="true" center="false" />
      </state>
   </style>
   <bind style="SliderTrackStyle" type="region" key="SliderTrack" />

   <!-- ================================= -->
   <!-- SLIDER THUMB -->
   <!-- ================================= -->
   <style id="SliderThumbStyle">
      <font name="Arial" size="1" style="BOLD"/>
      <state>
         <!-- How do we set the slider text and tick colour -->
         <color type="TEXT_FOREGROUND" value="#8f5f00"/>
         <imagePainter method="sliderThumbBackground" direction="horizontal"
                       path="images/Slider/slider_thumb.png" center="true" />
         <imagePainter method="sliderThumbBackground" direction="vertical"
                       path="images/Slider/slider_thumb.png" center="true" />
      </state>
      <state value="PRESSED">
         <!-- How do we set the slider text and tick colour -->
         <color type="TEXT_FOREGROUND" value="#8f5f00"/>
         <imagePainter method="sliderThumbBackground" direction="horizontal"
                       path="images/Slider/slider_thumb_pressed.png" center="true" />
         <imagePainter method="sliderThumbBackground" direction="vertical"
                       path="images/Slider/slider_thumb_pressed.png" center="true" />
      </state>
      <state value="DISABLED">
         <imagePainter method="sliderThumbBackground" direction="horizontal"
                       path="images/Slider/slider_thumb_disabled.png" center="true" />
         <imagePainter method="sliderThumbBackground" direction="vertical"
                       path="images/slider_thumb_disabled.png" center="true" />
      </state>
   </style>
   <bind style="SliderThumbStyle" type="region" key="SliderThumb" />

   <!-- ================================= -->
   <!-- SLIDER -->
   <!-- ================================= -->
   <style id="SliderStyle">
      <property key="Slider.paintValue" type="boolean" value="false" />
      <property key="Slider.thumbWidth" type="integer" value="14" />
      <property key="Slider.thumbHeight" type="integer" value="14" />

      <!-- Cant seem to set the tick or text color -->
      <!-- <property key="Slider.tickColor" type="color" value="#8a8a00" /> -->
   </style>
   <bind style="SliderStyle" type="region" key="Slider" />
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.