Set color scheme X property in the X11Integration

Authored by graesslin on Oct 13 2016, 6:16 AM.

Description

Set color scheme X property in the X11Integration

Summary:
So for the _KDE_NET_WM_COLOR_SCHEME property was set in KStyle. This has
a few disadvantages:

  • it only works for QWidgets
  • it requires a style inheriting from KStyle

This change brings the behavior into the plasma-integration QPT. It's an
integration feature for our platform theme as it's a hint for KWin.

The existing event filter in the X11Integration is used to monitor for
all PlatformSurface events and sets the required property on the newly
created X11 window.

In addition it monitors for the ApplicationPaletteChange to update the
property as needed on all toplevel windows.

Test Plan:
Removed code from kstyle and used the KColorSchemeManager test
application.

Reviewers: Plasma

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D3044

Details

Committed
graesslinOct 13 2016, 6:22 AM
Differential Revision
D3044: Set color scheme X property in the X11Integration
Parents
R135:3258d996565b: Update version number for 5.8.90 GIT_SILENT
Branches
Unknown
Tags
Unknown