forked from 4lex4/scantailor-advanced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathColorScheme.h
46 lines (36 loc) · 1.13 KB
/
ColorScheme.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef SCANTAILOR_COLORSCHEME_H
#define SCANTAILOR_COLORSCHEME_H
#include <QStyle>
#include <QtGui/QPalette>
#include <memory>
#include <unordered_map>
class ColorScheme {
public:
virtual ~ColorScheme() = default;
virtual QStyle* getStyle() const = 0;
virtual QPalette getPalette() const = 0;
virtual std::unique_ptr<QString> getStyleSheet() const = 0;
enum ColorParam {
ThumbnailSequenceItemText,
ThumbnailSequenceSelectedItemText,
ThumbnailSequenceSelectedItemBackground,
ThumbnailSequenceSelectionLeaderText,
ThumbnailSequenceSelectionLeaderBackground,
RelinkablePathVisualizationBorder,
OpenNewProjectBorder,
ProcessingIndicationHeadColor,
ProcessingIndicationTail,
ProcessingIndicationFade,
StageListHead,
StageListTail,
FixDpiDialogErrorText
};
using ColorParams = std::unordered_map<ColorParam, QColor, std::hash<int>>;
/**
* List of colors for elements that don't support styling.
*
* @return the list of colors to override the default values by the color scheme
*/
virtual ColorParams getColorParams() const = 0;
};
#endif // SCANTAILOR_COLORSCHEME_H