add edit step + do recipe in main view, added carousel for recipe selection

This commit is contained in:
2026-03-12 22:57:15 +01:00
parent 90257a62a0
commit d5dacb8fc4
21 changed files with 1052 additions and 279 deletions

View File

@@ -48,23 +48,25 @@ class ButtonsManager(View):
has_buttons = self.current_view.has_button()
# Draw left button
if has_buttons[0]:
draw.circle((10, 10), 2, fill='black')
self.current_view.render_left_press(draw, 20, 10)
# draw.circle((10, 10), 2, fill='black')
self.current_view.render_left_press(draw, 10, 10)
if has_buttons[1]:
y = self.size[1] - 10
draw_long_press(draw, (10, y))
self.current_view.render_left_long_press(draw, 24, y)
# draw_long_press(draw, (10, y))
self.current_view.render_left_long_press(draw, 10, y)
# Draw right button
if has_buttons[2]:
draw.circle((self.size[0] - 10, 10), 2, fill='black')
self.current_view.render_right_press(draw, self.size[0] - 20, 4)
# draw.circle((self.size[0] - 10, 10), 2, fill='black')
self.current_view.render_right_press(draw, self.size[0] - 10, 4)
if has_buttons[3]:
y = self.size[1] - 10
draw_long_press(draw, (self.size[0] - 10, y))
self.current_view.render_right_long_press(draw, self.size[0] - 24, y)
# draw_long_press(draw, (self.size[0] - 10, y))
self.current_view.render_right_long_press(draw, self.size[0] - 10, y)
self.current_view.render_both_long_press(draw, self.size[0] // 2, self.size[1] - 10)
return im