mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 03:26:16 +00:00
AAAA
This commit is contained in:
parent
b30e336ae6
commit
d9714da918
4 changed files with 14 additions and 10 deletions
|
@ -3,7 +3,7 @@ OnlyLegs filters
|
|||
Custom Jinja2 filters
|
||||
"""
|
||||
from flask import Blueprint
|
||||
from onlylegs.utils import contrast
|
||||
from onlylegs.utils.colour import contrast
|
||||
|
||||
|
||||
blueprint = Blueprint("filters", __name__)
|
||||
|
@ -19,4 +19,4 @@ def colour_contrast(colour):
|
|||
bright = "var(--fg-white)"
|
||||
dark = "var(--fg-black)"
|
||||
|
||||
return "color: RGB(" + contrast.contrast(colour, dark, bright) + ");"
|
||||
return "color: RGB(" + contrast(colour, dark, bright) + ");"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue