diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings_list.c | 54 |
1 files changed, 37 insertions, 17 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index 31721d6840..36caf6e4dc 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c | |||
@@ -208,47 +208,67 @@ static const char graphic_numeric[] = "graphic,numeric"; | |||
208 | #ifdef HAVE_LCD_BITMAP | 208 | #ifdef HAVE_LCD_BITMAP |
209 | 209 | ||
210 | #if LCD_HEIGHT <= 64 | 210 | #if LCD_HEIGHT <= 64 |
211 | #define DEFAULT_FONT_HEIGHT 8 | ||
211 | #define DEFAULT_FONTNAME "08-Rockfont" | 212 | #define DEFAULT_FONTNAME "08-Rockfont" |
212 | #elif LCD_HEIGHT <= 80 | 213 | #elif LCD_HEIGHT <= 80 |
214 | #define DEFAULT_FONT_HEIGHT 11 | ||
213 | #define DEFAULT_FONTNAME "11-Sazanami-Mincho" | 215 | #define DEFAULT_FONTNAME "11-Sazanami-Mincho" |
214 | #elif LCD_HEIGHT <= 220 | 216 | #elif LCD_HEIGHT <= 220 |
215 | #define DEFAULT_FONTNAME "12-Adobe-Helvetica" | 217 | #define DEFAULT_FONT_HEIGHT 12 |
216 | #elif LCD_HEIGHT <= 320 | 218 | #elif LCD_HEIGHT <= 320 |
217 | #define DEFAULT_FONTNAME "15-Adobe-Helvetica" | 219 | #define DEFAULT_FONT_HEIGHT 15 |
218 | #elif LCD_HEIGHT <= 400 | 220 | #elif LCD_HEIGHT <= 400 |
219 | #define DEFAULT_FONTNAME "16-Adobe-Helvetica" | 221 | #define DEFAULT_FONT_HEIGHT 16 |
220 | #elif LCD_HEIGHT <= 480 && !(CONFIG_PLATFORM & (PLATFORM_MAEMO|PLATFORM_PANDORA)) | 222 | #elif LCD_HEIGHT <= 480 && LCD_WIDTH < 800 |
221 | #define DEFAULT_FONTNAME "27-Adobe-Helvetica" | 223 | #define DEFAULT_FONT_HEIGHT 27 |
222 | #else | 224 | #else |
223 | #define DEFAULT_FONTNAME "35-Adobe-Helvetica" | 225 | #define DEFAULT_FONT_HEIGHT 35 |
224 | #endif | 226 | #endif |
225 | #define DEFAULT_GLYPHS 250 | 227 | #define DEFAULT_GLYPHS 250 |
226 | #define MIN_GLYPHS 50 | 228 | #define MIN_GLYPHS 50 |
227 | #define MAX_GLYPHS 65540 | 229 | #define MAX_GLYPHS 65540 |
228 | 230 | ||
229 | #else | 231 | #else |
230 | #define DEFAULT_FONTNAME "" | 232 | #define DEFAULT_FONT_HEIGHT 12 |
231 | #endif | 233 | #endif |
232 | 234 | ||
233 | #ifdef HAVE_REMOTE_LCD | 235 | #ifndef DEFAULT_FONTNAME |
234 | #if LCD_REMOTE_HEIGHT <= 64 | 236 | /* ugly expansion needed */ |
235 | #define DEFAULT_REMOTE_FONTNAME "08-Rockfont" | 237 | #define _EXPAND2(x) #x |
236 | #else | 238 | #define _EXPAND(x) _EXPAND2(x) |
237 | #define DEFAULT_REMOTE_FONTNAME "-" | 239 | #define DEFAULT_FONTNAME _EXPAND(DEFAULT_FONT_HEIGHT) "-Adobe-Helvetica" |
238 | #endif | 240 | #endif |
239 | #endif /* HAVE_REMOTE_LCD */ | ||
240 | 241 | ||
241 | #ifdef HAVE_LCD_COLOR | 242 | #ifdef HAVE_LCD_COLOR |
242 | #define DEFAULT_ICONSET "tango_small" | 243 | #if DEFAULT_FONT_HEIGHT >= 31 |
243 | #define DEFAULT_VIEWERS_ICONSET "tango_small_viewers" | 244 | #define DEFAULT_ICONSET "tango_icons.32x32" |
244 | #elif LCD_DEPTH >= 2 | 245 | #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.32x32" |
245 | #define DEFAULT_ICONSET "tango_small_mono" | 246 | #elif DEFAULT_FONT_HEIGHT >= 23 |
247 | #define DEFAULT_ICONSET "tango_icons.24x24" | ||
248 | #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.24x24" | ||
249 | #elif DEFAULT_FONT_HEIGHT >= 15 | ||
250 | #define DEFAULT_ICONSET "tango_icons.16x16" | ||
251 | #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.16x16" | ||
252 | #else | ||
253 | #define DEFAULT_ICONSET "tango_icons.12x12" | ||
254 | #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.12x12" | ||
255 | #endif | ||
256 | #elif LCD_DEPTH <= 2 /* greyscale */ | ||
257 | #define DEFAULT_ICONSET "tango_small_grey" | ||
246 | #define DEFAULT_VIEWERS_ICONSET "tango_small_viewers_mono" | 258 | #define DEFAULT_VIEWERS_ICONSET "tango_small_viewers_mono" |
247 | #else /* monochrome */ | 259 | #else /* monochrome */ |
248 | #define DEFAULT_ICONSET "" | 260 | #define DEFAULT_ICONSET "" |
249 | #define DEFAULT_VIEWERS_ICONSET "" | 261 | #define DEFAULT_VIEWERS_ICONSET "" |
250 | #endif | 262 | #endif |
251 | 263 | ||
264 | #ifdef HAVE_REMOTE_LCD | ||
265 | #if LCD_REMOTE_HEIGHT <= 64 | ||
266 | #define DEFAULT_REMOTE_FONTNAME "08-Rockfont" | ||
267 | #else | ||
268 | #define DEFAULT_REMOTE_FONTNAME "-" | ||
269 | #endif | ||
270 | #endif /* HAVE_REMOTE_LCD */ | ||
271 | |||
252 | #define DEFAULT_THEME_FOREGROUND LCD_RGBPACK(0xce, 0xcf, 0xce) | 272 | #define DEFAULT_THEME_FOREGROUND LCD_RGBPACK(0xce, 0xcf, 0xce) |
253 | #define DEFAULT_THEME_BACKGROUND LCD_RGBPACK(0x00, 0x00, 0x00) | 273 | #define DEFAULT_THEME_BACKGROUND LCD_RGBPACK(0x00, 0x00, 0x00) |
254 | #define DEFAULT_THEME_SELECTOR_START LCD_RGBPACK(0xff, 0xeb, 0x9c) | 274 | #define DEFAULT_THEME_SELECTOR_START LCD_RGBPACK(0xff, 0xeb, 0x9c) |