140 PacketsSelectionText,
151 ConversationClientText,
153 ConversationServerText,
175 FilterBookmarkCapture,
196 PaletteAlternateBase,
208 PaletteHighlightedText,
209#if QT_VERSION >= QT_VERSION_CHECK(6, 6, 0)
250 UpdateButtonDisabledBg,
251 UpdateButtonDisabledText,
252 UpdateDismissHoverBg,
253 UpdateDismissPressedBg,
256 HighlightColorOrange,
284 TextOnFilterDeprecated,
331 static void init(
const QString &theme = QString());
338 ThemeInfo
info()
const;
361 QColor
color(ThemeToken role)
const;
363 bool colorIsAvailable(ThemeToken role)
const;
388 QHash<ThemeToken, QColor>
previewTheme(
const QString &internalName,
440 static QString
styleSheet(
const QString &name);
512 QColor graphDefaultColor()
const;
530 static QMutex mutex_;
535 QHash<ThemeManager::ThemeToken, ThemeColorPair> themeColors_;
537 QHash<ThemeManager::ThemeToken, ThemeColorPair> parsedColors_;
538 QList<ThemeColorPair> graphColors_;
540 QHash<QString, ThemeSectionInfo> sections_;
543 QHash<QString, ThemeToken> colorRoleCache_;
544 QHash<QString, QPalette::ColorRole> paletteRoleCache_;
552 SystemThemeDetector *detector_ =
nullptr;
566 QPalette osBaseline_;
578 QPalette baselineForBuild()
const;
586 void reapplyForSchemeChange();
593 static ThemeMode modeFromPrefs(
int gui_color_scheme);
601 void applyToStyleHints();
609 void applyApplicationStyleSheet();
624 bool loadTheme(
const QString &themeName = QString());
Definition system_theme_detector.h:38
static bool isDark()
Definition theme_manager.cpp:367
static void init(const QString &theme=QString())
Definition theme_manager.cpp:256
void setMode(ThemeMode mode)
Definition theme_manager.cpp:412
QColor graphColor(int idx) const
Returns the graph color for the given index, cycling through available graph colors if necessary.
Definition theme_manager.cpp:821
static QString styleSheet(const QString &name)
Definition theme_manager.cpp:614
PreviewScheme
Definition theme_manager.h:108
QString loadStyleSheet(const QString &name) const
Definition theme_manager.cpp:606
ThemeMode
Definition theme_manager.h:86
ThemeMode mode() const
Definition theme_manager.cpp:407
static QString defaultThemeName()
Definition theme_manager.cpp:228
QHash< ThemeToken, QColor > previewTheme(const QString &internalName, PreviewScheme scheme) const
Definition theme_manager.cpp:630
qsizetype graphColorCount() const
Returns the number of graph colors defined in the theme.
Definition theme_manager.cpp:848
bool isDarkMode() const
Definition theme_manager.cpp:372
static void setValidationState(QWidget *w, const QString &state)
Definition theme_manager.cpp:619
static QList< ThemeInfo > availableThemes()
Definition theme_manager.cpp:293
static QString resolveThemeName(const QString &name)
Definition theme_manager.cpp:244
bool validateThemeFile(const QString &filePath) const
Definition theme_manager.cpp:722
ThemeManager(QObject *parent=nullptr)
Definition theme_manager.cpp:88
ThemeInfo info() const
Definition theme_manager.cpp:288
QColor color(ThemeToken role) const
Definition theme_manager.cpp:523
Definition theme_manager.h:38
Definition theme_manager.h:25
int version
Schema version (currently 1).
Definition theme_manager.h:28
QString name
Display name, e.g. "Wireshark Default".
Definition theme_manager.h:26
QString author
Theme author or organization.
Definition theme_manager.h:30
QString description
One-line description shown in preferences.
Definition theme_manager.h:29
QString internalName
Internal name, e.g. "default".
Definition theme_manager.h:27
Definition theme_manager.h:33