summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-11-26 16:01:11 +0000
committerThomas Martitz <kugel@rockbox.org>2011-11-26 16:01:11 +0000
commitb907f2fd239a18e15e2d3c394694fe2181214c12 (patch)
tree3874f1f07cb6d443c70a9d6c8e8d9bf787a490c6 /apps
parent69f4245d9dc4b13b14ae8475f5b2ab6ea0e2454e (diff)
lcd_color/cabbiev2: New iconset in multiple sizes
The new iconset features transparency which can be more easier generated from svgs and looks better. For for bigger displays there are new sizes. The bmps are the generated from the SVGs added to the tree and create-icons-from-tango.pl is updated to enable easy generation. rockbox-clef.svg is changed to have a bit more border. NOTE: Icons for greyscale are unchanged. Someone needs to update them, I don't know how to do it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31059 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/settings_list.c54
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";
#ifdef HAVE_LCD_BITMAP
#if LCD_HEIGHT <= 64
+ #define DEFAULT_FONT_HEIGHT 8
#define DEFAULT_FONTNAME "08-Rockfont"
#elif LCD_HEIGHT <= 80
+ #define DEFAULT_FONT_HEIGHT 11
#define DEFAULT_FONTNAME "11-Sazanami-Mincho"
#elif LCD_HEIGHT <= 220
- #define DEFAULT_FONTNAME "12-Adobe-Helvetica"
+ #define DEFAULT_FONT_HEIGHT 12
#elif LCD_HEIGHT <= 320
- #define DEFAULT_FONTNAME "15-Adobe-Helvetica"
+ #define DEFAULT_FONT_HEIGHT 15
#elif LCD_HEIGHT <= 400
- #define DEFAULT_FONTNAME "16-Adobe-Helvetica"
-#elif LCD_HEIGHT <= 480 && !(CONFIG_PLATFORM & (PLATFORM_MAEMO|PLATFORM_PANDORA))
- #define DEFAULT_FONTNAME "27-Adobe-Helvetica"
+ #define DEFAULT_FONT_HEIGHT 16
+#elif LCD_HEIGHT <= 480 && LCD_WIDTH < 800
+ #define DEFAULT_FONT_HEIGHT 27
#else
- #define DEFAULT_FONTNAME "35-Adobe-Helvetica"
+ #define DEFAULT_FONT_HEIGHT 35
#endif
#define DEFAULT_GLYPHS 250
#define MIN_GLYPHS 50
#define MAX_GLYPHS 65540
#else
- #define DEFAULT_FONTNAME ""
+ #define DEFAULT_FONT_HEIGHT 12
#endif
-#ifdef HAVE_REMOTE_LCD
-#if LCD_REMOTE_HEIGHT <= 64
- #define DEFAULT_REMOTE_FONTNAME "08-Rockfont"
-#else
- #define DEFAULT_REMOTE_FONTNAME "-"
+#ifndef DEFAULT_FONTNAME
+/* ugly expansion needed */
+#define _EXPAND2(x) #x
+#define _EXPAND(x) _EXPAND2(x)
+#define DEFAULT_FONTNAME _EXPAND(DEFAULT_FONT_HEIGHT) "-Adobe-Helvetica"
#endif
-#endif /* HAVE_REMOTE_LCD */
#ifdef HAVE_LCD_COLOR
- #define DEFAULT_ICONSET "tango_small"
- #define DEFAULT_VIEWERS_ICONSET "tango_small_viewers"
-#elif LCD_DEPTH >= 2
- #define DEFAULT_ICONSET "tango_small_mono"
+ #if DEFAULT_FONT_HEIGHT >= 31
+ #define DEFAULT_ICONSET "tango_icons.32x32"
+ #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.32x32"
+ #elif DEFAULT_FONT_HEIGHT >= 23
+ #define DEFAULT_ICONSET "tango_icons.24x24"
+ #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.24x24"
+ #elif DEFAULT_FONT_HEIGHT >= 15
+ #define DEFAULT_ICONSET "tango_icons.16x16"
+ #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.16x16"
+ #else
+ #define DEFAULT_ICONSET "tango_icons.12x12"
+ #define DEFAULT_VIEWERS_ICONSET "tango_icons_viewers.12x12"
+ #endif
+#elif LCD_DEPTH <= 2 /* greyscale */
+ #define DEFAULT_ICONSET "tango_small_grey"
#define DEFAULT_VIEWERS_ICONSET "tango_small_viewers_mono"
#else /* monochrome */
#define DEFAULT_ICONSET ""
#define DEFAULT_VIEWERS_ICONSET ""
#endif
+#ifdef HAVE_REMOTE_LCD
+#if LCD_REMOTE_HEIGHT <= 64
+ #define DEFAULT_REMOTE_FONTNAME "08-Rockfont"
+#else
+ #define DEFAULT_REMOTE_FONTNAME "-"
+#endif
+#endif /* HAVE_REMOTE_LCD */
+
#define DEFAULT_THEME_FOREGROUND LCD_RGBPACK(0xce, 0xcf, 0xce)
#define DEFAULT_THEME_BACKGROUND LCD_RGBPACK(0x00, 0x00, 0x00)
#define DEFAULT_THEME_SELECTOR_START LCD_RGBPACK(0xff, 0xeb, 0x9c)