colors: Add light theme support.

This commit is contained in:
Dylan Araps 2018-02-03 10:16:05 +11:00
parent 0c9148aa96
commit c4b5a667c9

View File

@ -64,7 +64,7 @@ def create_palette(img, colors, light):
if light:
# Manually adjust colors.
raw_colors[7] = raw_colors[0]
raw_colors[0] = util.lighten_color(raw_colors[15], 0.9)
raw_colors[0] = util.lighten_color(raw_colors[15], 0.85)
raw_colors[15] = raw_colors[7]
raw_colors[8] = util.lighten_color(raw_colors[7], 0.25)