From: Sam Ravnborg <sam@ravnborg.org>
To: LKML <linux-kernel@vger.kernel.org>,
Roman Zippel <zippel@linux-m68k.org>,
Andrew Morton <akpm@osdl.org>
Subject: [PATCH 3/3] kconfig/lxdialog: add bluetitle color scheme
Date: Mon, 24 Jul 2006 13:39:14 +0200 [thread overview]
Message-ID: <20060724113914.GD22806@mars.ravnborg.org> (raw)
In-Reply-To: <20060724113641.GA22806@mars.ravnborg.org>
>From 911310907eca1e8c1feea41d9e1e3860f4eb3815 Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <sam@mars.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@ravnborg.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
next prev parent reply other threads:[~2006-07-24 11:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-24 11:36 [PATCH 0/3] kconfig/lxdialog: color theme support Sam Ravnborg
2006-07-24 11:37 ` [PATCH 1/3] kconfig/lxdialog: refactored color settings Sam Ravnborg
2006-07-24 11:38 ` [PATCH 2/3] kconfig/lxdialog: add support for color themes and add blackbg theme Sam Ravnborg
2006-07-24 12:25 ` Roman Zippel
2006-07-24 13:04 ` Sam Ravnborg
2006-07-24 11:39 ` Sam Ravnborg [this message]
2006-07-24 12:28 ` [PATCH 3/3] kconfig/lxdialog: add bluetitle color scheme Roman Zippel
2006-07-24 13:15 ` Sam Ravnborg
2006-07-24 13:37 ` Roman Zippel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060724113914.GD22806@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®