KColorSchemeWatcher Class

Information about system-wide color preferences. More...

Header: #include <KColorSchemeWatcher>
CMake: find_package(KF6 REQUIRED COMPONENTS GuiAddons)
target_link_libraries(mytarget PRIVATE KF6::GuiAddons)
Since: 5.100
Inherits: QObject

Public Types

enum ColorPreference { NoPreference, PreferDark, PreferLight }

Public Functions

KColorSchemeWatcher::ColorPreference systemPreference() const

Signals

Detailed Description

Member Type Documentation

enum KColorSchemeWatcher::ColorPreference

ConstantValueDescription
KColorSchemeWatcher::NoPreference0No preference available
KColorSchemeWatcher::PreferDark1The user prefers a dark color scheme
KColorSchemeWatcher::PreferLight2The user prefers a light color scheme

Member Function Documentation

KColorSchemeWatcher::ColorPreference KColorSchemeWatcher::systemPreference() const

The system-wide color preference.

[signal] void KColorSchemeWatcher::systemPreferenceChanged()

Emitted when systemPreference changes.