Compare commits

..

No commits in common. "edf1d70b5477035fd2d7eb404f52869ef9e9ecab" and "b47eefe615922b730b1fde0fcc5546f859634a06" have entirely different histories.

2 changed files with 6 additions and 7 deletions

View File

@ -1 +1 @@
0.3.5 0.3.4

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), strikethrough=not self.is_sensitive), style=TextStyle(fill=self.session.theme.background_color, font_size=0.9)),
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" if self.is_sensitive else "material/do_not_disturb_on_total_silence", icon="material/add",
min_size=2, min_size=2,
color=self.session.theme.success_color if self.is_sensitive else self.session.theme.danger_color, color=self.session.theme.success_color,
style="colored-text", style="plain-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,8 +66,7 @@ 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
), ),