Mercurial > public > ostc4
annotate Discovery/Inc/gfx_colors.h @ 820:7322adb00305
Split definition of custom views:
In the previous version the T7 and T3 custom views were defined using the same enum. As result an ID shift may happen causing errors in the selection of the big font views.
The second reason to split the definition is that shift operations are used in uint32_t variable (limit 32). The total number of current views is 27 => splitting will avoid ID problems in case new views are added.
author | Ideenmodellierer |
---|---|
date | Sun, 24 Sep 2023 18:43:12 +0200 |
parents | 998529b3e142 |
children |
rev | line source |
---|---|
38 | 1 /////////////////////////////////////////////////////////////////////////////// |
2 /// -*- coding: UTF-8 -*- | |
3 /// | |
4 /// \file Discovery/Inc/gfx_colors.h | |
5 /// \brief Header file of gfx_ccolors.h with all color RGBs defined | |
6 /// \author heinrichs weikamp gmbh | |
7 /// \date 02-May-2014 | |
8 /// | |
9 /// $Id$ | |
10 /////////////////////////////////////////////////////////////////////////////// | |
11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh | |
12 /// | |
13 /// This program is free software: you can redistribute it and/or modify | |
14 /// it under the terms of the GNU General Public License as published by | |
15 /// the Free Software Foundation, either version 3 of the License, or | |
16 /// (at your option) any later version. | |
17 /// | |
18 /// This program is distributed in the hope that it will be useful, | |
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 /// GNU General Public License for more details. | |
22 /// | |
23 /// You should have received a copy of the GNU General Public License | |
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>. | |
25 ////////////////////////////////////////////////////////////////////////////// | |
26 | |
27 /* Define to prevent recursive inclusion -------------------------------------*/ | |
28 #ifndef GFX_COLORS_H | |
29 #define GFX_COLORS_H | |
30 | |
31 /* Includes ------------------------------------------------------------------*/ | |
32 | |
33 #include "stdint.h" | |
34 | |
35 /* Exported types ------------------------------------------------------------*/ | |
36 | |
37 typedef enum | |
38 { | |
39 CLUT_Font020 = 0, | |
40 CLUT_Font021, | |
41 CLUT_Font022, | |
42 CLUT_Font023, | |
43 CLUT_WarningYellow, | |
44 CLUT_WarningRed, | |
45 CLUT_NiceGreen, | |
46 CLUT_Font027, // DIVE Main | |
47 CLUT_Font030, // Plugin Box Main | |
48 CLUT_Font031, // Plugin Box Grey | |
49 CLUT_Font032, // DIVE_LabelColor | |
50 CLUT_DIVE_FieldSeperatorLines, | |
51 CLUT_DIVE_pluginbox, | |
52 CLUT_NiceBlue, | |
53 CLUT_DIVE_SPARE22, | |
54 CLUT_DiveMainLabel, | |
55 CLUT_pluginboxSurface, | |
56 CLUT_MenuLineUnselected, | |
57 CLUT_MenuLineUnselectedSeperator, | |
58 CLUT_MenuLineSelected, | |
59 CLUT_MenuEditLineSelected, | |
60 CLUT_MenuLineSelectedSides, | |
61 CLUT_MenuLineSelectedSeperator, | |
62 CLUT_MenuTopBackground, | |
63 CLUT_Group0, | |
64 CLUT_MenuEditCursor, | |
65 CLUT_MenuEditInfo, | |
66 CLUT_MenuEditActive, | |
67 CLUT_MenuEditButtonColor1, | |
68 CLUT_MenuEditFieldRegular, | |
69 CLUT_MenuEditFieldSelected, | |
70 CLUT_MenuEditField0, | |
71 CLUT_MenuEditField1, | |
72 CLUT_MenuEditField2, | |
73 CLUT_MenuEditField3, | |
74 CLUT_MenuEditField4, | |
75 CLUT_MenuEditField5, | |
76 CLUT_MenuEditField6, | |
77 CLUT_MenuEditField7, | |
78 CLUT_MenuEditField8, | |
79 CLUT_MenuEditField9, | |
80 CLUT_MenuEditDigit, | |
81 CLUT_MenuPageGasOC, | |
82 CLUT_MenuPageGasCC, | |
83 CLUT_MenuPageGasSP, | |
84 CLUT_MenuPageXtra, | |
85 CLUT_MenuPageDeco, | |
86 CLUT_MenuPageDecoParameter, | |
87 CLUT_MenuPageHardware, | |
88 CLUT_MenuPageSystem, | |
506
998529b3e142
Added new top level menu for customization of views
Ideenmodellierer
parents:
38
diff
changeset
|
89 CLUT_MenuPageCustomView, |
38 | 90 CLUT_MenuPageDivePlanner, |
91 CLUT_MenuPage10, | |
92 CLUT_ButtonSymbols, | |
93 CLUT_InfoSurface, | |
94 CLUT_InfoDive, | |
95 CLUT_InfoCompass, | |
96 CLUT_InfoCursor, | |
97 CLUT_InfoInActive, | |
98 CLUT_InfoActive, | |
99 CLUT_InfoButtonColor1, | |
100 CLUT_InfoFieldRegular, | |
101 CLUT_InfoFieldSelected, | |
102 CLUT_InfoField0, | |
103 CLUT_InfoField1, | |
104 CLUT_InfoField2, | |
105 CLUT_InfoField3, | |
106 CLUT_InfoField4, | |
107 CLUT_InfoField5, | |
108 CLUT_InfoField6, | |
109 CLUT_InfoField7, | |
110 CLUT_InfoField8, | |
111 CLUT_InfoField9, | |
112 CLUT_InfoPageLogbook, | |
113 CLUT_LogbookGrid, | |
114 CLUT_LogbookText, | |
115 CLUT_LogbookTemperature, | |
116 CLUT_GasSensor0, | |
117 CLUT_GasSensor1, | |
118 CLUT_GasSensor2, | |
119 CLUT_GasSensor3, | |
120 CLUT_GasSensor4, | |
121 CLUT_GasSensor5, | |
122 CLUT_GasSensor6, | |
123 CLUT_GasSensor7, | |
124 CLUT_GasSensor8, | |
125 CLUT_GasSensor9, | |
126 CLUT_GasSensor10, | |
127 CLUT_GasSensor11, | |
128 CLUT_GasSensor12, | |
129 CLUT_GasSensor13, | |
130 CLUT_GasSensor14, | |
131 CLUT_GasSensor15, | |
132 CLUT_CompassUserBackHeadingTick, | |
133 CLUT_CompassSubTick, | |
134 CLUT_CompassNorthTick, | |
135 CLUT_CompassUserHeadingTick, | |
136 CLUT_EverythingOkayGreen, | |
137 CLUT_ButtonSurfaceScreen, | |
138 CLUT_BatteryStandard, | |
139 CLUT_BatteryCharging, | |
140 CLUT_BatteryProblem, | |
141 CLUT_Colorscheme0, | |
142 CLUT_Colorscheme0x1, | |
143 CLUT_Colorscheme0x2, | |
144 CLUT_Colorscheme0x3, | |
145 CLUT_Colorscheme0x4, | |
146 CLUT_Colorscheme0x5, | |
147 CLUT_Colorscheme0x6, | |
148 CLUT_Colorscheme0x7, | |
149 CLUT_Colorscheme1, | |
150 CLUT_Colorscheme1x1, | |
151 CLUT_Colorscheme1x2, | |
152 CLUT_Colorscheme1x3, | |
153 CLUT_Colorscheme1x4, | |
154 CLUT_Colorscheme1x5, | |
155 CLUT_Colorscheme1x6, | |
156 CLUT_Colorscheme1x7, | |
157 CLUT_Colorscheme2, | |
158 CLUT_Colorscheme2x1, | |
159 CLUT_Colorscheme2x2, | |
160 CLUT_Colorscheme2x3, | |
161 CLUT_Colorscheme2x4, | |
162 CLUT_Colorscheme2x5, | |
163 CLUT_Colorscheme2x6, | |
164 CLUT_Colorscheme2x7, | |
165 CLUT_Colorscheme3, | |
166 CLUT_Colorscheme3x1, | |
167 CLUT_Colorscheme3x2, | |
168 CLUT_Colorscheme3x3, | |
169 CLUT_Colorscheme3x4, | |
170 CLUT_Colorscheme3x5, | |
171 CLUT_Colorscheme3x6, | |
172 CLUT_Colorscheme3x7, | |
173 CLUT_END | |
174 } SCLUT_Content; | |
175 | |
176 | |
177 /* Exported variables --------------------------------------------------------*/ | |
178 | |
179 extern uint32_t ColorLUT[]; | |
180 | |
181 #endif /* GFX_COLORS_H */ |