start implementing edit_recipe
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
def draw_clock(draw, position, radius=16, width=1):
|
||||
def draw_clock(draw, position, radius=16, width=1, color='black'):
|
||||
"""Draw a simple clock icon at the given position"""
|
||||
x, y = position
|
||||
draw.circle((x, y), radius, outline='black', width=width)
|
||||
draw.line((x, y - radius + 2, x, y), fill='black', width=width) # Hour hand
|
||||
draw.line((x, y, x + radius * 3 / 4, y), fill='black', width=width) # Minute hand
|
||||
draw.circle((x, y), radius, outline=color, width=width)
|
||||
draw.line((x, y - radius + 2, x, y), fill=color, width=width) # Hour hand
|
||||
draw.line((x, y, x + radius * 3 / 4, y), fill=color, width=width) # Minute hand
|
||||
|
||||
def draw_long_press(draw, position):
|
||||
"""Draw a long press button icon at the given position"""
|
||||
|
||||
Reference in New Issue
Block a user