# Making scrollbar background transparent?

**URL:** <https://forum.juce.com/t/making-scrollbar-background-transparent/7543>\
**Category:** General JUCE discussion\
**Created:** [October 7, 2011, 8:11pm UTC](https://forum.juce.com/t/making-scrollbar-background-transparent/7543 "2011-10-07T20:11:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mike/32/629_2.png) [@Mike](https://forum.juce.com/u/Mike)\
**Post date:** [October 7, 2011, 8:11pm UTC](https://forum.juce.com/t/making-scrollbar-background-transparent/7543/1 "2011-10-07T20:11:12Z")

</div>

Hi,  
I have a couple of ViewPorts with dynamically changing content and there is always a ScrollBar visible somewhere.  
Showing the scrollbar is fine, but in this case it’s obscuring the underlying view a bit. Other than changing the size I also  
wish to make the ScrollBar background slightly transparent, but for my life I can’t figure out how!? It would appear  
the scrollbar in a viewport is overlaid on a white background so it can never be transparent as such.  
Also I don’t want the button to be transparent, only the background ,so chaging the opacity for the whole  
scrollbar is not what I’m looking for.

Anyone know how to do this?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [October 7, 2011, 8:40pm UTC](https://forum.juce.com/t/making-scrollbar-background-transparent/7543/2 "2011-10-07T20:40:44Z")

</div>

You’d need to create a custom lookandfeel for it.

---

<div class="post-metadata">

**Author:** ![Mike](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mike/32/629_2.png) [@Mike](https://forum.juce.com/u/Mike)\
**Post date:** [October 8, 2011, 12:39pm UTC](https://forum.juce.com/t/making-scrollbar-background-transparent/7543/3 "2011-10-08T12:39:54Z")

</div>

Actually, it would seem that’s not enough. The ViewPort places the Content Component beside the scrollbars, not under it, so there is currently no way to make them blend into each other…or I could have read the code wrong?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [October 8, 2011, 12:52pm UTC](https://forum.juce.com/t/making-scrollbar-background-transparent/7543/4 "2011-10-08T12:52:01Z")

</div>

Ah yes, maybe. In that case, not sure what to suggest, it’d require some significant changes.

---

<div class="post-metadata">

**Author:** ![Mike](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mike/32/629_2.png) [@Mike](https://forum.juce.com/u/Mike)\
**Post date:** [October 8, 2011, 1:02pm UTC](https://forum.juce.com/t/making-scrollbar-background-transparent/7543/5 "2011-10-08T13:02:38Z")

</div>

Maybe we’ll just scroll some other way. Thanks anyway!
