epub converter: fix

This commit is contained in:
shirshasa
2021-06-15 11:29:47 +03:00
parent d3c5c8d662
commit bd364cd097
3 changed files with 8 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ def str2color_name(s: str):
if s in ['#FFD472', '#F47B4D', '#FFFBEF', '#F47B4D']:
return 'olive'
if s in ['#B0DFD7', '#EFF8F6', '#5CC4B7']:
return 'teal2'
return 'teal'
name = get_hex_color_name(s)
if (name == 'white') and (s.lower() not in ['#ffffff', '#fff']):
name = 'gray'