Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper24 committed Nov 22, 2024
1 parent 8fb9d8c commit 427a1fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/icon-theme/recolor.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,13 @@ def apply_monotones_to_img(img:Image, hsl:Tuple[float,float,float]) -> Image:
""" Replace every instance of color within the given list with their monochrome equivalent in the given image, determined by the given hue, saturation and lightness offset. """

mode = img.mode
h, s, l_offset = hsl
h, s, _ = hsl

if s == 0:
if mode == "RGBA": img = img.convert("LA")
else: img = img.convert("L")
else:
width, height = img.size
l_offset = (l_offset - 0.5) * 2 # Remapping.

for x in range(width):
for y in range(height):
Expand Down

0 comments on commit 427a1fd

Please sign in to comment.