color improvements

This commit is contained in:
Ville Rantanen
2016-06-17 11:01:45 +03:00
parent 8a3f4b0c7d
commit db8554a370
2 changed files with 2 additions and 2 deletions

View File

@@ -259,7 +259,7 @@ def page_print(reader,opts,offset):
bc.clear()
# Print header
if opts.dark_colors:
coloring="${U}${b}"
coloring="${b}${U}"
else:
coloring="${U}${Y}"
print(colorify(coloring+page[0],opts))

View File

@@ -149,7 +149,7 @@ inline_match={
'code_special': {'re':re.compile(r'([`]+[^`]+[`]+)([!>])'),
'bc':'${c}\\1${g}\\2','dc':'${m}\\1${r}\\2'}, # `code`! or `code`> for markslider
'link': {'re':re.compile(r'(\[)([^\]]+)(\])(\([^\)]+\))'),
'bc':'${b}\\1${Z}\\2${b}\\3${U}\\4',
'bc':'${B}\\1${Z}\\2${B}\\3${U}\\4',
'dc':'${b}\\1${Z}\\2${b}\\3${U}\\4'}, # [text](link)
'image': {'re':re.compile(r'(!\[[^\]]+\]\([^\)]+\))'),
'bc':'${r}\\1','dc':'${g}\\1'}, # ![text](image)