25 #ifndef DIGIKAM_THEME_MANAGER_P_H
26 #define DIGIKAM_THEME_MANAGER_P_H
38 #include <QStringList>
43 #include <QApplication>
45 #include <QStandardPaths>
46 #include <QDirIterator>
49 #include <QExplicitlySharedDataPointer>
52 #include <QActionGroup>
56 #if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
57 # pragma GCC diagnostic push
58 # pragma GCC diagnostic ignored "-Wdeprecated-declarations"
61 #if defined(Q_CC_CLANG)
62 # pragma clang diagnostic push
63 # pragma clang diagnostic ignored "-Wdeprecated-declarations"
66 #include <ksharedconfig.h>
67 #include <kactioncollection.h>
68 #include <kconfiggroup.h>
69 #include <klocalizedstring.h>
72 #if !defined(Q_OS_DARWIN) && defined(Q_CC_GNU)
73 # pragma GCC diagnostic pop
76 #if defined(Q_CC_CLANG)
77 # pragma clang diagnostic pop
88 class SchemeManagerPrivate;
196 NormalBackground = 0,
203 AlternateBackground = 1,
213 ActiveBackground = 2,
230 VisitedBackground = 4,
234 NegativeBackground = 5,
238 NeutralBackground = 6,
242 PositiveBackground = 7
388 KSharedConfigPtr config = KSharedConfigPtr());
425 static int contrast();
434 static qreal contrastF(
const KSharedConfigPtr& config = KSharedConfigPtr());
465 static QColor
shade(
const QColor&,
468 qreal chromaAdjust = 0.0);
479 static void adjustBackground(QPalette&,
481 QPalette::ColorRole color = QPalette::Base,
483 const KSharedConfigPtr& config = KSharedConfigPtr());
494 static void adjustForeground(QPalette&,
496 QPalette::ColorRole color = QPalette::Text,
498 const KSharedConfigPtr& config = KSharedConfigPtr());
508 static QPalette createApplicationPalette(
const KSharedConfigPtr& config);
512 QExplicitlySharedDataPointer<SchemeManagerPrivate> d;
523 QPixmap createSchemePreviewIcon(
const KSharedConfigPtr& config)
const;
Definition: thememanager_p.h:121
ColorSet
Definition: thememanager_p.h:132
@ View
Definition: thememanager_p.h:138
@ Button
Definition: thememanager_p.h:152
@ Tooltip
Definition: thememanager_p.h:169
@ Window
Definition: thememanager_p.h:144
@ Selection
Definition: thememanager_p.h:160
DecorationRole
Definition: thememanager_p.h:319
@ FocusColor
Definition: thememanager_p.h:323
BackgroundRole
Definition: thememanager_p.h:192
ForegroundRole
Definition: thememanager_p.h:262
ShadeRole
Definition: thememanager_p.h:340
@ MidShade
Definition: thememanager_p.h:353
@ MidlightShade
Definition: thememanager_p.h:349
@ LightShade
Definition: thememanager_p.h:345
@ DarkShade
Definition: thememanager_p.h:357
Definition: thememanager_p.h:518
const QString defaultThemeName
Definition: thememanager_p.h:527
QMap< QString, QString > themeMap
map<theme name, theme config path>
Definition: thememanager_p.h:528
QActionGroup * themeMenuActionGroup
Definition: thememanager_p.h:530
QMenu * themeMenuAction
Definition: thememanager_p.h:531
Definition: thememanager.h:46
Definition: datefolderview.cpp:43