mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
fix: dynamic scheme import <3.0.0 compat
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from materialyoucolor.blend import Blend
|
||||
from materialyoucolor.dynamiccolor.dynamic_scheme import DynamicScheme
|
||||
from materialyoucolor.dynamiccolor.material_dynamic_colors import MaterialDynamicColors
|
||||
from materialyoucolor.hct import Hct
|
||||
from materialyoucolor.scheme.scheme_content import SchemeContent
|
||||
@@ -13,6 +12,11 @@ from materialyoucolor.scheme.scheme_tonal_spot import SchemeTonalSpot
|
||||
from materialyoucolor.scheme.scheme_vibrant import SchemeVibrant
|
||||
from materialyoucolor.utils.math_utils import difference_degrees, rotation_direction, sanitize_degrees_double
|
||||
|
||||
try:
|
||||
from materialyoucolor.dynamiccolor.dynamic_scheme import DynamicScheme
|
||||
except ImportError:
|
||||
from materialyoucolor.scheme.dynamic_scheme import DynamicScheme
|
||||
|
||||
|
||||
def hex_to_hct(hex: str) -> Hct:
|
||||
return Hct.from_int(int(f"0xFF{hex}", 16))
|
||||
|
||||
Reference in New Issue
Block a user