ViewItem: Make HighlightRadius truly a radius
[pulseview.git] / pv / view / tracepalette.cpp
1 /*
2  * This file is part of the PulseView project.
3  *
4  * Copyright (C) 2013 Joel Holdsworth <joel@airwebreathe.org.uk>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
19  */
20
21 #include "tracepalette.hpp"
22
23 namespace pv {
24 namespace view {
25
26 const QColor TracePalette::Colours[Cols * Rows] = {
27
28         // Light Colours
29         QColor(0xFC, 0xE9, 0x4F),       // Butter
30         QColor(0xFC, 0xAF, 0x3E),       // Orange
31         QColor(0xE9, 0xB9, 0x6E),       // Chocolate
32         QColor(0x8A, 0xE2, 0x34),       // Chameleon
33         QColor(0x72, 0x9F, 0xCF),       // Sky Blue
34         QColor(0xAD, 0x7F, 0xA8),       // Plum
35         QColor(0xCF, 0x72, 0xC3),       // Magenta
36         QColor(0xEF, 0x29, 0x29),       // Scarlet Red
37
38         // Mid Colours
39         QColor(0xED, 0xD4, 0x00),       // Butter
40         QColor(0xF5, 0x79, 0x00),       // Orange
41         QColor(0xC1, 0x7D, 0x11),       // Chocolate
42         QColor(0x73, 0xD2, 0x16),       // Chameleon
43         QColor(0x34, 0x65, 0xA4),       // Sky Blue
44         QColor(0x75, 0x50, 0x7B),       // Plum
45         QColor(0xA3, 0x34, 0x96),       // Magenta
46         QColor(0xCC, 0x00, 0x00),       // Scarlet Red
47
48         // Dark Colours
49         QColor(0xC4, 0xA0, 0x00),       // Butter
50         QColor(0xCE, 0x5C, 0x00),       // Orange
51         QColor(0x8F, 0x59, 0x02),       // Chocolate
52         QColor(0x4E, 0x9A, 0x06),       // Chameleon
53         QColor(0x20, 0x4A, 0x87),       // Sky Blue
54         QColor(0x5C, 0x35, 0x66),       // Plum
55         QColor(0x87, 0x20, 0x7A),       // Magenta
56         QColor(0xA4, 0x00, 0x00),       // Scarlet Red
57
58         // Greys
59         QColor(0x16, 0x19, 0x1A),       // Black
60         QColor(0x2E, 0x34, 0x36),       // Grey 1
61         QColor(0x55, 0x57, 0x53),       // Grey 2
62         QColor(0x88, 0x8A, 0x8F),       // Grey 3
63         QColor(0xBA, 0xBD, 0xB6),       // Grey 4
64         QColor(0xD3, 0xD7, 0xCF),       // Grey 5
65         QColor(0xEE, 0xEE, 0xEC),       // Grey 6
66         QColor(0xFF, 0xFF, 0xFF),       // White
67 };
68
69 } // view
70 } // pv