Commit 98890812 authored by Cédric Bellegarde's avatar Cédric Bellegarde
Browse files

Rework colors

parent c6eb9021
Pipeline #137473 passed with stage
in 8 minutes and 41 seconds
...@@ -290,8 +290,8 @@ class CSSStyleRule: ...@@ -290,8 +290,8 @@ class CSSStyleRule:
return True return True
else: else:
hsla = self.__get_color_from_rule(self.__background_color_str) hsla = self.__get_color_from_rule(self.__background_color_str)
if hsla[1] > 0.4: if hsla[1] > 0.2:
hsla = (hsla[0], hsla[1], 0.1, hsla[3]) hsla = (hsla[0], hsla[1], 0.3, hsla[3])
else: else:
hsla = self.__get_background_color_for_lightness(hsla[2]) hsla = self.__get_background_color_for_lightness(hsla[2])
hsla_str = self.__get_hsla_to_css_string(hsla) hsla_str = self.__get_hsla_to_css_string(hsla)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment