From b8886532f1fdda19686667774e192b13c6fba0dc Mon Sep 17 00:00:00 2001 From: kdmukai Date: Fri, 1 Oct 2021 14:26:36 -0500 Subject: [PATCH] Reusable text vertical centering --- docs/code_structure.md | 4 +- src/seedsigner/controller.py | 6 ++- src/seedsigner/gui/components.py | 61 ++++++++++++++++++++----------- src/seedsigner/views/demo.py | 0 src/seedsigner/views/menu_view.py | 3 +- src/seedsigner/views/view.py | 6 ++- 6 files changed, 51 insertions(+), 29 deletions(-) delete mode 100644 src/seedsigner/views/demo.py diff --git a/docs/code_structure.md b/docs/code_structure.md index eace7bf7..50b7d315 100644 --- a/docs/code_structure.md +++ b/docs/code_structure.md @@ -11,10 +11,10 @@ The `Controller` then ends up being quite stripped down. For example, there's no * `Model`s: Store the persistent settings, the in-memory seeds, current wallet information, etc. * `Controller`: Manages the state of the world and controls access to global resources. * `View`s: Implementation of each screen. Prepares relevant data for display. Must also instantiate the display objects that will actually render the UI. -* `gui.templates`: Re-usable formatted UI renderers. +* `gui.screens`: Re-usable formatted UI renderers. * `gui.components`: Basic individual UI elements that are used by the `templates` such as the top nav, buttons, button lists, text displays. -In an typical webserver context the `View` would send data to an html template (e.g. Jinja) which would then dynamically populate the page with html elements like ``, `