lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20060724113914.GD22806@mars.ravnborg.org>
Date:	Mon, 24 Jul 2006 13:39:14 +0200
From:	Sam Ravnborg <sam@...nborg.org>
To:	LKML <linux-kernel@...r.kernel.org>,
	Roman Zippel <zippel@...ux-m68k.org>,
	Andrew Morton <akpm@...l.org>
Subject: [PATCH 3/3] kconfig/lxdialog: add bluetitle color scheme

>From 911310907eca1e8c1feea41d9e1e3860f4eb3815 Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <sam@...s.ravnborg.org>
Date: Mon, 24 Jul 2006 13:30:05 +0200
Subject: [PATCH] kconfig/lxdialog: add bluetitle color scheme

Originally from -mm but modofied to the new color scheme support

Signed-off-by: Sam Ravnborg <sam@...nborg.org>
---
 scripts/kconfig/lxdialog/util.c |   14 ++++++++++++++
 scripts/kconfig/mconf.c         |    1 +
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/scripts/kconfig/lxdialog/util.c b/scripts/kconfig/lxdialog/util.c
index e3b1462..99f88b4 100644
--- a/scripts/kconfig/lxdialog/util.c
+++ b/scripts/kconfig/lxdialog/util.c
@@ -102,6 +102,18 @@ static void set_blackbg_theme(void)
 	DLG_MODIFY(darrow, COLOR_RED, COLOR_BLACK, false);
 }
 
+static void set_bluetitle_theme(void)
+{
+	DLG_MODIFY(title, COLOR_BLUE, COLOR_WHITE,  true);
+	DLG_MODIFY(button_label_active, COLOR_BLUE, COLOR_BLUE,   true);
+	DLG_MODIFY(searchbox_title,     COLOR_BLUE, COLOR_WHITE,  true);
+	DLG_MODIFY(position_indicator,  COLOR_BLUE, COLOR_WHITE,  true);
+	DLG_MODIFY(tag,                 COLOR_BLUE, COLOR_WHITE,  true);
+	DLG_MODIFY(tag_selected,        COLOR_BLUE, COLOR_BLUE,   true);
+	DLG_MODIFY(tag_key,             COLOR_BLUE, COLOR_WHITE,  true);
+	DLG_MODIFY(tag_key_selected,    COLOR_BLUE, COLOR_BLUE,   true);
+}
+
 static void init_one_color(struct dialog_color *color)
 {
 	static int pair = 0;
@@ -153,6 +165,8 @@ static int set_color_theme(const char *t
 	int use_color = 1;
 	if (!strncasecmp (theme, "blackbg", sizeof("blackbg")))
 		set_blackbg_theme();
+	if (!strncasecmp (theme, "bluetitle", sizeof("bluetitle")))
+		set_bluetitle_theme();
 	else if (!strncasecmp(theme, "mono", sizeof("mono")))
 		use_color = 0;
 	return use_color;
diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c
index d518161..ce36eaa 100644
--- a/scripts/kconfig/mconf.c
+++ b/scripts/kconfig/mconf.c
@@ -171,6 +171,7 @@ 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"
+" bluetitle => replace yellow titles with blue in classic scheme\n"
 "\n"),
 menu_instructions[] = N_(
 	"Arrow keys navigate the menu.  "
-- 
1.4.1.rc2.gfc04

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ