Changeset View
Changeset View
Standalone View
Standalone View
src/plasma/private/theme_p.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | // the system colors theme is used to cache unthemed svgs with colorization needs | 42 | // the system colors theme is used to cache unthemed svgs with colorization needs | ||
43 | // these svgs do not follow the theme's colors, but rather the system colors | 43 | // these svgs do not follow the theme's colors, but rather the system colors | ||
44 | const char ThemePrivate::systemColorsTheme[] = "internal-system-colors"; | 44 | const char ThemePrivate::systemColorsTheme[] = "internal-system-colors"; | ||
45 | #if HAVE_X11 | 45 | #if HAVE_X11 | ||
46 | EffectWatcher *ThemePrivate::s_backgroundContrastEffectWatcher = nullptr; | 46 | EffectWatcher *ThemePrivate::s_backgroundContrastEffectWatcher = nullptr; | ||
47 | #endif | 47 | #endif | ||
48 | 48 | | |||
49 | ThemePrivate *ThemePrivate::globalTheme = nullptr; | 49 | ThemePrivate *ThemePrivate::globalTheme = nullptr; | ||
50 | QAtomicInt ThemePrivate::globalThemeRefCount = QAtomicInt(); | | |||
51 | QHash<QString, ThemePrivate *> ThemePrivate::themes = QHash<QString, ThemePrivate *>(); | 50 | QHash<QString, ThemePrivate *> ThemePrivate::themes = QHash<QString, ThemePrivate *>(); | ||
52 | QHash<QString, QAtomicInt> ThemePrivate::themesRefCount = QHash<QString, QAtomicInt>(); | | |||
53 | 51 | | |||
54 | ThemePrivate::ThemePrivate(QObject *parent) | 52 | ThemePrivate::ThemePrivate(QObject *parent) | ||
55 | : QObject(parent), | 53 | : QObject(parent), | ||
56 | colorScheme(QPalette::Active, KColorScheme::Window, KSharedConfigPtr(nullptr)), | 54 | colorScheme(QPalette::Active, KColorScheme::Window, KSharedConfigPtr(nullptr)), | ||
57 | selectionColorScheme(QPalette::Active, KColorScheme::Selection, KSharedConfigPtr(nullptr)), | 55 | selectionColorScheme(QPalette::Active, KColorScheme::Selection, KSharedConfigPtr(nullptr)), | ||
58 | buttonColorScheme(QPalette::Active, KColorScheme::Button, KSharedConfigPtr(nullptr)), | 56 | buttonColorScheme(QPalette::Active, KColorScheme::Button, KSharedConfigPtr(nullptr)), | ||
59 | viewColorScheme(QPalette::Active, KColorScheme::View, KSharedConfigPtr(nullptr)), | 57 | viewColorScheme(QPalette::Active, KColorScheme::View, KSharedConfigPtr(nullptr)), | ||
60 | complementaryColorScheme(QPalette::Active, KColorScheme::Complementary, KSharedConfigPtr(nullptr)), | 58 | complementaryColorScheme(QPalette::Active, KColorScheme::Complementary, KSharedConfigPtr(nullptr)), | ||
▲ Show 20 Lines • Show All 831 Lines • Show Last 20 Lines |