1 /***************************************************************************
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
10 * Copyright (C) 2006 Dan Everton
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
26 /* colour definitions are R, G, B */
28 #if defined(ARCHOS_RECORDER)
29 #define UI_TITLE "Jukebox Recorder"
30 #define UI_WIDTH 270 /* width of GUI window */
31 #define UI_HEIGHT 406 /* height of GUI window */
32 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
33 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
34 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
35 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
36 #define UI_LCD_POSX 80 /* x position of lcd */
37 #define UI_LCD_POSY 104 /* y position of lcd (96 for real aspect) */
38 #define UI_LCD_WIDTH 112
39 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
41 #elif defined(ARCHOS_PLAYER)
42 #define UI_TITLE "Jukebox Player"
43 #define UI_WIDTH 284 /* width of GUI window */
44 #define UI_HEIGHT 420 /* height of GUI window */
45 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
46 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
47 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
48 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
49 #define UI_LCD_POSX 75 /* x position of lcd */
50 #define UI_LCD_POSY 116 /* y position of lcd */
51 #define UI_LCD_WIDTH 132
52 #define UI_LCD_HEIGHT 64
54 #elif defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2)
55 #define UI_TITLE "Jukebox FM Recorder"
56 #define UI_WIDTH 285 /* width of GUI window */
57 #define UI_HEIGHT 414 /* height of GUI window */
58 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
59 #define UI_LCD_BGCOLORLIGHT 126, 229, 126 /* bkgnd color of LCD (backlight) */
60 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
61 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
62 #define UI_LCD_POSX 87 /* x position of lcd */
63 #define UI_LCD_POSY 77 /* y position of lcd (69 for real aspect) */
64 #define UI_LCD_WIDTH 112
65 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
67 #elif defined(ARCHOS_ONDIOSP) || defined(ARCHOS_ONDIOFM)
68 #define UI_TITLE "Ondio"
69 #define UI_WIDTH 155 /* width of GUI window */
70 #define UI_HEIGHT 334 /* height of GUI window */
71 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
72 #define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */
73 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
74 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
75 #define UI_LCD_POSX 21 /* x position of lcd */
76 #define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */
77 #define UI_LCD_WIDTH 112
78 #define UI_LCD_HEIGHT 64 /* (80 for real aspect) */
80 #elif defined(IRIVER_H120) || defined(IRIVER_H100)
81 #define UI_TITLE "iriver H1x0"
82 #define UI_WIDTH 379 /* width of GUI window */
83 #define UI_HEIGHT 508 /* height of GUI window */
84 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
85 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
86 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
87 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
88 #define UI_LCD_POSX 109 /* x position of lcd */
89 #define UI_LCD_POSY 23 /* y position of lcd */
90 #define UI_LCD_WIDTH 160
91 #define UI_LCD_HEIGHT 128
92 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
93 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
94 #define UI_REMOTE_FGCOLOR 0, 0, 0 /* foreground color of remote LCD (no backlight) */
95 #define UI_REMOTE_FGCOLORLIGHT 0, 0, 0 /* foreground color of remote LCD (backlight) */
96 #define UI_REMOTE_POSX 50 /* x position of remote lcd */
97 #define UI_REMOTE_POSY 403 /* y position of remote lcd */
98 #define UI_REMOTE_WIDTH 128
99 #define UI_REMOTE_HEIGHT 64
101 #elif defined(IRIVER_H300)
102 #define UI_TITLE "iriver H300"
103 #define UI_WIDTH 288 /* width of GUI window */
104 #define UI_HEIGHT 581 /* height of GUI window */
106 #define UI_LCD_POSX 26 /* x position of lcd */
107 #define UI_LCD_POSY 36 /* y position of lcd */
108 #define UI_LCD_WIDTH 220
109 #define UI_LCD_HEIGHT 176
110 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
111 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
112 #define UI_REMOTE_POSX 12 /* x position of remote lcd */
113 #define UI_REMOTE_POSY 478 /* y position of remote lcd */
114 #define UI_REMOTE_WIDTH 128
115 #define UI_REMOTE_HEIGHT 64
117 #elif defined(IPOD_1G2G)
118 #define UI_TITLE "iPod 1G/2G"
119 #define UI_WIDTH 224 /* width of GUI window */
120 #define UI_HEIGHT 382 /* height of GUI window */
121 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
122 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
123 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
124 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
125 #define UI_LCD_POSX 32 /* x position of lcd */
126 #define UI_LCD_POSY 12 /* y position of lcd */
127 #define UI_LCD_WIDTH 160
128 #define UI_LCD_HEIGHT 128
130 #elif defined(IPOD_3G)
131 #define UI_TITLE "iPod 3G"
132 #define UI_WIDTH 218 /* width of GUI window */
133 #define UI_HEIGHT 389 /* height of GUI window */
134 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
135 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
136 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
137 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
138 #define UI_LCD_POSX 29 /* x position of lcd */
139 #define UI_LCD_POSY 16 /* y position of lcd */
140 #define UI_LCD_WIDTH 160
141 #define UI_LCD_HEIGHT 128
143 #elif defined(IPOD_4G)
144 #define UI_TITLE "iPod 4G"
145 #define UI_WIDTH 196 /* width of GUI window */
146 #define UI_HEIGHT 370 /* height of GUI window */
147 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
148 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
149 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
150 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
151 #define UI_LCD_POSX 19 /* x position of lcd */
152 #define UI_LCD_POSY 14 /* y position of lcd */
153 #define UI_LCD_WIDTH 160
154 #define UI_LCD_HEIGHT 128
156 #elif defined(IPOD_MINI) || defined(IPOD_MINI2G)
157 #define UI_TITLE "iPod mini"
158 #define UI_WIDTH 191 /* width of GUI window */
159 #define UI_HEIGHT 365 /* height of GUI window */
160 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
161 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
162 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
163 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
164 #define UI_LCD_POSX 24 /* x position of lcd */
165 #define UI_LCD_POSY 17 /* y position of lcd */
166 #define UI_LCD_WIDTH 138
167 #define UI_LCD_HEIGHT 110
169 #elif defined(IPOD_COLOR)
170 #define UI_TITLE "iPod Color"
171 #define UI_WIDTH 261 /* width of GUI window */
172 #define UI_HEIGHT 493 /* height of GUI window */
174 #define UI_LCD_POSX 21 /* x position of lcd */
175 #define UI_LCD_POSY 16 /* y position of lcd */
176 #define UI_LCD_WIDTH 220
177 #define UI_LCD_HEIGHT 176
179 #elif defined(IPOD_NANO)
180 #define UI_TITLE "iPod Nano"
181 #define UI_WIDTH 199 /* width of GUI window */
182 #define UI_HEIGHT 421 /* height of GUI window */
184 #define UI_LCD_POSX 13 /* x position of lcd */
185 #define UI_LCD_POSY 14 /* y position of lcd */
186 #define UI_LCD_WIDTH 176
187 #define UI_LCD_HEIGHT 132
189 #elif defined(IPOD_VIDEO)
190 #define UI_TITLE "iPod Video"
191 #define UI_WIDTH 350 /* width of GUI window */
192 #define UI_HEIGHT 591 /* height of GUI window */
194 #define UI_LCD_POSX 14 /* x position of lcd */
195 #define UI_LCD_POSY 12 /* y position of lcd */
196 #define UI_LCD_WIDTH 320
197 #define UI_LCD_HEIGHT 240
199 #elif defined(IAUDIO_X5)
200 #define UI_TITLE "iAudio X5"
201 #define UI_WIDTH 300 /* width of GUI window */
202 #define UI_HEIGHT 558 /* height of GUI window */
204 #define UI_LCD_POSX 55 /* x position of lcd */
205 #define UI_LCD_POSY 61 /* y position of lcd (74 for real aspect) */
206 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
207 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
208 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
209 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
210 #define UI_REMOTE_POSX 12 /* x position of remote lcd */
211 #define UI_REMOTE_POSY 462 /* y position of remote lcd */
212 #define UI_REMOTE_WIDTH 128
213 #define UI_REMOTE_HEIGHT 96
215 #elif defined(IAUDIO_M5)
216 #define UI_TITLE "iAudio M5"
217 #define UI_WIDTH 374 /* width of GUI window */
218 #define UI_HEIGHT 650 /* height of GUI window */
220 #define UI_LCD_POSX 82 /* x position of lcd */
221 #define UI_LCD_POSY 74 /* y position of lcd (74 for real aspect) */
222 #define UI_LCD_BGCOLOR 100, 135, 100 /* bkgnd color of LCD (no backlight) */
223 #define UI_LCD_BGCOLORLIGHT 223, 216, 255 /* bkgnd color of LCD (backlight) */
224 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
225 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
226 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
227 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
228 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
229 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
230 #define UI_REMOTE_POSX 59 /* x position of remote lcd */
231 #define UI_REMOTE_POSY 509 /* y position of remote lcd */
232 #define UI_REMOTE_WIDTH 128
233 #define UI_REMOTE_HEIGHT 96
235 #elif defined(GIGABEAT_F)
236 #define UI_TITLE "Toshiba Gigabeat"
237 #define UI_WIDTH 401 /* width of GUI window */
238 #define UI_HEIGHT 655 /* height of GUI window */
240 #define UI_LCD_POSX 48 /* x position of lcd */
241 #define UI_LCD_POSY 60 /* y position of lcd */
242 #define UI_LCD_WIDTH 240
243 #define UI_LCD_HEIGHT 320
245 #elif defined(GIGABEAT_S)
246 #define UI_TITLE "Toshiba Gigabeat"
247 #define UI_WIDTH 450 /* width of GUI window */
248 #define UI_HEIGHT 688 /* height of GUI window */
250 #define UI_LCD_POSX 96 /* x position of lcd */
251 #define UI_LCD_POSY 90 /* y position of lcd */
252 #define UI_LCD_WIDTH 240
253 #define UI_LCD_HEIGHT 320
255 #elif defined(MROBE_500)
256 #define UI_TITLE "Olympus M:Robe 500"
257 #define UI_WIDTH 401 /* width of GUI window */
258 #define UI_HEIGHT 655 /* height of GUI window */
260 #define UI_LCD_POSX 48 /* x position of lcd */
261 #define UI_LCD_POSY 60 /* y position of lcd */
262 #define UI_LCD_WIDTH LCD_WIDTH
263 #define UI_LCD_HEIGHT LCD_HEIGHT
264 #define UI_REMOTE_BGCOLOR 90, 145, 90 /* bkgnd of remote lcd (no bklight) */
265 #define UI_REMOTE_BGCOLORLIGHT 130, 180, 250 /* bkgnd of remote lcd (bklight) */
266 #define UI_REMOTE_POSX 50 /* x position of remote lcd */
267 #define UI_REMOTE_POSY 403 /* y position of remote lcd */
268 #define UI_REMOTE_WIDTH 79
269 #define UI_REMOTE_HEIGHT 16
271 #elif defined(IRIVER_H10)
272 #define UI_TITLE "iriver H10 20Gb"
273 #define UI_WIDTH 392 /* width of GUI window */
274 #define UI_HEIGHT 391 /* height of GUI window */
276 #define UI_LCD_POSX 111 /* x position of lcd */
277 #define UI_LCD_POSY 30 /* y position of lcd (74 for real aspect) */
278 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
279 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
281 #elif defined(IRIVER_H10_5GB)
282 #define UI_TITLE "iriver H10 5/6Gb"
283 #define UI_WIDTH 353 /* width of GUI window */
284 #define UI_HEIGHT 460 /* height of GUI window */
286 #define UI_LCD_POSX 112 /* x position of lcd */
287 #define UI_LCD_POSY 45 /* y position of lcd (74 for real aspect) */
288 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
289 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
291 #elif defined(SANSA_E200)
292 #define UI_TITLE "Sansa e200"
293 #define UI_WIDTH 260 /* width of GUI window */
294 #define UI_HEIGHT 502 /* height of GUI window */
296 #define UI_LCD_POSX 42 /* x position of lcd */
297 #define UI_LCD_POSY 37 /* y position of lcd (74 for real aspect) */
298 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
299 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
301 #elif defined(SANSA_C200)
302 #define UI_TITLE "Sansa c200"
303 #define UI_WIDTH 350 /* width of GUI window */
304 #define UI_HEIGHT 152 /* height of GUI window */
306 #define UI_LCD_POSX 42 /* x position of lcd */
307 #define UI_LCD_POSY 35 /* y position of lcd (74 for real aspect) */
308 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
309 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
311 #elif defined(IRIVER_IFP7XX)
312 #define UI_TITLE "iriver iFP7xx"
313 #define UI_WIDTH 425 /* width of GUI window */
314 #define UI_HEIGHT 183 /* height of GUI window */
315 #define UI_LCD_BGCOLOR 94, 104, 84 /* bkgnd color of LCD (no backlight) */
316 #define UI_LCD_BGCOLORLIGHT 60, 160, 230 /* bkgnd color of LCD (backlight) */
317 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
318 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
319 #define UI_LCD_POSX 115 /* x position of lcd */
320 #define UI_LCD_POSY 54 /* y position of lcd */
321 #define UI_LCD_WIDTH LCD_WIDTH /* * 1.5 */
322 #define UI_LCD_HEIGHT LCD_HEIGHT /* * 1.5 */
324 #elif defined(ARCHOS_AV300)
325 #define UI_TITLE "Archos AV300"
326 /* We are temporarily using a 2bpp LCD driver and dummy bitmap */
327 #define UI_WIDTH 420 /* width of GUI window */
328 #define UI_HEIGHT 340 /* height of GUI window */
329 #define UI_LCD_POSX 50 /* x position of lcd */
330 #define UI_LCD_POSY 50 /* y position of lcd */
331 #define UI_LCD_WIDTH 320
332 #define UI_LCD_HEIGHT 240
333 #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */
334 #define UI_LCD_BGCOLORLIGHT 173, 216, 230 /* bkgnd color of LCD (backlight) */
335 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
336 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
338 #elif defined(MROBE_100)
339 #define UI_TITLE "Olympus M:Robe 100"
340 #define UI_WIDTH 247 /* width of GUI window */
341 #define UI_HEIGHT 416 /* height of GUI window */
342 #define UI_LCD_BGCOLOR 0, 0, 0 /* bkgnd color of LCD (no backlight) */
343 #define UI_LCD_BGCOLORLIGHT 94, 2, 2 /* bkgnd color of LCD (backlight) */
344 #define UI_LCD_FGCOLOR 50, 50, 50 /* foreground color of LCD (no backlight) */
345 #define UI_LCD_FGCOLORLIGHT 241, 6, 3 /* foreground color of LCD (backlight) */
346 #define UI_LCD_POSX 43 /* x position of lcd */
347 #define UI_LCD_POSY 25 /* y position of lcd */
348 #define UI_LCD_WIDTH 160
349 #define UI_LCD_HEIGHT 128
351 #elif defined(COWON_D2)
352 #define UI_TITLE "Cowon D2"
353 #define UI_WIDTH 472 /* width of GUI window */
354 #define UI_HEIGHT 368 /* height of GUI window */
355 #define UI_LCD_POSX 58 /* x position of lcd */
356 #define UI_LCD_POSY 67 /* y position of lcd */
357 #define UI_LCD_WIDTH 320
358 #define UI_LCD_HEIGHT 240
359 #define UI_LCD_BGCOLOR 32, 32, 32 /* bkgnd color of LCD (no backlight) */
360 #define UI_LCD_BGCOLORLIGHT 192, 192, 192 /* bkgnd color of LCD (backlight) */
361 #define UI_LCD_FGCOLOR 0, 0, 0 /* foreground color of LCD (no backlight) */
362 #define UI_LCD_FGCOLORLIGHT 0, 0, 0 /* foreground color of LCD (backlight) */
365 extern SDL_Surface
*gui_surface
;
366 extern bool background
; /* True if the background image is enabled */
367 extern int display_zoom
;
369 #endif /* #ifndef __UISDL_H__ */