adamdunkels | 93311dc | 2003-04-24 17:07:40 +0000 | [diff] [blame] | 1 | /* |
| 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 | * |
adamdunkels | c185bc2 | 2003-08-09 13:25:56 +0000 | [diff] [blame] | 32 | * $Id: ctk-hires-theme-springlight.c,v 1.2 2003/08/09 13:25:56 adamdunkels Exp $ |
adamdunkels | 93311dc | 2003-04-24 17:07:40 +0000 | [diff] [blame] | 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 0x05 |
| 42 | #define BGCOLOR2 0x0d |
| 43 | |
| 44 | |
| 45 | struct 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,0x6a,0x40,0x60,0x40,0x60,0x40}, |
| 54 | |
| 55 | /* titlebar[8], */ /* Title bar pattern. */ |
| 56 | {0x00,0xff,0xaa,0x00,0x00,0x00,0x00,0x00}, |
| 57 | |
| 58 | /* urcorner[8], */ /* Upper right corner. */ |
| 59 | {0x00,0xf0,0x20,0x00,0x00,0x00,0x00,0x00}, |
| 60 | |
| 61 | /* rightborder[8], */ /* Right border. */ |
| 62 | {0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02}, |
| 63 | |
| 64 | /* lrcorner[8], */ /* Lower right corner. */ |
| 65 | {0x02,0x02,0x02,0x02,0x02,0x06,0xfc,0x00}, |
| 66 | |
| 67 | /* lowerborder[8], */ /* Lower border. */ |
| 68 | {0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x00}, |
| 69 | |
| 70 | /* llcorner[8], */ /* Lower left corner. */ |
| 71 | {0x60,0x40,0x40,0x40,0x00,0x00,0x00,0x00}, |
| 72 | |
| 73 | /* leftborder[8]; */ /* Left border. */ |
| 74 | {0x60,0x40,0x60,0x40,0x60,0x40,0x60,0x40}, |
| 75 | |
| 76 | /* Button corner patterns. */ |
| 77 | /* unsigned char buttonleft[8], */ |
| 78 | {0x0f,0x18,0x10,0x10,0x10,0x10,0x10,0x00}, |
| 79 | |
| 80 | /* buttonright[8]; */ |
| 81 | {0x00,0x08,0x08,0x08,0x08,0x08,0x18,0xf0}, |
| 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_GRAY1, COLOR_BLACK), |
| 93 | COLOR(COLOR_GRAY1, COLOR_GREEN), |
| 94 | COLOR(COLOR_GREEN, COLOR_GRAY1), |
| 95 | COLOR(COLOR_GREEN, COLOR_LIGHTGREEN), |
| 96 | COLOR(COLOR_LIGHTGREEN, COLOR_BLACK), |
| 97 | COLOR(COLOR_LIGHTGREEN, COLOR_BLACK)}, |
| 98 | |
| 99 | /* separatorcolors[6], */ |
| 100 | {COLOR(COLOR_GRAY1, COLOR_GRAY2), |
| 101 | COLOR(COLOR_GRAY1, COLOR_GRAY2), |
adamdunkels | c185bc2 | 2003-08-09 13:25:56 +0000 | [diff] [blame] | 102 | COLOR(COLOR_GREEN, COLOR_LIGHTGREEN), |
| 103 | COLOR(COLOR_GREEN, COLOR_LIGHTGREEN), |
adamdunkels | 93311dc | 2003-04-24 17:07:40 +0000 | [diff] [blame] | 104 | COLOR(COLOR_LIGHTGREEN, COLOR_GRAY1), |
| 105 | COLOR(COLOR_LIGHTGREEN, COLOR_GRAY1)}, |
| 106 | |
| 107 | /* labelcolors[6], */ |
| 108 | {COLOR(COLOR_GRAY1, COLOR_BLACK), |
| 109 | COLOR(COLOR_GRAY1, COLOR_BLACK), |
| 110 | COLOR(COLOR_GREEN, COLOR_LIGHTGREEN), |
| 111 | COLOR(COLOR_GREEN, COLOR_LIGHTGREEN), |
| 112 | COLOR(COLOR_LIGHTGREEN, COLOR_BLACK), |
| 113 | COLOR(COLOR_LIGHTGREEN, COLOR_BLACK)}, |
| 114 | |
| 115 | /* buttoncolors[6], */ |
| 116 | {COLOR(COLOR_GRAY1, COLOR_BLACK), |
| 117 | COLOR(COLOR_GRAY1, COLOR_GREEN), |
| 118 | COLOR(COLOR_GREEN, COLOR_GRAY1), |
| 119 | COLOR(COLOR_GREEN, COLOR_LIGHTGREEN), |
| 120 | COLOR(COLOR_LIGHTGREEN, COLOR_GRAY2), |
| 121 | COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)}, |
| 122 | |
| 123 | /* hyperlinkcolors[6], */ |
| 124 | {COLOR(COLOR_GRAY2, COLOR_LIGHTBLUE), |
| 125 | COLOR(COLOR_GRAY2, COLOR_LIGHTBLUE), |
adamdunkels | c185bc2 | 2003-08-09 13:25:56 +0000 | [diff] [blame] | 126 | COLOR(COLOR_GREEN, COLOR_CYAN), |
| 127 | COLOR(COLOR_GREEN, COLOR_BLUE), |
adamdunkels | 93311dc | 2003-04-24 17:07:40 +0000 | [diff] [blame] | 128 | COLOR(COLOR_LIGHTGREEN, COLOR_BLUE), |
| 129 | COLOR(COLOR_BLUE, COLOR_LIGHTGREEN)}, |
| 130 | |
| 131 | /* textentrycolors[6], */ |
| 132 | {COLOR(COLOR_GREEN, COLOR_GRAY1), |
| 133 | COLOR(COLOR_GREEN, COLOR_BLACK), |
| 134 | COLOR(COLOR_LIGHTGREEN, COLOR_BLACK), |
| 135 | COLOR(COLOR_LIGHTGREEN, COLOR_BLACK), |
| 136 | COLOR(COLOR_GRAY3, COLOR_BLACK), |
| 137 | COLOR(COLOR_GRAY3, COLOR_BLACK)}, |
| 138 | |
| 139 | /* bitmapcolors[6], */ |
| 140 | {COLOR(COLOR_GRAY2, COLOR_GRAY1), |
| 141 | COLOR(COLOR_GRAY1, COLOR_BLACK), |
| 142 | COLOR(COLOR_WHITE, COLOR_GRAY1), |
| 143 | COLOR(COLOR_GRAY3, COLOR_BLACK), |
| 144 | COLOR(COLOR_GRAY3, COLOR_BLACK), |
| 145 | COLOR(COLOR_GRAY3, COLOR_BLACK)}, |
| 146 | |
| 147 | /* textmapcolors[6], */ |
| 148 | {COLOR(COLOR_GRAY2, COLOR_GRAY1), |
| 149 | COLOR(COLOR_GRAY2, COLOR_GRAY1), |
| 150 | COLOR(COLOR_WHITE, COLOR_BLACK), |
| 151 | COLOR(COLOR_WHITE, COLOR_BLACK), |
| 152 | COLOR(COLOR_WHITE, COLOR_BLACK), |
| 153 | COLOR(COLOR_WHITE, COLOR_BLACK)}, |
| 154 | |
| 155 | /* iconcolors[6]; */ |
| 156 | {COLOR(COLOR_GREEN, COLOR_GRAY1), |
| 157 | COLOR(COLOR_GRAY1, COLOR_GREEN), |
| 158 | COLOR(COLOR_LIGHTGREEN, COLOR_GRAY1), |
| 159 | COLOR(COLOR_GRAY1, COLOR_LIGHTGREEN), |
| 160 | COLOR(COLOR_WHITE, COLOR_BLACK), |
| 161 | COLOR(COLOR_BLACK, COLOR_YELLOW)}, |
| 162 | |
| 163 | |
| 164 | /* Button corner colors. */ |
| 165 | /* unsigned char buttonleftcolors[6], */ |
| 166 | {COLOR(COLOR_GRAY1, COLOR_GREEN), |
| 167 | COLOR(COLOR_GRAY1, COLOR_BLACK), |
| 168 | COLOR(COLOR_GREEN, COLOR_LIGHTGREEN), |
| 169 | COLOR(COLOR_GREEN, COLOR_GRAY1), |
| 170 | COLOR(COLOR_LIGHTGREEN, COLOR_WHITE), |
| 171 | COLOR(COLOR_LIGHTGREEN, COLOR_GRAY2)}, |
| 172 | |
| 173 | /* buttonrightcolors[6]; */ |
| 174 | {COLOR(COLOR_GRAY1, COLOR_BLACK), |
| 175 | COLOR(COLOR_GRAY1, COLOR_GREEN), |
| 176 | COLOR(COLOR_GREEN, COLOR_GRAY1), |
| 177 | COLOR(COLOR_GREEN, COLOR_LIGHTGREEN), |
| 178 | COLOR(COLOR_LIGHTGREEN, COLOR_GRAY2), |
| 179 | COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)}, |
| 180 | |
| 181 | |
| 182 | /* Menu colors. */ |
| 183 | /* unsigned char menucolor,*/ |
| 184 | COLOR(COLOR_LIGHTGREEN, COLOR_GRAY1), |
| 185 | |
| 186 | /* openmenucolor, */ |
| 187 | COLOR(COLOR_BLACK, COLOR_GREEN), |
| 188 | |
| 189 | /* activemenucolor; */ |
| 190 | COLOR(COLOR_BLACK, COLOR_LIGHTGREEN), |
| 191 | |
| 192 | /* Border and screen colors. */ |
| 193 | /* unsigned char bordercolor,*/ |
| 194 | 5, |
| 195 | |
| 196 | /* screencolor; */ |
| 197 | 0, |
| 198 | |
| 199 | /* Pointer sprite 0 color */ |
| 200 | COLOR_WHITE, |
| 201 | |
| 202 | /* Pointer sprite 1 color */ |
| 203 | COLOR_GREEN, |
| 204 | |
| 205 | |
| 206 | /* Pointer sprite. */ |
| 207 | /* unsigned char pointer[128]; */ |
| 208 | {0x00, 0x00, 0x00, |
| 209 | 0x40, 0x00, 0x00, |
| 210 | 0x60, 0x00, 0x00, |
| 211 | 0x70, 0x00, 0x00, |
| 212 | 0x78, 0x00, 0x00, |
| 213 | 0x7c, 0x00, 0x00, |
| 214 | 0x70, 0x00, 0x00, |
| 215 | 0x58, 0x00, 0x00, |
| 216 | 0x18, 0x00, 0x00, |
| 217 | 0x00, 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, |
| 230 | |
| 231 | 0xc0, 0x00, 0x00, |
| 232 | 0xe0, 0x00, 0x00, |
| 233 | 0xf0, 0x00, 0x00, |
| 234 | 0xf8, 0x00, 0x00, |
| 235 | 0xfc, 0x00, 0x00, |
| 236 | 0xfe, 0x00, 0x00, |
| 237 | 0xfe, 0x00, 0x00, |
| 238 | 0xfc, 0x00, 0x00, |
| 239 | 0xfc, 0x00, 0x00, |
| 240 | 0x3c, 0x00, 0x00, |
| 241 | 0x00, 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 }, |
| 253 | |
| 254 | |
| 255 | |
| 256 | /* Background pattern fill. */ |
| 257 | /* unsigned char backgroundpattern[8*25]; */ |
| 258 | {255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
| 259 | 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, |
| 260 | 255, 255, 223, 255, 255, 247, 255, 255, 191, 247, 255, 255, 219, 255, 255, 187, |
| 261 | 255, 239, 251, 191, 239, 253, 223, 251, 223, 253, 183, 255, 213, 127, 237, 191, |
| 262 | 245, 95, 245, 223, 181, 255, 85, 255, 85, 219, 118, 219, 109, 219, 182, 109, 219, 182, 109, 219, 170, 109, 219, 170, 181, 173, 85, 218, 85, 173, 170, 85, 170, 85, 170, 85, 170, 85, 170, 85, 170, 146, 85, 146, 170, 82, 138, 50, 74, 164, 73, |
| 263 | 146, 84, 137, 82, 4, 169, 18, 164, 2, 168, 18, 68, 18, 160, 10, 32, 74, 0, 42, 128, 18, 64, 20, 0, 82, 0, 4, 80, 4, 0, 72, 2, 0, 16, 132, 0, 0, 72, 0, 0, 4, 64, 0, 0, 8, 0, 0, 0, 32, 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}, |
| 265 | |
| 266 | /* Background colors. */ |
| 267 | /* unsigned char backgroundpatterncolors[25]; */ |
| 268 | {COLOR(BGCOLOR1,BGCOLOR2), |
| 269 | COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2), |
| 270 | COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2), |
| 271 | COLOR(BGCOLOR1,BGCOLOR2),COLOR(BGCOLOR1,BGCOLOR2), |
| 272 | COLOR(BGCOLOR1,BGCOLOR2),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 | |
| 282 | |
| 283 | |
| 284 | }; |