aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-07-24 16:19:51 -0400
committerSam Ravnborg <sam@neptun.ravnborg.org>2006-09-30 05:19:19 -0400
commit350b5b76384e77bcc58217f00455fdbec5cac594 (patch)
tree462d427efc258bc4fa1290f4fb2b7bc8257ef329 /scripts/kconfig
parent458972132a705c4a869002354f7f10f395d08c18 (diff)
kconfig/lxdialog: add a new theme bluetitle which is now default
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>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/lxdialog/util.c17
-rw-r--r--scripts/kconfig/mconf.c3
2 files changed, 18 insertions, 2 deletions
diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c
index 358f9cc19c53..e73a36df93b4 100644
--- a/scripts/kconfig/lxdialog/util.c
+++ b/scripts/kconfig/lxdialog/util.c
@@ -138,6 +138,19 @@ static void set_blackbg_theme(void)
138 DLG_COLOR(darrow, COLOR_RED, COLOR_BLACK, false); 138 DLG_COLOR(darrow, COLOR_RED, COLOR_BLACK, false);
139} 139}
140 140
141static void set_bluetitle_theme(void)
142{
143 set_classic_theme();
144 DLG_COLOR(title, COLOR_BLUE, COLOR_WHITE, true);
145 DLG_COLOR(button_key_active, COLOR_YELLOW, COLOR_BLUE, true);
146 DLG_COLOR(button_label_active, COLOR_WHITE, COLOR_BLUE, true);
147 DLG_COLOR(searchbox_title, COLOR_BLUE, COLOR_WHITE, true);
148 DLG_COLOR(position_indicator, COLOR_BLUE, COLOR_WHITE, true);
149 DLG_COLOR(tag, COLOR_BLUE, COLOR_WHITE, true);
150 DLG_COLOR(tag_key, COLOR_BLUE, COLOR_WHITE, true);
151
152}
153
141/* 154/*
142 * Select color theme 155 * Select color theme
143 */ 156 */
@@ -145,9 +158,11 @@ static int set_theme(const char *theme)
145{ 158{
146 int use_color = 1; 159 int use_color = 1;
147 if (!theme) 160 if (!theme)
148 set_classic_theme(); 161 set_bluetitle_theme();
149 else if (strcmp(theme, "classic") == 0) 162 else if (strcmp(theme, "classic") == 0)
150 set_classic_theme(); 163 set_classic_theme();
164 else if (strcmp(theme, "bluetitle") == 0)
165 set_bluetitle_theme();
151 else if (strcmp(theme, "blackbg") == 0) 166 else if (strcmp(theme, "blackbg") == 0)
152 set_blackbg_theme(); 167 set_blackbg_theme();
153 else if (strcmp(theme, "mono") == 0) 168 else if (strcmp(theme, "mono") == 0)
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index ed22b13f8460..59926739d169 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -171,7 +171,8 @@ static const char mconf_readme[] = N_(
171"Available themes are\n" 171"Available themes are\n"
172" mono => selects colors suitable for monochrome displays\n" 172" mono => selects colors suitable for monochrome displays\n"
173" blackbg => selects a color scheme with black background\n" 173" blackbg => selects a color scheme with black background\n"
174" classic => theme with blue background. The classic look. (default)\n" 174" classic => theme with blue background. The classic look\n"
175" bluetitle => a LCD friendly version of classic. (default)\n"
175"\n"), 176"\n"),
176menu_instructions[] = N_( 177menu_instructions[] = N_(
177 "Arrow keys navigate the menu. " 178 "Arrow keys navigate the menu. "