mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-08 01:18:39 +00:00
remove special case white/black pair. doesn't seem needed and breaks white,black,attrs
This commit is contained in:
parent
2f6283ea39
commit
ba3a093746
1 changed files with 1 additions and 5 deletions
|
@ -50,9 +50,7 @@ colors = [
|
||||||
]
|
]
|
||||||
|
|
||||||
# {(fg, bg): pair_number, ...}
|
# {(fg, bg): pair_number, ...}
|
||||||
color_pairs = {
|
color_pairs = {}
|
||||||
("white", "black"): 0 # Special case, can't be changed
|
|
||||||
}
|
|
||||||
|
|
||||||
# Some default color schemes
|
# Some default color schemes
|
||||||
schemes = {
|
schemes = {
|
||||||
|
@ -93,8 +91,6 @@ def init_colors():
|
||||||
counter = 1
|
counter = 1
|
||||||
for fg in colors:
|
for fg in colors:
|
||||||
for bg in colors:
|
for bg in colors:
|
||||||
if fg == "COLOR_WHITE" and bg == "COLOR_BLACK":
|
|
||||||
continue
|
|
||||||
color_pairs[(fg[6:].lower(), bg[6:].lower())] = counter
|
color_pairs[(fg[6:].lower(), bg[6:].lower())] = counter
|
||||||
curses.init_pair(counter, getattr(curses, fg), getattr(curses, bg))
|
curses.init_pair(counter, getattr(curses, fg), getattr(curses, bg))
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue