mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-08-16 17:21:00 +02:00
colors: fix test
This commit is contained in:
@ -75,7 +75,7 @@ def generic_adjust(colors, light):
|
|||||||
|
|
||||||
def saturate_colors(colors, amount):
|
def saturate_colors(colors, amount):
|
||||||
"""Saturate all colors."""
|
"""Saturate all colors."""
|
||||||
if float(amount) <= 1.0:
|
if amount and float(amount) <= 1.0:
|
||||||
for i, _ in enumerate(colors):
|
for i, _ in enumerate(colors):
|
||||||
if i not in [0, 7, 8, 15]:
|
if i not in [0, 7, 8, 15]:
|
||||||
colors[i] = util.saturate_color(colors[i], float(amount))
|
colors[i] = util.saturate_color(colors[i], float(amount))
|
||||||
|
Reference in New Issue
Block a user