]> git.karo-electronics.de Git - linux-beck.git/commitdiff
kconfig/lxdialog: add a new theme bluetitle which is now default
authorSam Ravnborg <sam@mars.ravnborg.org>
Mon, 24 Jul 2006 20:19:51 +0000 (22:19 +0200)
committerSam Ravnborg <sam@neptun.ravnborg.org>
Sat, 30 Sep 2006 09:19:19 +0000 (11:19 +0200)
The bluetitle theme is a slightly modified version of the colorscheme
that -mm users has been used to. The bluetitle is more readable especially
on some LCD screens so it is now default.
Anyone that really wants the old color selection can get it by selecting
the classic color theme:
make MENUCONFIG_COLOR=classic menuconfig

The bluetitle theme was modified by Roman Zippel <zippel@linux-m68k.org>
to further improve readability on LCD screens.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/kconfig/lxdialog/util.c
scripts/kconfig/mconf.c

index 358f9cc19c53a7f12e2c7ef16998ea3fe7d3eeed..e73a36df93b46ee57659cadf6829dbd0c1e30612 100644 (file)
@@ -138,6 +138,19 @@ static void set_blackbg_theme(void)
        DLG_COLOR(darrow, COLOR_RED, COLOR_BLACK, false);
 }
 
+static void set_bluetitle_theme(void)
+{
+       set_classic_theme();
+       DLG_COLOR(title,               COLOR_BLUE,   COLOR_WHITE, true);
+       DLG_COLOR(button_key_active,   COLOR_YELLOW, COLOR_BLUE,  true);
+       DLG_COLOR(button_label_active, COLOR_WHITE,  COLOR_BLUE,  true);
+       DLG_COLOR(searchbox_title,     COLOR_BLUE,   COLOR_WHITE, true);
+       DLG_COLOR(position_indicator,  COLOR_BLUE,   COLOR_WHITE, true);
+       DLG_COLOR(tag,                 COLOR_BLUE,   COLOR_WHITE, true);
+       DLG_COLOR(tag_key,             COLOR_BLUE,   COLOR_WHITE, true);
+
+}
+
 /*
  * Select color theme
  */
@@ -145,9 +158,11 @@ static int set_theme(const char *theme)
 {
        int use_color = 1;
        if (!theme)
-               set_classic_theme();
+               set_bluetitle_theme();
        else if (strcmp(theme, "classic") == 0)
                set_classic_theme();
+       else if (strcmp(theme, "bluetitle") == 0)
+               set_bluetitle_theme();
        else if (strcmp(theme, "blackbg") == 0)
                set_blackbg_theme();
        else if (strcmp(theme, "mono") == 0)
index ed22b13f846092fdb9a6843f80ce15b90b1ca293..59926739d1691c537eb1c76a544c603c8004e283 100644 (file)
@@ -171,7 +171,8 @@ static const char mconf_readme[] = N_(
 "Available themes are\n"
 " mono       => selects colors suitable for monochrome displays\n"
 " blackbg    => selects a color scheme with black background\n"
-" classic    => theme with blue background. The classic look. (default)\n"
+" classic    => theme with blue background. The classic look\n"
+" bluetitle  => a LCD friendly version of classic. (default)\n"
 "\n"),
 menu_instructions[] = N_(
        "Arrow keys navigate the menu.  "