byobu-config, byobu-select-profile: make color selection more readable

This commit is contained in:
Dustin Kirkland 2009-12-07 12:34:50 -06:00
commit 52cfadee3a
3 changed files with 11 additions and 3 deletions

View file

@ -140,7 +140,14 @@ def select_color(screen, size, layer):
li = Listbox(height = 8, width = 60, scroll = 1, returnExit = 1)
for choice in commands.getoutput('byobu-select-profile -l').splitlines():
li.append(choice, choice)
(intensity, color) = choice.split("_")
if choice == "light_grey":
choice_desc = "white"
elif intensity == "dark":
choice_desc = color
else:
choice_desc = "%s (light)" % color
li.append(choice_desc, choice)
bb = ButtonBar(screen, ((_("Apply"), "apply"), (_("Cancel"), "cancel", ESC)), compact = 1)

View file

@ -89,11 +89,11 @@ prompt() {
i=1
for x in $COLORS; do
test $i -lt 10 2>/dev/null && echo -n " " || echo -n " "
echo "$i. dark_$x"
echo "$i. $x"
i=$(expr $i + 1)
[ "$simple" = "$x" ] && simple=$i
test $i -lt 10 2>/dev/null && echo -n " " || echo -n " "
echo "$i. light_$x"
echo "$i. $x (light)"
i=$(expr $i + 1)
done
echo

1
debian/changelog vendored
View file

@ -47,6 +47,7 @@ byobu (2.40) unreleased; urgency=low
default values, making it easier for users to customize themselves
* bin/custom, byobu-config, byobu.1, profiles/common, rpm/byobu.spec,
statusrc: add support for a custom status script indicator
* byobu-config, byobu-select-profile: make color selection more readable
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600