blob: 10fc27e458f649850c7f54e7b16d8babe55c3cb7 [file] [log] [blame]
kthacker62e146c2006-04-17 15:11:35 +00001 /*
2 * Copyright (c) 2003, Adam Dunkels.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above
11 * copyright notice, this list of conditions and the following
12 * disclaimer in the documentation and/or other materials provided
13 * with the distribution.
14 * 3. The name of the author may not be used to endorse or promote
15 * products derived from this software without specific prior
16 * written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
19 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
22 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
24 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
26 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * This file is part of the Contiki desktop OS for the C64
31 *
32 * $Id: ctk-hires-theme-blueround.c,v 1.1 2006/04/17 15:11:51 kthacker Exp $
33 *
34 */
35
36#include <conio.h>
37#include "ctk-hires-theme.h"
38
39#define COLOR(bg, fg) ((fg << 4) | (bg))
40
41#define BGCOLOR1 0x06
42#define BGCOLOR2 0x00
43#define BGCOLOR3 0x06
44#define BGCOLOR4 0x00
45
46struct ctk_hires_theme ctk_hires_theme =
47 {
48 /* Version string. */
49 /* char version[8]; */
50 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
51
52 /* Window borders patterns. */
53 /* unsigned char ulcorner[8], */ /* Upper left corner. */
54 {0xfe,0xf8,0xe0,0xc0,0xc0,0x80,0x80,0x00},
55
56 /* titlebar[8], */ /* Title bar pattern. */
57 {0x00,0x55,0xaa,0x00,0xaa,0x00,0x00,0x00},
58
59 /* urcorner[8], */ /* Upper right corner. */
60 {0x7f,0x1f,0x07,0x03,0x03,0x01,0x01,0x00},
61
62 /* rightborder[8], */ /* Right border. */
63 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
64
65 /* lrcorner[8], */ /* Lower right corner. */
66 {0x00,0x01,0x01,0x03,0x03,0x07,0x1f,0x7f},
67
68 /* lowerborder[8], */ /* Lower border. */
69 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
70
71 /* llcorner[8], */ /* Lower left corner. */
72 {0x00,0x80,0x80,0xc0,0xc0,0xe0,0xf8,0xfe},
73
74 /* leftborder[8]; */ /* Left border. */
75 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
76
77 /* Button corner patterns. */
78 /* unsigned char buttonleft[8], */
79 {0x03,0x0f,0x1f,0x1f,0x1f,0x1f,0x0f,0x03},
80
81 /* buttonright[8]; */
82 {0xc0,0xf0,0xf8,0xf8,0xf8,0xf8,0xf0,0xc0},
83
84 /* Menu border patterns. */
85 /* unsigned char menuleftpattern[8], */
86 {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
87
88 /* menurightpatterns[8]; */
89 {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
90
91 /* Window and widget colors. */
92 /* unsigned char windowcolors[6], */
93 {COLOR(COLOR_BLACK, COLOR_BLACK),
94 COLOR(COLOR_BLACK, COLOR_BLACK),
95 COLOR(COLOR_BLUE, COLOR_BLACK),
96 COLOR(COLOR_BLUE, COLOR_BLACK),
97 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE),
98 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE)},
99
100 /* separatorcolors[6], */
101 {COLOR(COLOR_BLACK, COLOR_BLUE),
102 COLOR(COLOR_BLACK, COLOR_BLUE),
103 COLOR(COLOR_BLUE, COLOR_BLACK),
104 COLOR(COLOR_BLUE, COLOR_BLACK),
105 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE),
106 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE)},
107
108 /* labelcolors[6], */
109 {COLOR(COLOR_BLACK, COLOR_BLUE),
110 COLOR(COLOR_BLACK, COLOR_BLUE),
111 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
112 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
113 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE),
114 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE)},
115
116 /* buttoncolors[6], */
117 {COLOR(COLOR_BLUE, COLOR_BLACK),
118 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
119 COLOR(COLOR_LIGHTBLUE, COLOR_BLACK),
120 COLOR(COLOR_LIGHTBLUE, COLOR_CYAN),
121 COLOR(COLOR_BLUE, COLOR_BLACK),
122 COLOR(COLOR_BLUE, COLOR_CYAN)},
123
124 /* hyperlinkcolors[6], */
125 {COLOR(COLOR_BLACK, COLOR_BLUE),
126 COLOR(COLOR_BLACK, COLOR_BLUE),
127 COLOR(COLOR_BLUE, COLOR_CYAN),
128 COLOR(COLOR_BLUE, COLOR_WHITE),
129 COLOR(COLOR_LIGHTBLUE, COLOR_CYAN),
130 COLOR(COLOR_LIGHTBLUE, COLOR_WHITE)},
131
132 /* textentrycolors[6], */
133 {COLOR(COLOR_BLACK, COLOR_BLUE),
134 COLOR(COLOR_BLACK, COLOR_LIGHTBLUE),
135 COLOR(COLOR_BLACK, COLOR_LIGHTBLUE),
136 COLOR(COLOR_BLACK, COLOR_CYAN),
137 COLOR(COLOR_WHITE, COLOR_BLUE),
138 COLOR(COLOR_WHITE, COLOR_BLACK)},
139
140 /* bitmapcolors[6], */
141 {COLOR(COLOR_BLUE, COLOR_BLACK),
142 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
143 COLOR(COLOR_LIGHTBLUE, COLOR_BLACK),
144 COLOR(COLOR_LIGHTBLUE, COLOR_CYAN),
145 COLOR(COLOR_LIGHTBLUE, COLOR_BLACK),
146 COLOR(COLOR_LIGHTBLUE, COLOR_CYAN)},
147
148 /* textmapcolors[6], */
149 {COLOR(COLOR_BLACK, COLOR_BLUE),
150 COLOR(COLOR_BLACK, COLOR_BLUE),
151 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
152 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
153 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE),
154 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE)},
155
156 /* iconcolors[6]; */
157 {COLOR(COLOR_BLUE, COLOR_BLACK),
158 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
159 COLOR(COLOR_LIGHTBLUE, COLOR_BLACK),
160 COLOR(COLOR_LIGHTGREEN, COLOR_LIGHTBLUE),
161 COLOR(COLOR_LIGHTBLUE, COLOR_BLACK),
162 COLOR(COLOR_LIGHTBLUE, COLOR_CYAN)},
163
164
165 /* Button corner colors. */
166 /* unsigned char buttonleftcolors[6], */
167 {COLOR(COLOR_BLACK, COLOR_BLUE),
168 COLOR(COLOR_BLACK, COLOR_BLUE),
169 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
170 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
171 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE),
172 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE)},
173
174 /* buttonrightcolors[6]; */
175 {COLOR(COLOR_BLACK, COLOR_BLUE),
176 COLOR(COLOR_BLACK, COLOR_BLUE),
177 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
178 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
179 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE),
180 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE)},
181
182
183 /* Menu colors. */
184 /* unsigned char menucolor,*/
185 COLOR(COLOR_BLUE, COLOR_LIGHTBLUE),
186
187 /* openmenucolor, */
188 COLOR(COLOR_LIGHTBLUE, COLOR_BLUE),
189
190 /* activemenucolor; */
191 COLOR(COLOR_CYAN, COLOR_BLUE),
192
193 /* Border and screen colors. */
194 /* unsigned char bordercolor,*/
195 0,
196
197 /* screencolor; */
198 0,
199
200 /* Pointer sprite 0 color */
201 /*unsigned char pointermaskcolor,*/
202 3,
203
204 /* Pointer sprite 1 color */
205 /* pointercolor; */
206 6,
207
208
209 /* Pointer sprite. */
210 /* unsigned char pointer[128]; */
211 {0x00, 0x00, 0x00,
212 0x40, 0x00, 0x00,
213 0x60, 0x00, 0x00,
214 0x70, 0x00, 0x00,
215 0x78, 0x00, 0x00,
216 0x7c, 0x00, 0x00,
217 0x70, 0x00, 0x00,
218 0x58, 0x00, 0x00,
219 0x18, 0x00, 0x00,
220 0x00, 0x00, 0x00,
221 0x00, 0x00, 0x00,
222 0x00, 0x00, 0x00,
223 0x00, 0x00, 0x00,
224 0x00, 0x00, 0x00,
225 0x00, 0x00, 0x00,
226 0x00, 0x00, 0x00,
227 0x00, 0x00, 0x00,
228 0x00, 0x00, 0x00,
229 0x00, 0x00, 0x00,
230 0x00, 0x00, 0x00,
231 0x00, 0x00, 0x00,
232 0x00,
233
234 0xc0, 0x00, 0x00,
235 0xe0, 0x00, 0x00,
236 0xf0, 0x00, 0x00,
237 0xf8, 0x00, 0x00,
238 0xfc, 0x00, 0x00,
239 0xfe, 0x00, 0x00,
240 0xfe, 0x00, 0x00,
241 0xfc, 0x00, 0x00,
242 0xfc, 0x00, 0x00,
243 0x3c, 0x00, 0x00,
244 0x00, 0x00, 0x00,
245 0x00, 0x00, 0x00,
246 0x00, 0x00, 0x00,
247 0x00, 0x00, 0x00,
248 0x00, 0x00, 0x00,
249 0x00, 0x00, 0x00,
250 0x00, 0x00, 0x00,
251 0x00, 0x00, 0x00,
252 0x00, 0x00, 0x00,
253 0x00, 0x00, 0x00,
254 0x00, 0x00, 0x00,
255 0x00 },
256
257
258
259 /* Background pattern fill. */
260 /* unsigned char backgroundpattern[8*25]; */
261 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
262 0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,
263 0x00,0x00,0x10,0x38,0x10,0x00,0x00,0x00,
264 0x00,0x00,0x18,0x3c,0x3c,0x18,0x00,0x00,
265 0x00,0x18,0x3c,0x7e,0x7e,0x3c,0x18,0x00,
266 0x00,0x3c,0x7e,0x7e,0x7e,0x7e,0x3c,0x00,
267 0x3c,0x7e,0xff,0xff,0xff,0xff,0x7e,0x3c,
268 0x7e,0xff,0xff,0xff,0xff,0xff,0xff,0x7e,
269
270 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
271 0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,
272 0x00,0x00,0x10,0x38,0x10,0x00,0x00,0x00,
273 0x00,0x00,0x18,0x3c,0x3c,0x18,0x00,0x00,
274 0x00,0x18,0x3c,0x7e,0x7e,0x3c,0x18,0x00,
275 0x00,0x3c,0x7e,0x7e,0x7e,0x7e,0x3c,0x00,
276 0x3c,0x7e,0xff,0xff,0xff,0xff,0x7e,0x3c,
277 0x7e,0xff,0xff,0xff,0xff,0xff,0xff,0x7e,
278
279 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
280 0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,
281 0x00,0x00,0x10,0x38,0x10,0x00,0x00,0x00,
282 0x00,0x00,0x18,0x3c,0x3c,0x18,0x00,0x00,
283 0x00,0x18,0x3c,0x7e,0x7e,0x3c,0x18,0x00,
284 0x00,0x3c,0x7e,0x7e,0x7e,0x7e,0x3c,0x00,
285 0x3c,0x7e,0xff,0xff,0xff,0xff,0x7e,0x3c,
286 0x7e,0xff,0xff,0xff,0xff,0xff,0xff,0x7e,
287
288 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
289 },
290
291 /* Background colors. */
292 /* unsigned char backgroundpatterncolors[25]; */
293 {
294 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
295 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
296 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
297 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
298
299 COLOR(BGCOLOR2,BGCOLOR3),COLOR(BGCOLOR2,BGCOLOR3),
300 COLOR(BGCOLOR2,BGCOLOR3),COLOR(BGCOLOR2,BGCOLOR3),
301 COLOR(BGCOLOR2,BGCOLOR3),COLOR(BGCOLOR2,BGCOLOR3),
302 COLOR(BGCOLOR2,BGCOLOR3),COLOR(BGCOLOR2,BGCOLOR3),
303
304 COLOR(BGCOLOR3,BGCOLOR4),COLOR(BGCOLOR3,BGCOLOR4),
305 COLOR(BGCOLOR3,BGCOLOR4),COLOR(BGCOLOR3,BGCOLOR4),
306 COLOR(BGCOLOR3,BGCOLOR4),COLOR(BGCOLOR3,BGCOLOR4),
307 COLOR(BGCOLOR3,BGCOLOR4),COLOR(BGCOLOR3,BGCOLOR4),
308
309 COLOR(BGCOLOR4,BGCOLOR4)},
310
311
312
313 };