# Change color of Slider marker

**URL:** <https://discourse.psychopy.org/t/change-color-of-slider-marker/9009>\
**Category:** Online experiments\
**Created:** [September 11, 2019, 7:31am UTC](https://discourse.psychopy.org/t/change-color-of-slider-marker/9009 "2019-09-11T07:31:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![huppfi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/huppfi/32/3735_2.png) [@huppfi](https://discourse.psychopy.org/u/huppfi)\
**Post date:** [September 11, 2019, 7:31am UTC](https://discourse.psychopy.org/t/change-color-of-slider-marker/9009/1 "2019-09-11T07:31:17Z")

</div>

URL of experiment: In general.

Description of the problem: Is there any way to change the color of the Slider marker circle from Red to anything else?

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [September 11, 2019, 8:31am UTC](https://discourse.psychopy.org/t/change-color-of-slider-marker/9009/2 "2019-09-11T08:31:19Z")

</div>

Hi @huppfi, you could change the appearance settings in the slider componenet dialog to "white on “black”. Alternatively, in a code component.:

```auto
slider.marker.color = 'green'

```

---

<div class="post-metadata">

**Author:** ![huppfi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/huppfi/32/3735_2.png) [@huppfi](https://discourse.psychopy.org/u/huppfi)\
**Post date:** [September 11, 2019, 8:57am UTC](https://discourse.psychopy.org/t/change-color-of-slider-marker/9009/3 "2019-09-11T08:57:19Z")

</div>

The problem is that my background is white so I need the circle to be black or grey.

Also the code does not seem to work in an Online Study.

---

<div class="post-metadata">

**Author:** ![lcrible](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/lcrible/32/6233_2.png) [@lcrible](https://discourse.psychopy.org/u/lcrible)\
**Post date:** [February 3, 2020, 4:48pm UTC](https://discourse.psychopy.org/t/change-color-of-slider-marker/9009/4 "2020-02-03T16:48:09Z")

</div>

Hello there,  
Did you find a solution in the end? I can’t find any way to make the tick/answer visible on my slider. The four possible circles/answers always show up white online, only the labels change colour, and still no visible marker for the selected answer.  
I also saw that it was an issue with the “Force end of routine”, but I would like to keep that option.  
Does anyone have the solution to this?  
Thanks

---

<div class="post-metadata">

**Author:** ![haaleemur](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@haaleemur](https://discourse.psychopy.org/u/haaleemur)\
**Post date:** [September 24, 2020, 7:51pm UTC](https://discourse.psychopy.org/t/change-color-of-slider-marker/9009/5 "2020-09-24T19:51:34Z")

</div>

Does anyone have a solution for how to do this online? so far, selecting ‘triangle marker’ seems to work because it is red by default so shows up on a white background.

---

<div class="post-metadata">

**Author:** ![sawal](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/sawal/32/10159_2.png) [@sawal](https://discourse.psychopy.org/u/sawal)\
**Post date:** [September 24, 2020, 8:33pm UTC](https://discourse.psychopy.org/t/change-color-of-slider-marker/9009/6 "2020-09-24T20:33:36Z")

</div>

Hi @haaleemur, see [this post](https://discourse.psychopy.org/t/psychopy-2020-2-2-did-we-lose-slider-code-component-fx-slider-buildslider/15819/8) that will work for at least version 2020.2.2 & 2020.2.3 to change slider marker color online.
