mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2 0/3] kconfig/lxdialog: color theme support
Date: Fri, 28 Jul 2006 18:43:20 +0200	[thread overview]
Message-ID: <20060728164320.GA29662@mars.ravnborg.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0607281826200.4972@yvahk01.tjqt.qr>

On Fri, Jul 28, 2006 at 06:29:05PM +0200, Jan Engelhardt wrote:
> 
> > Second iteration of the patchset to add color theme support to lxdialog.
> > This patchset allow the menuconfig user to select between a number of
> > different color themes for menuconfig:
> > blackbg, classic, mono and bluetitle
> 
> Ain't nobody say the kernel lacks customization!
> 
> It would have been nice to do the following,
> 
> diff --fast -Ndpru -x '*.cmd' lxdialog~/util.c lxdialog/util.c
> --- lxdialog~/util.c	2006-07-28 16:37:28.499577000 +0200
> +++ lxdialog/util.c	2006-07-28 16:52:09.929577000 +0200
> @@ -63,6 +63,42 @@ do {                               \
>  	dlg.dialog.hl = (h);       \
>  } while (0)
>  
> +static void set_classiciv_theme(void)
> +{
> +	dlg = (const struct dialog_info){
> +		.screen                = {0, COLOR_CYAN,   COLOR_BLUE,  true},
> +		.shadow                = {0, COLOR_BLACK,  COLOR_BLACK, true},
> ...
> +		.uarrow                = {0, COLOR_GREEN,  COLOR_WHITE, true},
> + 		.darrow                = {0, COLOR_GREEN,  COLOR_WHITE, true},
> +	};
> +	return;
> +}
> 
> Which uses a nice memcpy call rather than tons of MOVs (assembler insns). 
> Unfortuantely it truncates ->title.

Current schme allows us to have a grand master theme that can be default
and then justified as needed - like in the 'bluetitle' case.

And for this purposes this is all about readability and not code-speed.

	Sam

      reply	other threads:[~2006-07-28 16:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-25  6:56 Sam Ravnborg
2006-07-25  7:01 ` [PATCH v2 1/3] kconfig/lxdialog: refactor color support Sam Ravnborg
2006-07-25  7:02 ` [PATCH v2 2/3] kconfig/lxdialog: add support for color themes and add blackbg theme Sam Ravnborg
2006-07-25  7:02 ` [PATCH v2 3/3] kconfig/lxdialog: add a new theme bluetitle which is now default Sam Ravnborg
2006-07-25  7:09 ` [PATCH v2 0/3] kconfig/lxdialog: color theme support Sam Ravnborg
2006-07-27  0:25 ` Roman Zippel
2006-07-28 16:29   ` Jan Engelhardt
2006-07-28 16:43     ` Sam Ravnborg [this message]

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=20060728164320.GA29662@mars.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.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®