Skip to content

Commit

Permalink
pre-adjust colors
Browse files Browse the repository at this point in the history
this pre-adjust will ensure that post the generic adjust the colors will match
legacy pywal.
  • Loading branch information
eylles committed May 6, 2024
1 parent 0003a17 commit 49d9665
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pywal/backends/colorthief.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def adjust(cols, light, cols16):
"""Create palette."""
cols.sort(key=util.rgb_to_yiq)
raw_colors = [*cols, *cols]
for color in raw_colors:
color = util.lighten_color(color, 0.40)
raw_colors[0] = util.darken_color(cols[0], 0.80)

return colors.generic_adjust(raw_colors, light, cols16)

Expand Down

0 comments on commit 49d9665

Please sign in to comment.