From df9df468f8e4a37e3b7c9af2ecd2a0f7723ac4a2 Mon Sep 17 00:00:00 2001 From: kdmukai Date: Mon, 28 Aug 2023 09:10:29 -0500 Subject: [PATCH] Additional edge padding on warning screens --- src/seedsigner/gui/screens/screen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/seedsigner/gui/screens/screen.py b/src/seedsigner/gui/screens/screen.py index d82567b3..b229857d 100644 --- a/src/seedsigner/gui/screens/screen.py +++ b/src/seedsigner/gui/screens/screen.py @@ -826,6 +826,7 @@ class LargeIconStatusScreen(ButtonListScreen): status_color: str = GUIConstants.SUCCESS_COLOR status_headline: str = "Success!" # The colored text under the large icon text: str = "" # The body text of the screen + text_edge_padding: int = GUIConstants.EDGE_PADDING button_data: list = None allow_text_overflow: bool = False @@ -861,7 +862,7 @@ class LargeIconStatusScreen(ButtonListScreen): height=self.buttons[0].screen_y - next_y, text=self.text, width=self.canvas_width, - edge_padding=GUIConstants.EDGE_PADDING, # Don't render all the way up to the far left/right edges + edge_padding=self.text_edge_padding, # Don't render all the way up to the far left/right edges screen_y=next_y, allow_text_overflow=self.allow_text_overflow, )) @@ -935,6 +936,7 @@ class WarningEdgesThread(BaseThread): @dataclass class WarningEdgesMixin: status_color: str = GUIConstants.WARNING_COLOR + text_edge_padding: int = 2 * GUIConstants.EDGE_PADDING def __post_init__(self): super().__post_init__()