# Still no way to get rid of that drop shadow on Slider's PopupDisplayComponent?

**URL:** <https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026>\
**Category:** General JUCE discussion\
**Created:** [December 1, 2020, 5:31pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026 "2020-12-01T17:31:06Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathieudemange](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mathieudemange/32/13333_2.png) [@mathieudemange](https://forum.juce.com/u/mathieudemange)\
**Post date:** [December 1, 2020, 5:31pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/1 "2020-12-01T17:31:07Z")

</div>

Hi,

It’s a pity that the drop shadow under a Slider’s PopupDisplayComponent still can’t be disabled using the API.

Any chance this could be changed in a near future?

---

<div class="post-metadata">

**Author:** ![jakemumu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jakemumu/32/13038_2.png) [@jakemumu](https://forum.juce.com/u/jakemumu)\
**Post date:** [December 1, 2020, 6:38pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/2 "2020-12-01T18:38:50Z")

</div>

you can disable it:

```auto
int MyLookAndFeel::getMenuWindowFlags()
{
   return 0;
}

```

---

<div class="post-metadata">

**Author:** ![mathieudemange](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mathieudemange/32/13333_2.png) [@mathieudemange](https://forum.juce.com/u/mathieudemange)\
**Post date:** [December 1, 2020, 8:32pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/3 "2020-12-01T20:32:10Z")

</div>

I’m sorry but this has nothing to do with it.

A `Slider` has its own `PopupDisplayComponent`, which is based on `BubbleComponent`. `BubbleComponent`'s constructor is self explanatory:

```auto
BubbleComponent::BubbleComponent()
  : allowablePlacements (above | below | left | right)
{
    setInterceptsMouseClicks (false, false);

    shadow.setShadowProperties (DropShadow (Colours::black.withAlpha (0.35f), 5, Point<int>()));
    setComponentEffect (&shadow);
}

```

It adds a shadow effect on itself and there’s nothing you can do against it without patching the library (which is not an option).

Any insight?

---

<div class="post-metadata">

**Author:** ![jakemumu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jakemumu/32/13038_2.png) [@jakemumu](https://forum.juce.com/u/jakemumu)\
**Post date:** [December 1, 2020, 8:54pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/4 "2020-12-01T20:54:38Z")

</div>

Ahh I see,

Apologies I’ve never used that piece of the class, the popups by default also have a drop shadow and it took a bit to figure out how to disable them.

I usually wrap my knobs up in a parent component and manage my popups / label interactions etc through that parent. That might do you the best here if you want to have a custom UX. I always found the slider a bit unwieldy with all It can do internally.

Best to treat it as a slider and nothing more imo.

---

<div class="post-metadata">

**Author:** ![mathieudemange](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mathieudemange/32/13333_2.png) [@mathieudemange](https://forum.juce.com/u/mathieudemange)\
**Post date:** [December 1, 2020, 9:04pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/5 "2020-12-01T21:04:09Z")

</div>

I get your point. But somehow, I found it quite frustrating to have such a forced UI design decision hard coded within JUCE, where it could be easily customisable.

---

<div class="post-metadata">

**Author:** ![jakemumu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/jakemumu/32/13038_2.png) [@jakemumu](https://forum.juce.com/u/jakemumu)\
**Post date:** [December 1, 2020, 9:24pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/6 "2020-12-01T21:24:15Z")

</div>

Well…

This would be gross but there is a hook to get the component.

```auto
Component* Slider::getCurrentPopupDisplay() const noexcept { return pimpl->popupDisplay.get(); }

```

If you look at how it sets the drop shadow effect on the bubble component:

```auto
setComponentEffect (&shadow);

```

So you can likely get the current bubble component when it’s set visible and clear that effect.

something like:

```auto
slider-> getCurrentPopupDisplay->setComponentEffect(nullptr);

```

---

<div class="post-metadata">

**Author:** ![alatar](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@alatar](https://forum.juce.com/u/alatar)\
**Post date:** [February 19, 2021, 6:21pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/7 "2021-02-19T18:21:20Z")

</div>

Bumping this, because I just ran into the same issue.  
Would also wish, there was a way to turn off the drop shadow on the slider popup.

---

<div class="post-metadata">

**Author:** ![mathieudemange](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mathieudemange/32/13333_2.png) [@mathieudemange](https://forum.juce.com/u/mathieudemange)\
**Post date:** [November 22, 2022, 9:04pm UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/8 "2022-11-22T21:04:56Z")

</div>

Giving this one a gentle bump. I still can’t find any decent reason why this arbitrary design decision is hardcoded into JUCE. Hope it can be removed someday.

---

<div class="post-metadata">

**Author:** ![kisielk](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kisielk/32/1492_2.png) [@kisielk](https://forum.juce.com/u/kisielk)\
**Post date:** [November 23, 2022, 7:23am UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/9 "2022-11-23T07:23:09Z")

</div>

Yes this has also annoyed me. Seems like it’s something that should be overrideable through LookAndFeel

---

<div class="post-metadata">

**Author:** ![mathieudemange](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mathieudemange/32/13333_2.png) [@mathieudemange](https://forum.juce.com/u/mathieudemange)\
**Post date:** [November 23, 2022, 7:55am UTC](https://forum.juce.com/t/still-no-way-to-get-rid-of-that-drop-shadow-on-sliders-popupdisplaycomponent/43026/10 "2022-11-23T07:55:41Z")

</div>

Yes it should, so it would be coherent with to the overall LookAndFeel philosophy.
