mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
byobu-config, byobu-select-profile: make color selection more readable
This commit is contained in:
parent
f1d0f98a85
commit
52cfadee3a
3 changed files with 11 additions and 3 deletions
|
@ -140,7 +140,14 @@ def select_color(screen, size, layer):
|
||||||
li = Listbox(height = 8, width = 60, scroll = 1, returnExit = 1)
|
li = Listbox(height = 8, width = 60, scroll = 1, returnExit = 1)
|
||||||
|
|
||||||
for choice in commands.getoutput('byobu-select-profile -l').splitlines():
|
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)
|
bb = ButtonBar(screen, ((_("Apply"), "apply"), (_("Cancel"), "cancel", ESC)), compact = 1)
|
||||||
|
|
||||||
|
|
|
@ -89,11 +89,11 @@ prompt() {
|
||||||
i=1
|
i=1
|
||||||
for x in $COLORS; do
|
for x in $COLORS; do
|
||||||
test $i -lt 10 2>/dev/null && echo -n " " || echo -n " "
|
test $i -lt 10 2>/dev/null && echo -n " " || echo -n " "
|
||||||
echo "$i. dark_$x"
|
echo "$i. $x"
|
||||||
i=$(expr $i + 1)
|
i=$(expr $i + 1)
|
||||||
[ "$simple" = "$x" ] && simple=$i
|
[ "$simple" = "$x" ] && simple=$i
|
||||||
test $i -lt 10 2>/dev/null && echo -n " " || echo -n " "
|
test $i -lt 10 2>/dev/null && echo -n " " || echo -n " "
|
||||||
echo "$i. light_$x"
|
echo "$i. $x (light)"
|
||||||
i=$(expr $i + 1)
|
i=$(expr $i + 1)
|
||||||
done
|
done
|
||||||
echo
|
echo
|
||||||
|
|
1
debian/changelog
vendored
1
debian/changelog
vendored
|
@ -47,6 +47,7 @@ byobu (2.40) unreleased; urgency=low
|
||||||
default values, making it easier for users to customize themselves
|
default values, making it easier for users to customize themselves
|
||||||
* bin/custom, byobu-config, byobu.1, profiles/common, rpm/byobu.spec,
|
* bin/custom, byobu-config, byobu.1, profiles/common, rpm/byobu.spec,
|
||||||
statusrc: add support for a custom status script indicator
|
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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue