@@ -61,9 +61,11 @@ def draw_color_picker(screen):
61
61
62
62
left_margin = 85
63
63
64
+ top_margin = screen_height - COLOR_PICKER_HEIGHT
65
+
64
66
# print(screen_height, screen_width)
65
67
66
- pygame .draw .rect (screen ,(212 ,208 ,200 ),(0 ,screen_height - COLOR_PICKER_HEIGHT ,screen_width ,COLOR_PICKER_HEIGHT ),0 )
68
+ pygame .draw .rect (screen ,(212 ,208 ,200 ),(0 ,top_margin ,screen_width ,COLOR_PICKER_HEIGHT ),0 )
67
69
pygame .draw .rect (screen ,(255 ,255 ,255 ),(left_margin - 3 ,screen_height - 52 ,352 ,49 ),0 )
68
70
69
71
for index , default_color in enumerate (default_colors ):
@@ -101,7 +103,8 @@ def draw_color_picker(screen):
101
103
pygame .draw .rect (screen ,get_secondary_color (),(25 + (size_block // 2 ),screen_height - 45 + (size_block // 2 ),size_block ,size_block ),0 )
102
104
pygame .draw .rect (screen ,get_primary_color (),(25 ,screen_height - 45 ,size_block ,size_block ),0 )
103
105
104
- pygame .draw .line (screen , (255 ,255 ,255 ), (0 , screen_height - COLOR_PICKER_HEIGHT ), (screen_width , screen_height - COLOR_PICKER_HEIGHT ))
106
+ pygame .draw .line (screen , (255 ,255 ,255 ), (0 , top_margin ), (screen_width , top_margin ))
107
+ pygame .draw .line (screen , (128 ,128 ,128 ), (0 , screen_height - 1 ), (screen_width , screen_height - 1 ))
105
108
106
109
def check_positions (pos , color_func ):
107
110
for index , color_position in enumerate (color_positions ):
0 commit comments