Commit Graph

18 Commits

Author SHA1 Message Date
tomFlowee 752cc9b68a Respect amount of incoming payment request.
A payment request, for instance a QR code, which includes an amount to
be paid is expected to not change the to-be-paid amount, uses being
dropped
in the price editing UI is therefore a bit weird. Almost an
anti-pattern.

This honors that concept and when the price is included in the scanned
QR, we change the UI layout to removed the editing widgets and show
static display widgets instead.

This also adds a header menu item to edit the amount to be paid and
get back to the old UI.
Additionally, a new UI is added to show the address we are about to pay
to, likewise reachable from the header menu.
2023-05-31 15:20:11 +02:00
tomFlowee cfdc72a2f2 Fix centering of text in case of hamburgermenu. 2023-03-15 10:55:36 +01:00
tomFlowee 018a27ceb0 cleanup; use local palette
In Qt5 the palette was introduced in the Control object (part of Qt-
Quick-Controls-2).
In Qt6 this property was moved to the superclass 'Item'.

This means that we no longer need to refer to a control when using a
palette, every single thing in QtQuick is an Item, afterall.
2023-02-21 16:40:46 +01:00
tomFlowee c024321083 Revise colors, especially dark-theme
This gives the dark-theme a make-over with better colors, more colors
coming from the palette and this makes the conceptual usage between the
mobile and desktop clients of colors to be in-line.
2023-02-14 14:56:18 +01:00
tomFlowee 51b5fddc1d Fix sizing
This works around the weirdness that we can inherit from Page, while the
children are actually added to a separate item and that caused confusion
when the sizes of those two were not equal.
This is now fixed, at least for the width.
2023-02-09 19:15:17 +01:00
tomFlowee 49499ed449 Add option for menu to generic Page object
We use "Page" as anything that can be stacked on top of the rest,
now this can have a simple list of menu actions set which will make the
header get a hamburger-menu button to show those actions in the menu.
2023-02-08 14:11:26 +01:00
tomFlowee a224ceb7bc Remove flickable
This does not conceptually seem to work as intended, maybe try something
else later..
2023-02-06 21:59:55 +01:00
tomFlowee 3542fcb284 Make page label use full space when button is invisible 2022-12-16 19:59:31 +01:00
tomFlowee a106048840 drop the wrapping of pages in a grid layout
It now feels like a premature optimization to make anything
that inherets from Page be wrapped in a grid layout.
Notice that a "Page" here is the thing we push on the card-stack, the
Page has the back icon and the header text.
2022-12-05 20:31:00 +01:00
tomFlowee 4d83152ae3 Remove version numbers in imports
This idea has been removed in Qt6.
2022-11-26 10:44:52 +01:00
tomFlowee 427ab30faf Add 'About' screen.
This improves the TextButton to be more re-usable and have an arrow to
make it clear it actually is a button.
Added a sub-text as well.

This made it really easy to make an About page with some subpages or
external links.

Also increased the top-header from 40 to 50 'pixels'.
2022-11-23 16:06:37 +01:00
tomFlowee d8cfc9767d Provide a means to properly move keyboard input
As most of our app will be based on Pages pushed to the stack,
a simple structure to move focus forcefully to the new child
has been added.

Children would basically only need to mark the first item as
taking focus.
2022-11-23 10:35:31 +01:00
tomFlowee 1b2f07bcaf Make page have default margins.
To avoid having to do so in each child-page.
2022-11-22 23:09:47 +01:00
tomFlowee 4cf2dfa8e3 First setup for the NewAccount page. 2022-11-21 20:17:33 +01:00
tomFlowee e426188f95 Boring GUI updates
Add tabbar icon, fix font usage, add basic history list. Show wallet
balance with the right label.
2022-11-18 13:43:04 +01:00
tomFlowee bb8a940fbf Continue implementing the UX design.
This adds account showing and selection.
Icons for the "night-theme" selector.
Improvements to the color set and a splashscreen.
2022-11-17 23:10:06 +01:00
tomFlowee e2ab48e816 Make the phone UI look the same as my Linux one.
We now hardcode the style and I needed to override the Label
in order to explicitly use the palette from the mainWindow. Not
sure why the one on Android behaved different than on Linux.
2022-11-15 15:19:35 +01:00
tomFlowee e2bea6a5af Start basic mobile GUI structure
On the mainscreen have some big tab-buttons for the main features
then we have a menu overlay which can hold various other screens
and features. Those screens will be placed on top of the main
tabbed screen using a stack-view which is common on touch-interfaces.
2022-11-15 11:38:28 +01:00