Thank you for following up! I just tested the first issue again (slider marker, slider, and label colors all changing to specified col when slider is type rating) without making changes, and got the error “rgb is undefined”. Looking back at the slider, somehow the color in the Appearance tab was “$None”-- not sure how that happened since I never changed it to none.
Anyway once I gave that a color, it behaves as you said. Previously I used a light blue color to make sure I knew what I was controlling vs default color settings and the whole thing changed to light blue-- so who knows, maybe it overwrote the accidental $None and is no longer doing that, fine by me!
For the second issue mentioned, what I’m seeing is that using:
qn_slider1._skin.WHITE_ON_BLACK.MARKER_COLOR = new util.Color([-1, 0.004, 1]);
on the first slider in a routine changes the slider marker for the current routine, but will also change the slider marker color for the following sliders in subsequent routines. So it seems like at least for slider._skin.WHITE_ON_BLACK, it’s actually behaving like slider.Skin.WHITE_ON_BLACK. If I add another slider._skin.WHITE_ON_BLACK to a subsequent slider it changes appropriately, but if I don’t, that second slider marker will use the color from the previous slider marker.
That is wonderful to have a more general approach, I feel like I’m using so much repeat code to all sliders maintain many of the same characteristics (but need to be in different routines due to positioning, sizes, random/sequential orders, etc.).
visual.Slider.Skin.STANDARD.MARKER_COLOR: works as expected-- writing this once a code component for the first slider maintains the specified marker color for the remaining sliders-- great!
– does not work for rating sliders (doesn’t change marker size, but also no errors).
– does work for radio sliders. The code is in the routine that contains a rating slider (which it doesn’t affect), but it changes the size of a later radio slider. However, I’m realizing now that slider._skin.MARKER_SIZE actually doesn’t work for slider type radio (the size does not change), but visual.Slider.skin does.
qn_slider1._skin.MARKER_SIZE = [0.05, 0.05];
This is the radio slider size (and this is the same as if I don’t have any radio slider marker size customisation):
visual.Slider.Skin.MARKER_SIZE = [0.05, 0.05];
Now this is the radio slider size:
Again, these are all things I can work around but letting you know what I’ve tested. If you’d prefer to test with a pre-made example I can send it to you.