https://bugs.kde.org/show_bug.cgi?id=384408

            Bug ID: 384408
           Summary: PanelView::setBackgroundHints doesn't update
                    enabledBorders (which means it doesn't toggle the
                    shadows)
           Product: plasmashell
           Version: 5.10.5
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: k...@davidedmundson.co.uk
          Reporter: zrenf...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: 1.0

While fussing with /usr/share/plasma/shells/.../contents/views/Panel.qml, I
tried dynamically disabling the blur+shadows on the panel (using a repeating
timer). I noticed that while the blur effect went away, the shadows did not.

QML:
panel.backgroundHints = Plasma.Types.NoBackground

C++: https://github.com/KDE/plasma-workspace/blame/master/shell/panelview.cpp
setBackgroundHints(Plasma::Types::NoBackground)
emit backgroundHintsChanged()
connect(this, SIGNAL(backgroundHintsChanged()), this, SLOT(themeChanged()));

themeChanged() calls updateMask() but doesn't call updateEnabledBorders().
updateEnabledBorders() is what disables the panel shadow.

PanelView::resizeEvent and PanelView::moveEvent call both "update" functions,
so 

You can test this by editing Panel.qml. Note that "panel" == PanelView.cpp.
Video: https://streamable.com/cishh

I did try resizing the panel, and the shadow did dissappear. However it did not
reappear when I resized it again.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to