mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-02-10 07:19:31 +01:00
colors: Don't overdarken
This commit is contained in:
parent
ef9f8f28c9
commit
182479b795
@ -55,10 +55,7 @@ def sort_colors(img, colors):
|
|||||||
raw_colors = colors[:1] + colors[9:] + colors[8:]
|
raw_colors = colors[:1] + colors[9:] + colors[8:]
|
||||||
|
|
||||||
# Darken the background color if it's too light.
|
# Darken the background color if it's too light.
|
||||||
if int(raw_colors[0][1]) in [3, 4]:
|
if int(raw_colors[0][1]) >= 3:
|
||||||
raw_colors[0] = util.darken_color(raw_colors[0], 0.50)
|
|
||||||
|
|
||||||
elif int(raw_colors[0][1]) >= 5:
|
|
||||||
raw_colors[0] = util.darken_color(raw_colors[0], 0.25)
|
raw_colors[0] = util.darken_color(raw_colors[0], 0.25)
|
||||||
|
|
||||||
colors = {"wallpaper": img}
|
colors = {"wallpaper": img}
|
||||||
|
Loading…
Reference in New Issue
Block a user