<table><tr><td style="">graesslin created this revision.<br />graesslin added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />Restricted Application added a subscriber: plasma-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D3044" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>So for the _KDE_NET_WM_COLOR_SCHEME property was set in KStyle. This has<br />
a few disadvantages:</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">it only works for QWidgets</li>
<li class="remarkup-list-item">it requires a style inheriting from KStyle</li>
</ul>
<p>This change brings the behavior into the plasma-integration QPT. It's an<br />
integration feature for our platform theme as it's a hint for KWin.</p>
<p>The existing event filter in the X11Integration is used to monitor for<br />
all PlatformSurface events and sets the required property on the newly<br />
created X11 window.</p>
<p>In addition it monitors for the ApplicationPaletteChange to update the<br />
property as needed on all toplevel windows.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Removed code from kstyle and used the KColorSchemeManager test<br />
application.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>rPLASMAINTEGRATION Integration for Qt applications in Plasma</div></div></div><br /><div><strong>BRANCH</strong><div><div>color-scheme-atom</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D3044" rel="noreferrer">https://phabricator.kde.org/D3044</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
autotests/CMakeLists.txt<br />
src/platformtheme/CMakeLists.txt<br />
src/platformtheme/x11integration.cpp<br />
src/platformtheme/x11integration.h</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>graesslin, Plasma<br /><strong>Cc: </strong>plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas<br /></div>