better light colors

This commit is contained in:
Dylan Araps 2018-10-24 17:10:09 +11:00
parent 2dc6308e92
commit 18f05944ed
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ def gen_colors(img):
def adjust(cols, light):
"""Create palette."""
raw_colors = [cols[0], *cols, "#FFFFFF",
"#333333", *cols, "#FFFFFF"]
"#000000", *cols, "#FFFFFF"]
return colors.generic_adjust(raw_colors, light)

View File

@ -56,10 +56,10 @@ def generic_adjust(colors, light):
"""Generic color adjustment for themers."""
if light:
for color in colors:
color = util.saturate_color(color, 0.50)
color = util.darken_color(color, 0.4)
color = util.saturate_color(color, 0.60)
color = util.darken_color(color, 0.5)
colors[0] = util.lighten_color(colors[0], 0.9)
colors[0] = util.lighten_color(colors[0], 0.95)
colors[7] = util.darken_color(colors[0], 0.75)
colors[8] = util.darken_color(colors[0], 0.25)
colors[15] = colors[7]