Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UI/layout code #233

Open
alokmenghrajani opened this issue Aug 19, 2020 · 0 comments
Open

Improve UI/layout code #233

alokmenghrajani opened this issue Aug 19, 2020 · 0 comments

Comments

@alokmenghrajani
Copy link
Contributor

alokmenghrajani commented Aug 19, 2020

The graphical UI code was an afterthought (the initial design was a command line tool). As a result, the code doesn't use the right design patterns (e.g. there's no MVC). We also place text at fixed offset which only works for a single screen resolution (and assumes the system font is a specific height).

We should consider either:

  • improving the layout code to be screen resolution / font agnostic.
  • rendering AWT to a frame buffer.
  • running X/Wayland and have the Java code be a normal applet.
  • some other alternative.

A better UI code would make adding new screens easier (such as backup/export wallet, audit ACLs, etc.)

A related area for improvement is error handling. E.g. making sure we give a clear message if the C code isn't running or if it failed its self checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant