27092
|
1 /* |
|
2 |
|
3 Copyright (C) 2011-2019 Michael Goffioul |
|
4 |
|
5 This file is part of QConsole. |
|
6 |
|
7 This program is free software: you can redistribute it and/or modify |
|
8 it under the terms of the GNU General Public License as published by |
|
9 the Free Software Foundation, either version 3 of the License, or |
|
10 (at your option) any later version. |
|
11 |
|
12 This program is distributed in the hope that it will be useful, |
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
15 GNU General Public License for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with this program. If not, |
|
19 see <https://www.gnu.org/licenses/>. |
|
20 |
|
21 */ |
|
22 |
|
23 #include "QGenericTerminalColors.h" |
|
24 |
|
25 ////////////////////////////////////////////////////////////////////////////// |
|
26 |
|
27 QConsoleColors::QConsoleColors (void) |
|
28 : QMap<int, QColor> () |
|
29 { |
|
30 (*this)[0] = Qt::black; |
|
31 (*this)[1] = Qt::darkBlue; |
|
32 (*this)[2] = Qt::darkGreen; |
|
33 (*this)[3] = Qt::darkCyan; |
|
34 (*this)[4] = Qt::darkRed; |
|
35 (*this)[5] = Qt::darkMagenta; |
|
36 (*this)[6] = Qt::darkYellow; |
|
37 (*this)[7] = Qt::lightGray; |
|
38 (*this)[8] = Qt::darkGray; |
|
39 (*this)[9] = Qt::blue; |
|
40 (*this)[10] = Qt::green; |
|
41 (*this)[11] = Qt::cyan; |
|
42 (*this)[12] = Qt::red; |
|
43 (*this)[13] = Qt::magenta; |
|
44 (*this)[14] = Qt::yellow; |
|
45 (*this)[15] = Qt::white; |
|
46 } |