Compare commits

...

2 Commits

Author SHA1 Message Date
David Rodenkirchen
edf1d70b54 Bump to Version 0.3.5 (Sessioning Rework / Catering UI Improvement) 2026-02-23 21:46:47 +01:00
David Rodenkirchen
8b02390bee Make disabled catering items clearer 2026-02-23 21:46:06 +01:00
2 changed files with 7 additions and 6 deletions

View File

@ -1 +1 @@
0.3.4 0.3.5

View File

@ -42,14 +42,14 @@ class CateringSelectionItem(Component):
content=Column( content=Column(
Row( Row(
Text(article_name_top, align_x=0, overflow="wrap", min_width=19, Text(article_name_top, align_x=0, overflow="wrap", min_width=19,
style=TextStyle(fill=self.session.theme.background_color, font_size=0.9)), style=TextStyle(fill=self.session.theme.background_color, font_size=0.9), strikethrough=not self.is_sensitive),
Text(AccountingService.make_euro_string_from_decimal(self.article_price), Text(AccountingService.make_euro_string_from_decimal(self.article_price),
style=TextStyle(fill=self.session.theme.background_color, font_size=0.9)), style=TextStyle(fill=self.session.theme.background_color, font_size=0.9)),
IconButton( IconButton(
icon="material/add", icon="material/add" if self.is_sensitive else "material/do_not_disturb_on_total_silence",
min_size=2, min_size=2,
color=self.session.theme.success_color, color=self.session.theme.success_color if self.is_sensitive else self.session.theme.danger_color,
style="plain-text", style="colored-text",
on_press=lambda: self.on_add_callback(self.article_id), on_press=lambda: self.on_add_callback(self.article_id),
is_sensitive=self.is_sensitive is_sensitive=self.is_sensitive
), ),
@ -66,7 +66,8 @@ class CateringSelectionItem(Component):
align_x=0, align_x=0,
overflow="wrap", overflow="wrap",
min_width=19, min_width=19,
style=TextStyle(fill=self.session.theme.background_color, font_size=0.6) style=TextStyle(fill=self.session.theme.background_color, font_size=0.6),
strikethrough=not self.is_sensitive
), ),
margin_top=0 margin_top=0
), ),