33#include <QApplication>
35#include <QStandardPaths>
36#include <QDirIterator>
39#include <QExplicitlySharedDataPointer>
42#include <QActionGroup>
46#if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
47# pragma GCC diagnostic push
48# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
51#if defined(Q_CC_CLANG)
52# pragma clang diagnostic push
53# pragma clang diagnostic ignored "-Wdeprecated-declarations"
56#include <ksharedconfig.h>
57#include <kactioncollection.h>
58#include <kconfiggroup.h>
59#include <klocalizedstring.h>
62#if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
63# pragma GCC diagnostic pop
66#if defined(Q_CC_CLANG)
67# pragma clang diagnostic pop
78class SchemeManagerPrivate;
186 NormalBackground = 0,
193 AlternateBackground = 1,
203 ActiveBackground = 2,
220 VisitedBackground = 4,
224 NegativeBackground = 5,
228 NeutralBackground = 6,
232 PositiveBackground = 7
378 KSharedConfigPtr config = KSharedConfigPtr());
415 static int contrast();
424 static qreal contrastF(
const KSharedConfigPtr& config = KSharedConfigPtr());
436 static QColor shade(
const QColor&,
ShadeRole);
455 static QColor shade(
const QColor&,
458 qreal chromaAdjust = 0.0);
469 static void adjustBackground(QPalette&,
471 QPalette::ColorRole color = QPalette::Base,
473 const KSharedConfigPtr& config = KSharedConfigPtr());
484 static void adjustForeground(QPalette&,
486 QPalette::ColorRole color = QPalette::Text,
488 const KSharedConfigPtr& config = KSharedConfigPtr());
498 static QPalette createApplicationPalette(
const KSharedConfigPtr& config);
502 QExplicitlySharedDataPointer<SchemeManagerPrivate> d;
513 QPixmap createSchemePreviewIcon(
const KSharedConfigPtr& config)
const;
520 QActionGroup* themeMenuActionGroup =
nullptr;
521 QMenu* themeMenuAction =
nullptr;
Definition thememanager_p.h:111
ColorSet
Definition thememanager_p.h:122
@ View
Definition thememanager_p.h:128
@ Button
Definition thememanager_p.h:142
@ Tooltip
Definition thememanager_p.h:159
@ Window
Definition thememanager_p.h:134
@ Selection
Definition thememanager_p.h:150
DecorationRole
Definition thememanager_p.h:309
@ FocusColor
Definition thememanager_p.h:313
BackgroundRole
Definition thememanager_p.h:182
ForegroundRole
Definition thememanager_p.h:252
ShadeRole
Definition thememanager_p.h:330
@ MidShade
Definition thememanager_p.h:343
@ MidlightShade
Definition thememanager_p.h:339
@ LightShade
Definition thememanager_p.h:335
@ DarkShade
Definition thememanager_p.h:347
Definition thememanager_p.h:508
const QString defaultThemeName
Definition thememanager_p.h:517
QMap< QString, QString > themeMap
map<theme name, theme config path>
Definition thememanager_p.h:518
Definition thememanager.h:36
Definition datefolderview.cpp:34