blob: 3a7379bf493f35ae790710844fa56b38ac31e0e2 [file] [log] [blame]
adamdunkels77e47062003-04-17 15:09:31 +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 *
adamdunkels615ccb62004-08-09 21:27:58 +000032 * $Id: ctk-hires-theme-default.c,v 1.3 2004/08/09 21:27:58 adamdunkels Exp $
adamdunkels77e47062003-04-17 15:09:31 +000033 *
34 */
35
36#include <conio.h>
37#include "ctk-hires-theme.h"
38
39#define COLOR(bg, fg) ((fg << 4) | (bg))
40
adamdunkels615ccb62004-08-09 21:27:58 +000041#define BGCOLOR1 7
42#define BGCOLOR2 10
43#define BGCOLOR3 4
44#define BGCOLOR4 6
adamdunkels77e47062003-04-17 15:09:31 +000045
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 {0xff,0xff,0xc0,0xcf,0xc0,0xc3,0xc0,0xc0},
55
56 /* titlebar[8], */ /* Title bar pattern. */
57 {0xff,0xff,0x00,0xff,0x00,0xff,0x00,0x00},
58
59 /* urcorner[8], */ /* Upper right corner. */
60 {0xff,0xfc,0x00,0xf0,0x00,0xc0,0x00,0x00},
61
62 /* rightborder[8], */ /* Right border. */
63 {0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b,0x0b},
64
65 /* lrcorner[8], */ /* Lower right corner. */
66 {0x0b,0x0b,0x0b,0x0b,0xfb,0x03,0xff,0xff},
67
68 /* lowerborder[8], */ /* Lower border. */
69 {0x00,0x00,0x00,0x00,0xff,0x00,0xff,0xff},
70
71 /* llcorner[8], */ /* Lower left corner. */
72 {0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0x80,0x00},
73
74 /* leftborder[8]; */ /* Left border. */
75 {0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0,0xc0},
76
77 /* Button corner patterns. */
78 /* unsigned char buttonleft[8], */
79 {0xc5,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf,0xdf},
80
81 /* buttonright[8]; */
82 {0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xfb,0xa3},
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_GRAY2, COLOR_GRAY1),
94 COLOR(COLOR_GRAY2, COLOR_GRAY3),
95 COLOR(COLOR_GRAY3, COLOR_GRAY1),
96 COLOR(COLOR_GRAY3, COLOR_WHITE),
97 COLOR(COLOR_WHITE, COLOR_BLACK),
98 COLOR(COLOR_WHITE, COLOR_BLACK)},
99
100 /* separatorcolors[6], */
101 {COLOR(COLOR_GRAY2, COLOR_GRAY1),
102 COLOR(COLOR_GRAY2, COLOR_GRAY1),
103 COLOR(COLOR_GRAY3, COLOR_GRAY2),
104 COLOR(COLOR_GRAY3, COLOR_GRAY2),
105 COLOR(COLOR_WHITE, COLOR_GRAY1),
106 COLOR(COLOR_WHITE, COLOR_GRAY1)},
107
108 /* labelcolors[6], */
109 {COLOR(COLOR_GRAY2, COLOR_GRAY1),
110 COLOR(COLOR_GRAY2, COLOR_GRAY1),
111 COLOR(COLOR_WHITE, COLOR_BLACK),
112 COLOR(COLOR_WHITE, COLOR_BLACK),
113 COLOR(COLOR_WHITE, COLOR_BLACK),
114 COLOR(COLOR_WHITE, COLOR_BLACK)},
115
116 /* buttoncolors[6], */
117 {COLOR(COLOR_GRAY2, COLOR_GRAY1),
118 COLOR(COLOR_GRAY1, COLOR_GRAY2),
119 COLOR(COLOR_GRAY3, COLOR_GRAY1),
120 COLOR(COLOR_GRAY1, COLOR_GRAY3),
121 COLOR(COLOR_GRAY3, COLOR_GRAY1),
122 COLOR(COLOR_GRAY1, COLOR_GRAY3)},
123
124 /* hyperlinkcolors[6], */
125 {COLOR(COLOR_GRAY2, COLOR_LIGHTBLUE),
126 COLOR(COLOR_GRAY2, COLOR_LIGHTBLUE),
127 COLOR(COLOR_WHITE, COLOR_BLUE),
128 COLOR(COLOR_BLUE, COLOR_WHITE),
129 COLOR(COLOR_WHITE, COLOR_BLUE),
130 COLOR(COLOR_BLUE, COLOR_WHITE)},
131
132 /* textentrycolors[6], */
133 {COLOR(COLOR_GRAY2, COLOR_GRAY1),
134 COLOR(COLOR_GRAY2, COLOR_BLACK),
135 COLOR(COLOR_WHITE, COLOR_BLACK),
136 COLOR(COLOR_WHITE, COLOR_BLACK),
137 COLOR(COLOR_GRAY3, COLOR_BLACK),
138 COLOR(COLOR_GRAY3, COLOR_BLACK)},
139
140 /* bitmapcolors[6], */
141 {COLOR(COLOR_GRAY2, COLOR_GRAY1),
142 COLOR(COLOR_GRAY1, COLOR_BLACK),
143 COLOR(COLOR_WHITE, COLOR_GRAY1),
144 COLOR(COLOR_GRAY3, COLOR_BLACK),
145 COLOR(COLOR_GRAY3, COLOR_BLACK),
146 COLOR(COLOR_GRAY3, COLOR_BLACK)},
147
148 /* textmapcolors[6], */
149 {COLOR(COLOR_GRAY2, COLOR_GRAY1),
150 COLOR(COLOR_GRAY2, COLOR_GRAY1),
151 COLOR(COLOR_WHITE, COLOR_BLACK),
152 COLOR(COLOR_WHITE, COLOR_BLACK),
153 COLOR(COLOR_WHITE, COLOR_BLACK),
154 COLOR(COLOR_WHITE, COLOR_BLACK)},
155
156 /* iconcolors[6]; */
adamdunkels832fe2b2003-04-24 17:08:31 +0000157 {COLOR(COLOR_GRAY3, COLOR_GRAY1),
158 COLOR(COLOR_GRAY1, COLOR_GRAY2),
adamdunkels77e47062003-04-17 15:09:31 +0000159 COLOR(COLOR_WHITE, COLOR_BLACK),
160 COLOR(COLOR_BLACK, COLOR_YELLOW),
161 COLOR(COLOR_WHITE, COLOR_BLACK),
162 COLOR(COLOR_BLACK, COLOR_YELLOW)},
163
164
165 /* Button corner colors. */
166 /* unsigned char buttonleftcolors[6], */
167 {COLOR(COLOR_GRAY3, COLOR_GRAY2),
168 COLOR(COLOR_GRAY1, COLOR_GRAY2),
169 COLOR(COLOR_WHITE, COLOR_GRAY3),
170 COLOR(COLOR_GRAY1, COLOR_GRAY3),
171 COLOR(COLOR_WHITE, COLOR_GRAY3),
172 COLOR(COLOR_GRAY1, COLOR_GRAY3)},
173
174 /* buttonrightcolors[6]; */
175 {COLOR(COLOR_GRAY1, COLOR_GRAY2),
176 COLOR(COLOR_GRAY3, COLOR_GRAY2),
177 COLOR(COLOR_GRAY1, COLOR_GRAY3),
178 COLOR(COLOR_WHITE, COLOR_GRAY3),
179 COLOR(COLOR_GRAY1, COLOR_GRAY3),
180 COLOR(COLOR_WHITE, COLOR_GRAY3)},
181
182
183 /* Menu colors. */
184 /* unsigned char menucolor,*/
185 COLOR(COLOR_YELLOW, COLOR_BLACK),
186
187 /* openmenucolor, */
188 COLOR(COLOR_BLACK, COLOR_YELLOW),
189
190 /* activemenucolor; */
191 COLOR(COLOR_WHITE, COLOR_BLACK),
192
193 /* Border and screen colors. */
194 /* unsigned char bordercolor,*/
195 6,
196
197 /* screencolor; */
198 0,
199
200 /* Pointer sprite 0 color */
201 0,
202
203 /* Pointer sprite 1 color */
204 1,
205
206
207 /* Pointer sprite. */
208 /* unsigned char pointer[128]; */
209 {0x00, 0x00, 0x00,
210 0x40, 0x00, 0x00,
211 0x60, 0x00, 0x00,
212 0x70, 0x00, 0x00,
213 0x78, 0x00, 0x00,
214 0x7c, 0x00, 0x00,
215 0x70, 0x00, 0x00,
216 0x58, 0x00, 0x00,
217 0x18, 0x00, 0x00,
218 0x00, 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,
231
232 0xc0, 0x00, 0x00,
233 0xe0, 0x00, 0x00,
234 0xf0, 0x00, 0x00,
235 0xf8, 0x00, 0x00,
236 0xfc, 0x00, 0x00,
237 0xfe, 0x00, 0x00,
238 0xfe, 0x00, 0x00,
239 0xfc, 0x00, 0x00,
240 0xfc, 0x00, 0x00,
241 0x3c, 0x00, 0x00,
242 0x00, 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 },
254
255
256
257 /* Background pattern fill. */
258 /* unsigned char backgroundpattern[8*25]; */
259 {0x88,0x00,0x22,0x00,0x88,0x00,0x22,0x00,
260 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
261 0xff,0xdd,0xff,0x77,0xff,0xdd,0xff,0x77,
262 0xff,0x55,0xff,0x55,0xff,0x55,0xff,0x55,
263 0xee,0x55,0xbb,0x55,0xee,0x55,0xbb,0x55,
264 0xaa,0x55,0xaa,0x55,0xaa,0x55,0xaa,0x55,
265 0xaa,0x44,0xaa,0x11,0xaa,0x44,0xaa,0x11,
266 0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,
267 0x88,0x00,0x22,0x00,0x88,0x00,0x22,0x00,
268 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
269 0xff,0xdd,0xff,0x77,0xff,0xdd,0xff,0x77,
270 0xff,0x55,0xff,0x55,0xff,0x55,0xff,0x55,
271 0xee,0x55,0xbb,0x55,0xee,0x55,0xbb,0x55,
272 0xaa,0x55,0xaa,0x55,0xaa,0x55,0xaa,0x55,
273 0xaa,0x44,0xaa,0x11,0xaa,0x44,0xaa,0x11,
274 0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,
275 0x88,0x00,0x22,0x00,0x88,0x00,0x22,0x00,
276 0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
277 0xff,0xdd,0xff,0x77,0xff,0xdd,0xff,0x77,
278 0xff,0x55,0xff,0x55,0xff,0x55,0xff,0x55,
279 0xee,0x55,0xbb,0x55,0xee,0x55,0xbb,0x55,
280 0xaa,0x55,0xaa,0x55,0xaa,0x55,0xaa,0x55,
281 0xaa,0x44,0xaa,0x11,0xaa,0x44,0xaa,0x11,
282 0xaa,0x00,0xaa,0x00,0xaa,0x00,0xaa,0x00,
283 0x88,0x00,0x22,0x00,0x88,0x00,0x22,0x00},
284
285 /* Background colors. */
286 /* unsigned char backgroundpatterncolors[25]; */
287 {COLOR(BGCOLOR1,BGCOLOR1),
288 COLOR(BGCOLOR2,BGCOLOR1),COLOR(BGCOLOR2,BGCOLOR1),
289 COLOR(BGCOLOR2,BGCOLOR1),COLOR(BGCOLOR2,BGCOLOR1),
290 COLOR(BGCOLOR2,BGCOLOR1),COLOR(BGCOLOR2,BGCOLOR1),
291 COLOR(BGCOLOR2,BGCOLOR1),COLOR(BGCOLOR2,BGCOLOR1),
292 COLOR(BGCOLOR3,BGCOLOR2),COLOR(BGCOLOR3,BGCOLOR2),
293 COLOR(BGCOLOR3,BGCOLOR2),COLOR(BGCOLOR3,BGCOLOR2),
294 COLOR(BGCOLOR3,BGCOLOR2),COLOR(BGCOLOR3,BGCOLOR2),
295 COLOR(BGCOLOR3,BGCOLOR2),COLOR(BGCOLOR3,BGCOLOR2),
296 COLOR(BGCOLOR4,BGCOLOR3),COLOR(BGCOLOR4,BGCOLOR3),
297 COLOR(BGCOLOR4,BGCOLOR3),COLOR(BGCOLOR4,BGCOLOR3),
298 COLOR(BGCOLOR4,BGCOLOR3),COLOR(BGCOLOR4,BGCOLOR3),
299 COLOR(BGCOLOR4,BGCOLOR3),COLOR(BGCOLOR4,BGCOLOR3)},
300
301
302
303 };