From kde-panel-devel Thu Sep 22 20:34:04 2016 From: Yichao Yu Date: Thu, 22 Sep 2016 20:34:04 +0000 To: kde-panel-devel Subject: Re: Review Request 114424: Add shadow to lancelot main window when using a qt style which supports k Message-Id: <20160922203404.26270.73376 () mimi ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=147457644826117 --===============4627791743100726297== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/114424/ ----------------------------------------------------------- (Updated Sept. 22, 2016, 8:34 p.m.) Status ------ This change has been discarded. Review request for Plasma, Aaron J. Seigo, Martin Gräßlin, and Ivan Čukić. Bugs: 320995 http://bugs.kde.org/show_bug.cgi?id=320995 Repository: kdeplasma-addons Description ------- The lancelot main window sets the _KDE_NET_WM_SHADOW property to "1" but never set anything valid to it and therefore has no drop shadow. This patch add the shadow when using a qt style that is aware of the KDE shadow hint in the widget's property. I haven't found a documentation for this property but it seems that they are recognized by oxygen and are also copied to qtcurve (and probably bespin, haven't checked). A better solution might be using the plasma shadow although I don't know how to do that without copying the code to install shadows from kdelibs, unless someone adds a new api to apply plasma themed shadows to a window. Diffs ----- applets/lancelot/application/LancelotWindow.cpp c66c565 Diff: https://git.reviewboard.kde.org/r/114424/diff/ Testing ------- Compiles. Have shadow with both oxygen and qtcurve. Thanks, Yichao Yu --===============4627791743100726297== MIME-Version: 1.0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit
This is an automatically generated e-mail. To reply, visit: https://git.reviewboard.kde.org/r/114424/

This change has been discarded.


Review request for Plasma, Aaron J. Seigo, Martin Gräßlin, and Ivan Čukić.
By Yichao Yu.

Updated Sept. 22, 2016, 8:34 p.m.

Bugs: 320995
Repository: kdeplasma-addons

Description

The lancelot main window sets the _KDE_NET_WM_SHADOW property to "1" but never set anything valid to it and therefore has no drop shadow.
This patch add the shadow when using a qt style that is aware of the KDE shadow hint in the widget's property. I haven't found a documentation for this property but it seems that they are recognized by oxygen and are also copied to qtcurve (and probably bespin, haven't checked).
A better solution might be using the plasma shadow although I don't know how to do that without copying the code to install shadows from kdelibs, unless someone adds a new api to apply plasma themed shadows to a window.

Testing

Compiles.
Have shadow with both oxygen and qtcurve.

Diffs

  • applets/lancelot/application/LancelotWindow.cpp (c66c565)

View Diff

--===============4627791743100726297==--