Add side navigation buttons, functional PIN authentication #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Not sure if this is suitable for merging given the goals of your own personal project, but these are some changes I've made on my own fork and thought at the very least perhaps others looking at the code may be interested in seeing it.
I've added a new asset and some switches in LcarsButton so that it can handle not only the rounded buttons from the original code, but also square "navigation" buttons on the side of the display (which in the original code are just mockups). You need to add a "type" argument when calling LcarsButton (currently either "btn" or "nav"), but its operation is otherwise the same as before.
I've also renamed the existing mock authentication to "Idle", and added in a working authentication screen between it and the main screen (which I've again named authorize.py). This is by no means meant to be an actually secure method of authentication, of course. The PIN can be specified in the authorize.py file, and I tried to use comments to make it clear what needs to be modified. Default PIN is "1234"