File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 22from materialyoucolor .palettes .core_palette import CorePalette
33from materialyoucolor .palettes .tonal_palette import TonalPalette
44from materialyoucolor .scheme import Scheme
5- from materialyoucolor .utils .image_utils import source_color_from_image
65from materialyoucolor .dislike .dislike_analyzer import DislikeAnalyzer
76from materialyoucolor .hct import Hct
87
@@ -21,10 +20,10 @@ def __init__(
2120 self .custom_colors = custom_colors
2221
2322
24- def custom_color (custom_color , source_color = None , blend = False ):
25- value = DislikeAnalyzer .fix_if_disliked (Hct .from_int (custom_color ))
23+ def custom_color (custom_color : int , source_color = None , blend = False ):
24+ value = DislikeAnalyzer .fix_if_disliked (Hct .from_int (custom_color )). to_int ()
2625 if blend :
27- value = Blend .harmonize (value , source_color )
26+ value = Blend .harmonize (custom_color , source_color )
2827 palette = CorePalette .of (value )
2928 tones = palette .a1
3029 return {
You can’t perform that action at this time.
0 commit comments