Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
theme_token_handler.h
Go to the documentation of this file.
1
9
10#ifndef THEME_TOKEN_HANDLER_H
11#define THEME_TOKEN_HANDLER_H
12
15
16#include <QHash>
17#include <QList>
18#include <QPalette>
19
54{
55public:
56 using TokenMap = QHash<ThemeManager::ThemeToken, ThemeColorPair>;
58 using SourceMap = QHash<ThemeManager::ThemeToken, const char *>;
59
65 static QColor sideOf(const TokenMap &tokens, ThemeManager::ThemeToken role, bool isDarkMode);
66
98 static void deriveAll(TokenMap &tokens, bool isDarkMode, const QPalette &palette,
99 const ColorMath::ContrastRatios &ratios,
100 SourceMap *sources = nullptr);
101
109 static QList<ThemeManager::ThemeToken> sourceTokens(const char *source);
110};
111
112#endif /* THEME_TOKEN_HANDLER_H */
Definition theme_token_handler.h:54
QHash< ThemeManager::ThemeToken, const char * > SourceMap
Definition theme_token_handler.h:58
static void deriveAll(TokenMap &tokens, bool isDarkMode, const QPalette &palette, const ColorMath::ContrastRatios &ratios, SourceMap *sources=nullptr)
Definition theme_token_handler.cpp:115
static QList< ThemeManager::ThemeToken > sourceTokens(const char *source)
Definition theme_token_handler.cpp:696
static QColor sideOf(const TokenMap &tokens, ThemeManager::ThemeToken role, bool isDarkMode)
Definition theme_token_handler.cpp:108
Definition color_math.h:71