mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-07 08:34:01 +01:00
better light colors
This commit is contained in:
parent
2dc6308e92
commit
18f05944ed
@ -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)
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user