Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
World
eolie
Commits
98890812
Commit
98890812
authored
Dec 13, 2019
by
Cédric Bellegarde
Browse files
Rework colors
parent
c6eb9021
Pipeline
#137473
passed with stage
in 8 minutes and 41 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
eolie/css_rule_style.py
View file @
98890812
...
...
@@ -290,8 +290,8 @@ class CSSStyleRule:
return
True
else
:
hsla
=
self
.
__get_color_from_rule
(
self
.
__background_color_str
)
if
hsla
[
1
]
>
0.
4
:
hsla
=
(
hsla
[
0
],
hsla
[
1
],
0.
1
,
hsla
[
3
])
if
hsla
[
1
]
>
0.
2
:
hsla
=
(
hsla
[
0
],
hsla
[
1
],
0.
3
,
hsla
[
3
])
else
:
hsla
=
self
.
__get_background_color_for_lightness
(
hsla
[
2
])
hsla_str
=
self
.
__get_hsla_to_css_string
(
hsla
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment