blob: dd5aaeddb997a2bb3cd7c778cf5a06193b8359af [file] [log] [blame]
adamdunkelsdbfd2bf2003-08-12 20:13:50 +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 *
adamdunkels0a08fda2004-07-04 18:33:07 +000032 * $Id: ctk-hires-theme-ravenpine.c,v 1.3 2004/07/04 18:33:08 adamdunkels Exp $
adamdunkelsdbfd2bf2003-08-12 20:13:50 +000033 *
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 0x00
adamdunkels0a08fda2004-07-04 18:33:07 +000042#define BGCOLOR2 0x05
adamdunkelsdbfd2bf2003-08-12 20:13:50 +000043
44
45struct ctk_hires_theme ctk_hires_theme =
46 {
47 /* Version string. */
48 /* char version[8]; */
49 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
50
51 /* Window borders patterns. */
52 /* unsigned char ulcorner[8], */ /* Upper left corner. */
53 {0x00,0x3f,0x3f,0x30,0x30,0x30,0x30,0x30},
54
55 /* titlebar[8], */ /* Title bar pattern. */
56 {0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00},
57
58 /* urcorner[8], */ /* Upper right corner. */
59 {0x00,0xfc,0xfc,0x0c,0x0c,0x0c,0x0c,0x0c},
60
61 /* rightborder[8], */ /* Right border. */
62 {0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c},
63
64 /* lrcorner[8], */ /* Lower right corner. */
65 {0x0c,0x0c,0x0c,0x0c,0x0c,0xfc,0xfc,0x00},
66
67 /* lowerborder[8], */ /* Lower border. */
68 {0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00},
69
70 /* llcorner[8], */ /* Lower left corner. */
71 {0x30,0x30,0x30,0x30,0x30,0x3f,0x3f,0x00},
72
73 /* leftborder[8]; */ /* Left border. */
74 {0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30},
75
76 /* Button corner patterns. */
77 /* unsigned char buttonleft[8], */
78 {0x3e,0x30,0x30,0x30,0x30,0x30,0x30,0x3c},
79
80 /* buttonright[8]; */
81 {0x1c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x3c},
82
83 /* Menu border patterns. */
84 /* unsigned char menuleftpattern[8], */
85 {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
86
87 /* menurightpatterns[8]; */
88 {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
89
90 /* Window and widget colors. */
91 /* unsigned char windowcolors[6], */
92 {COLOR(COLOR_BLACK, COLOR_GRAY1),
93 COLOR(COLOR_BLACK, COLOR_GRAY1),
94 COLOR(COLOR_BLACK, COLOR_GREEN),
95 COLOR(COLOR_BLACK, COLOR_GREEN),
adamdunkels0d339a02003-08-20 19:54:12 +000096 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
97 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK)},
adamdunkelsdbfd2bf2003-08-12 20:13:50 +000098
99 /* separatorcolors[6], */
100 {COLOR(COLOR_BLACK, COLOR_GRAY1),
101 COLOR(COLOR_BLACK, COLOR_GRAY1),
102 COLOR(COLOR_BLACK, COLOR_GREEN),
103 COLOR(COLOR_BLACK, COLOR_GREEN),
adamdunkels0d339a02003-08-20 19:54:12 +0000104 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
105 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK)},
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000106
107 /* labelcolors[6], */
108 {COLOR(COLOR_BLACK, COLOR_GRAY1),
109 COLOR(COLOR_BLACK, COLOR_GRAY1),
110 COLOR(COLOR_BLACK, COLOR_GREEN),
111 COLOR(COLOR_BLACK, COLOR_GREEN),
adamdunkels0d339a02003-08-20 19:54:12 +0000112 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
113 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK)},
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000114
115 /* buttoncolors[6], */
116 {COLOR(COLOR_BLACK, COLOR_GRAY1),
117 COLOR(COLOR_BLACK, COLOR_GRAY1),
118 COLOR(COLOR_BLACK, COLOR_GREEN),
adamdunkels0d339a02003-08-20 19:54:12 +0000119 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
120 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
121 COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)},
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000122
123 /* hyperlinkcolors[6], */
124 {COLOR(COLOR_BLACK, COLOR_BLUE),
125 COLOR(COLOR_BLACK, COLOR_BLUE),
126 COLOR(COLOR_BLACK, COLOR_BLUE),
127 COLOR(COLOR_GREEN, COLOR_LIGHTBLUE),
adamdunkels0d339a02003-08-20 19:54:12 +0000128 COLOR(COLOR_LIGHTGREEN, COLOR_BLUE),
129 COLOR(COLOR_LIGHTGREEN, COLOR_LIGHTBLUE)},
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000130
131 /* textentrycolors[6], */
132 {COLOR(COLOR_BLACK, COLOR_GRAY1),
133 COLOR(COLOR_BLACK, COLOR_GRAY1),
134 COLOR(COLOR_BLACK, COLOR_GREEN),
adamdunkels0d339a02003-08-20 19:54:12 +0000135 COLOR(COLOR_BLACK, COLOR_LIGHTGREEN),
136 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
137 COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)},
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000138
139
140 /* bitmapcolors[6], */
141 {COLOR(COLOR_BLACK, COLOR_GRAY1),
142 COLOR(COLOR_BLACK, COLOR_GRAY1),
143 COLOR(COLOR_BLACK, COLOR_GREEN),
144 COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
145 COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
146 COLOR(COLOR_GREEN, COLOR_WHITE)},
147
148
149 /* textmapcolors[6], */
150 {COLOR(COLOR_BLACK, COLOR_GRAY1),
151 COLOR(COLOR_BLACK, COLOR_GRAY1),
152 COLOR(COLOR_BLACK, COLOR_GREEN),
153 COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
154 COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
155 COLOR(COLOR_GREEN, COLOR_WHITE)},
156
157 /* iconcolors[6]; */
158 {COLOR(COLOR_BLACK, COLOR_GRAY1),
159 COLOR(COLOR_BLACK, COLOR_GRAY1),
160 COLOR(COLOR_BLACK, COLOR_GREEN),
adamdunkels0d339a02003-08-20 19:54:12 +0000161 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000162 COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
163 COLOR(COLOR_GREEN, COLOR_WHITE)},
164
165
166 /* Button corner colors. */
167 /* unsigned char buttonleftcolors[6], */
168 {COLOR(COLOR_BLACK, COLOR_GRAY1),
169 COLOR(COLOR_BLACK, COLOR_GRAY1),
170 COLOR(COLOR_BLACK, COLOR_GREEN),
adamdunkels0d339a02003-08-20 19:54:12 +0000171 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
172 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
173 COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)},
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000174
175 /* buttonrightcolors[6]; */
176 {COLOR(COLOR_BLACK, COLOR_GRAY1),
177 COLOR(COLOR_BLACK, COLOR_GRAY1),
178 COLOR(COLOR_BLACK, COLOR_GREEN),
adamdunkels0d339a02003-08-20 19:54:12 +0000179 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
180 COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
181 COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)},
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000182
183
184 /* Menu colors. */
185 /* unsigned char menucolor,*/
186 COLOR(COLOR_GREEN, COLOR_BLACK),
187
188 /* openmenucolor, */
189 COLOR(COLOR_BLACK, COLOR_GREEN),
190
191 /* activemenucolor; */
adamdunkels0d339a02003-08-20 19:54:12 +0000192 COLOR(COLOR_LIGHTGREEN, COLOR_GREEN),
adamdunkelsdbfd2bf2003-08-12 20:13:50 +0000193
194 /* Border and screen colors. */
195 /* unsigned char bordercolor,*/
196 0,
197
198 /* screencolor; */
199 0,
200
201 /* Pointer sprite 0 color */
202 COLOR_LIGHTGREEN,
203
204 /* Pointer sprite 1 color */
205 COLOR_GREEN,
206
207
208 /* Pointer sprite. */
209 /* unsigned char pointer[128]; */
210 {0x00, 0x00, 0x00,
211 0x40, 0x00, 0x00,
212 0x60, 0x00, 0x00,
213 0x70, 0x00, 0x00,
214 0x78, 0x00, 0x00,
215 0x7c, 0x00, 0x00,
216 0x70, 0x00, 0x00,
217 0x58, 0x00, 0x00,
218 0x18, 0x00, 0x00,
219 0x00, 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,
232
233 0xc0, 0x00, 0x00,
234 0xe0, 0x00, 0x00,
235 0xf0, 0x00, 0x00,
236 0xf8, 0x00, 0x00,
237 0xfc, 0x00, 0x00,
238 0xfe, 0x00, 0x00,
239 0xfe, 0x00, 0x00,
240 0xfc, 0x00, 0x00,
241 0xfc, 0x00, 0x00,
242 0x3c, 0x00, 0x00,
243 0x00, 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 },
255
256
257
258 /* Background pattern fill. */
259 /* unsigned char backgroundpattern[8*25]; */
260 {
261 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
262 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
263 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
264 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
265 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
266 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
267 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
268 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
269 },
270 /* Background colors. */
271 /* unsigned char backgroundpatterncolors[25]; */
272 {COLOR(BGCOLOR1,BGCOLOR2),
273 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
274 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
275 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
276 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
277 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
278 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
279 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
280 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
281 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
282 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
283 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2),
284 COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2)},
285
286
287
288 };