-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolorpalette.cpp
More file actions
34 lines (29 loc) · 795 Bytes
/
colorpalette.cpp
File metadata and controls
34 lines (29 loc) · 795 Bytes
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
#include "colorpalette.h"
ColorPalette& ColorPalette::getInstance() {
static ColorPalette instance;
return instance;
}
ColorPalette::ColorPalette() {
//setDarkTheme();
setLightTheme();
}
void ColorPalette::setLightTheme() {
def = QColor(249, 249, 249);
high = QColor(238, 238, 238);
mouse = QColor(228, 228, 228);
sel = QColor(128, 193, 142);
font = QColor(11, 11, 11);
stroke = QColor(16,16,16);
canvas = def;
target = QColor(214, 130, 130);
}
void ColorPalette::setDarkTheme() {
def = QColor(65, 65, 65);
high = QColor(75, 75, 75);
mouse = QColor(95, 95, 95);
sel = QColor(211, 139, 72);
font = QColor(249, 249, 249);
stroke = QColor(232,232,232);
canvas = def;
target = QColor(214, 130, 130);
}