Kstars
schememanager.h
112 };
175 };
239 };
261 };
295 };
304 // Don't use dtor with default keyword here because it breaks the PIMPL pattern and refactoring is needed
316 explicit SchemeManager(QPalette::ColorGroup, ColorSet = View, KSharedConfigPtr = KSharedConfigPtr());
ColorSet
This enumeration describes the color set for which a color is being selected.
Definition schememanager.h:64
QBrush background(BackgroundRole=NormalBackground) const
Retrieve the requested background brush.
Definition schememanager.cpp:966
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 schememanager.cpp:1051
static qreal contrastF(const KSharedConfigPtr &config=KSharedConfigPtr())
Returns the contrast for borders as a floating point value.
Definition schememanager.cpp:954
BackgroundRole
This enumeration describes the background color being selected from the given set.
Definition schememanager.h:124
@ PositiveBackground
Eigth color; for example, success messages, trusted content.
Definition schememanager.h:174
@ AlternateBackground
Alternate background; for example, for use in lists.
Definition schememanager.h:135
@ ActiveBackground
Third color; for example, items which are new, active, requesting attention, etc.
Definition schememanager.h:145
@ NegativeBackground
Sixth color; for example, errors, untrusted content, etc.
Definition schememanager.h:166
@ NeutralBackground
Seventh color; for example, warnings, secure/encrypted content.
Definition schememanager.h:170
ForegroundRole
This enumeration describes the foreground color being selected from the given set.
Definition schememanager.h:194
@ InactiveText
Second color; for example, comments, items which are old, inactive or disabled.
Definition schememanager.h:205
@ ActiveText
Third color; for example items which are new, active, requesting attention, etc.
Definition schememanager.h:210
@ NegativeText
Sixth color; for example, errors, untrusted content, deletions, etc.
Definition schememanager.h:229
@ NeutralText
Seventh color; for example, warnings, secure/encrypted content.
Definition schememanager.h:233
@ PositiveText
Eigth color; for example, additions, success messages, trusted content.
Definition schememanager.h:238
SchemeManager & operator=(const SchemeManager &)
Standard assignment operator.
Definition schememanager.cpp:892
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 schememanager.cpp:1059
DecorationRole
This enumeration describes the decoration color being selected from the given set.
Definition schememanager.h:251
@ HoverColor
Color used to draw decorations for items which will be activated by clicking.
Definition schememanager.h:260
@ FocusColor
Color used to draw decorations for items which have input focus.
Definition schememanager.h:255
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 schememanager.cpp:1067
QColor shade(ShadeRole) const
Retrieve the requested shade color, using SchemeManager::background(SchemeManager::NormalBackground) ...
Definition schememanager.cpp:981
QBrush decoration(DecorationRole) const
Retrieve the requested decoration brush.
Definition schememanager.cpp:976
ShadeRole
This enumeration describes the color shade being selected from the given set.
Definition schememanager.h:272
@ LightShade
The light color is lighter than dark() or shadow() and contrasts with the base color.
Definition schememanager.h:277
@ ShadowShade
The shadow color is darker than light() or midlight() and contrasts the base color.
Definition schememanager.h:294
QBrush foreground(ForegroundRole=NormalText) const
Retrieve the requested foreground brush.
Definition schememanager.cpp:971
SchemeManager(const SchemeManager &)
Construct a copy of another SchemeManager.
Definition schememanager.cpp:884
ColorGroup
ColorRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:40 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.