mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-11-22 05:26:02 -08:00
Update color lightness values to 100 in colors.json and fix RGB conversion in theme.py
Incorrect RGB values in borders was seen in #14
This commit is contained in:
@@ -103,7 +103,7 @@ class Theme:
|
||||
alpha = self.colors["elements"][element][theme_mode]["a"]
|
||||
|
||||
# convert hsl to rgb and multiply every item
|
||||
red, green, blue = [int(item * 256) for item in colorsys.hls_to_rgb(h, lightness, saturation)]
|
||||
red, green, blue = [int(item * 255) for item in colorsys.hls_to_rgb(h, lightness, saturation)]
|
||||
|
||||
replaced_colors.append((element, f"rgba({red}, {green}, {blue}, {alpha})"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user