From 22126706e89e68d7a8015b78c2d14fa0f308706d Mon Sep 17 00:00:00 2001 From: Vladyslav Hroshev Date: Sun, 31 Dec 2023 22:24:15 +0200 Subject: [PATCH] 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 --- colors.json | 6 +++--- scripts/theme.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/colors.json b/colors.json index 16735ab..612d93e 100644 --- a/colors.json +++ b/colors.json @@ -418,7 +418,7 @@ "dark" : { "s" : 0, - "l" : 255, + "l" : 100, "a" : 0.03 } }, @@ -433,7 +433,7 @@ "dark" : { "s" : 0, - "l" : 255, + "l" : 100, "a" : 0.07 } }, @@ -449,7 +449,7 @@ "dark" : { "s" : 0, - "l" : 255, + "l" : 100, "a" : 0.1 } }, diff --git a/scripts/theme.py b/scripts/theme.py index abb4f22..a7ab4ac 100644 --- a/scripts/theme.py +++ b/scripts/theme.py @@ -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})"))