KColorScheme
kcolorscheme.h
344 explicit KColorScheme(QPalette::ColorGroup = QPalette::Normal, ColorSet = View, KSharedConfigPtr = KSharedConfigPtr());
static void adjustForeground(QPalette &, ForegroundRole newRole=NormalText, QPalette::ColorRole color=QPalette::Text, ColorSet set=View, KSharedConfigPtr=KSharedConfigPtr())
Adjust a QPalette by replacing the specified QPalette::ColorRole with the requested foreground color ...
Definition kcolorscheme.cpp:548
ForegroundRole
This enumeration describes the foreground color being selected from the given set.
Definition kcolorscheme.h:209
@ ActiveText
Third color; for example items which are new, active, requesting attention, etc.
Definition kcolorscheme.h:225
@ NeutralText
Seventh color; for example, warnings, secure/encrypted content.
Definition kcolorscheme.h:248
@ InactiveText
Second color; for example, comments, items which are old, inactive or disabled.
Definition kcolorscheme.h:220
@ NegativeText
Sixth color; for example, errors, untrusted content, deletions, etc.
Definition kcolorscheme.h:244
@ PositiveText
Eighth color; for example, additions, success messages, trusted content.
Definition kcolorscheme.h:253
static QPalette createApplicationPalette(const KSharedConfigPtr &config)
Used to obtain the QPalette that will be used to set the application palette from KDE Platform theme.
Definition kcolorscheme.cpp:580
bool operator==(const KColorScheme &other) const
Definition kcolorscheme.cpp:448
ShadeRole
This enumeration describes the color shade being selected from the given set.
Definition kcolorscheme.h:295
@ LightShade
The light color is lighter than dark() or shadow() and contrasts with the base color.
Definition kcolorscheme.h:300
@ ShadowShade
The shadow color is darker than light() or midlight() and contrasts the base color.
Definition kcolorscheme.h:317
BackgroundRole
This enumeration describes the background color being selected from the given set.
Definition kcolorscheme.h:135
@ PositiveBackground
Eighth color; for example, success messages, trusted content.
Definition kcolorscheme.h:185
@ NeutralBackground
Seventh color; for example, warnings, secure/encrypted content.
Definition kcolorscheme.h:181
@ AlternateBackground
Alternate background; for example, for use in lists.
Definition kcolorscheme.h:146
@ ActiveBackground
Third color; for example, items which are new, active, requesting attention, etc.
Definition kcolorscheme.h:156
@ NegativeBackground
Sixth color; for example, errors, untrusted content, etc.
Definition kcolorscheme.h:177
ColorSet
This enumeration describes the color set for which a color is being selected.
Definition kcolorscheme.h:65
@ Header
Colors for header areas that should be used both by the top toolbar and the titlebar.
Definition kcolorscheme.h:117
static qreal contrastF(const KSharedConfigPtr &config=KSharedConfigPtr())
Returns the contrast for borders as a floating point value.
Definition kcolorscheme.cpp:457
static bool isColorSetSupported(const KSharedConfigPtr &config, KColorScheme::ColorSet set)
Used to check if the color scheme has a given set.
Definition kcolorscheme.cpp:556
QBrush background(BackgroundRole=NormalBackground) const
Retrieve the requested background brush.
Definition kcolorscheme.cpp:463
DecorationRole
This enumeration describes the decoration color being selected from the given set.
Definition kcolorscheme.h:270
@ HoverColor
Color used to draw decorations for items which will be activated by clicking.
Definition kcolorscheme.h:279
@ FocusColor
Color used to draw decorations for items which have input focus.
Definition kcolorscheme.h:274
static void adjustBackground(QPalette &, BackgroundRole newRole=NormalBackground, QPalette::ColorRole color=QPalette::Base, ColorSet set=View, KSharedConfigPtr=KSharedConfigPtr())
Adjust a QPalette by replacing the specified QPalette::ColorRole with the requested background color ...
Definition kcolorscheme.cpp:540
QBrush decoration(DecorationRole) const
Retrieve the requested decoration brush.
Definition kcolorscheme.cpp:473
QColor shade(ShadeRole) const
Retrieve the requested shade color, using KColorScheme::background(KColorScheme::NormalBackground) as...
Definition kcolorscheme.cpp:478
QBrush foreground(ForegroundRole=NormalText) const
Retrieve the requested foreground brush.
Definition kcolorscheme.cpp:468
ColorGroup
ColorRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:38 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:38 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.