diff --git a/src/seedsigner/gui/components.py b/src/seedsigner/gui/components.py index 0706f213..9193e451 100644 --- a/src/seedsigner/gui/components.py +++ b/src/seedsigner/gui/components.py @@ -739,7 +739,7 @@ class FormattedAddress(BaseComponent): )) remaining_display_str = remaining_display_str[max_chars_per_line:] - cur_y += char_height + cur_y += char_height + GUIConstants.BODY_LINE_SPACING self.height = cur_y diff --git a/src/seedsigner/gui/screens/psbt_screens.py b/src/seedsigner/gui/screens/psbt_screens.py index 502c3921..36a2b895 100644 --- a/src/seedsigner/gui/screens/psbt_screens.py +++ b/src/seedsigner/gui/screens/psbt_screens.py @@ -511,7 +511,7 @@ class PSBTMathScreen(ButtonListScreen): body_font = Fonts.get_font(GUIConstants.BODY_FONT_NAME, (GUIConstants.BODY_FONT_SIZE)*ssf) fixed_width_font = Fonts.get_font(GUIConstants.FIXED_WIDTH_FONT_NAME, (GUIConstants.BODY_FONT_SIZE + 6)*ssf) - left, top, right, bottom = fixed_width_font.getbbox(self.input_amount + "+") + left, top, right, bottom = fixed_width_font.getbbox(self.input_amount + "Q") digits_width, digits_height = right - left, bottom - top # Draw each line of the equation @@ -550,7 +550,7 @@ class PSBTMathScreen(ButtonListScreen): # spend_amount will be zero on self-transfers; only display when there's an # external recipient. if self.num_recipients > 0: - cur_y += int(digits_height * 1.2) + cur_y += digits_height + GUIConstants.BODY_LINE_SPACING * ssf render_amount( cur_y, f"-{self.spend_amount}", @@ -558,16 +558,16 @@ class PSBTMathScreen(ButtonListScreen): info_text=f""" recipient{"s" if self.num_recipients > 1 else ""}""", ) - cur_y += int(digits_height * 1.2) + cur_y += digits_height + GUIConstants.BODY_LINE_SPACING * ssf render_amount( cur_y, f"-{self.fee_amount}", info_text=f""" fee""", ) - cur_y += int(digits_height * 1.2) + 4 * ssf + cur_y += digits_height + GUIConstants.BODY_LINE_SPACING * ssf draw.line((0, cur_y, image.width, cur_y), fill=GUIConstants.BODY_FONT_COLOR, width=1) - cur_y += 8 * ssf + cur_y += GUIConstants.BODY_LINE_SPACING * ssf render_amount( cur_y,