Commit Graph

1351 Commits

Author SHA1 Message Date
tomFlowee fadf247838 Add context to translation 2023-02-21 15:52:16 +01:00
tomFlowee f7c1d100ee Update crowdin and do my translations 2023-02-21 15:51:40 +01:00
tomFlowee 15da1acc19 Make i18n target include all the cpp sources 2023-02-21 15:50:47 +01:00
tomFlowee a00f21e4e2 Move calculation of fees to c++
Add a property 'fees' to the TransactionInfo class and use it.

This also changes the GUI behavior of the 'sent' field a little.
In the GUI we now show the amount actually meant to arrive on the other
address(es) instead of the amount our wallet became more empty.

This makes a lot of sense if you look at your transaction and compare to
an invoice, now the 'sent' field will match that invoice and it will
match what the receiver actually received.
2023-02-20 18:10:35 +01:00
tomFlowee 02638b45bd Fix alignment
Just because we have two labels with the same font doesn't mean they are
the same hight, especially when using special characters.
2023-02-20 18:05:22 +01:00
tomFlowee 3ad8cba5a7 Re-do the price details QML
For less copy/paste code and more declarative design.
2023-02-20 17:04:54 +01:00
tomFlowee ee5d996963 Tweak GUI; show current currency. 2023-02-20 16:21:08 +01:00
tomFlowee 5e2e4c1bc4 Fix historical pricing data-state. 2023-02-20 16:20:43 +01:00
tomFlowee e78bf974c8 Add currency selection to menu. 2023-02-20 12:15:49 +01:00
tomFlowee b828a69332 Add BCH-unit choice to settings 2023-02-20 11:29:39 +01:00
tomFlowee 5e2976e803 When we load historical price, emit that change
So the QML that was already loaded can use it.
2023-02-20 10:54:21 +01:00
tomFlowee 44131aa4df Remove no longer used 'mock' method. 2023-02-20 10:52:58 +01:00
tomFlowee 64071e8ca8 i18n: Disambiguation added. 2023-02-20 10:11:26 +01:00
tomFlowee 28cbd58294 Replace placeholder button with image 2023-02-19 18:53:53 +01:00
tomFlowee aa0a505f8f Add price details popup
Show the current price, historical price-differences and a button to
change the currency.
2023-02-19 18:42:33 +01:00
tomFlowee a8264538c0 Payment::reset() should not delete the exchange rate
to reset the payment removes all user set properties, giving you a clean
payment object.
Since the exchange rate is both not user-set and also not something that
is expected to change between one payment and the next, it is now no
longer cleared on reset().
2023-02-18 16:25:33 +01:00
tomFlowee 155647d7ac Add docs and make input selector work again
Document various of the Payment properties better and make the input
selector use the multi-detail getter for price.
2023-02-17 19:22:24 +01:00
tomFlowee 26075e3dc2 Fix colors in this screen too 2023-02-14 18:58:40 +01:00
tomFlowee 2809685ecb UX improvcements of highlights.
Make selected list-item and selectd-tab consistent in coloring and layout.
This improves contrast dramatically and should make things easier to
understand.
2023-02-14 18:44:53 +01:00
tomFlowee 6832870ba2 Use the width from the parent instead of root.
This centers it better again and avoid future issues by using the local
sizes instead of some parent.
2023-02-14 17:49:16 +01:00
tomFlowee 9cd6202da4 Consistency in colors 2023-02-14 17:31:03 +01:00
tomFlowee e0056fd8c5 Use the highlight color more properly 2023-02-14 15:56:11 +01:00
tomFlowee 6bb3d901eb Adjust max width 2023-02-14 15:30:59 +01:00
tomFlowee a04b529cb8 Fixes in color/fontsize 2023-02-14 15:30:41 +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 ab75be981e Add landing page
For all times we start with a completely empty Flowee Pay, show a
landing page which guides the user to create a new wallet or deposit
funds into the default wallet.
2023-02-09 18:25:10 +01:00
tomFlowee 7cbea5f5a4 Add title to currency selector. 2023-02-09 18:23:11 +01:00
tomFlowee 5920d410f4 Move feedback text to not fall outside widget 2023-02-09 18:22:27 +01:00
tomFlowee 6f36028ebb Fix functioning of Esc in netview. 2023-02-09 18:21:57 +01:00
tomFlowee b8ea2079a3 fix qrwidget. 2023-02-09 15:37:22 +01:00
tomFlowee 5ab0290815 Fix reference missing issue. 2023-02-09 14:56:56 +01:00
tomFlowee a7551e1ab2 Avoid multiple copies, add shared QRWidget 2023-02-09 14:56:39 +01:00
tomFlowee 29a9a7d2ea Add some more wallet details 2023-02-09 12:29:38 +01:00
tomFlowee 76be7f2473 Add showing of the keys/addresses for any HD wallet. 2023-02-09 11:37:57 +01:00
tomFlowee f1f8a87fc6 Move line back to the desktop usage
this got moved to the shared component, but it only works in the single
usage of the desktop. Move it back there.
2023-02-09 11:37:26 +01:00
tomFlowee cf76158e53 Last minute tweaks
Make the error not overlap when using larger text.
2023-02-08 21:11:20 +01:00
tomFlowee 9f39a9f54f Make the logic simpler
Move the logic for fiat to the payment object too and simplify the need
for code by defining this can only be called in the single-output mode.
2023-02-08 20:55:24 +01:00
tomFlowee 9ba23d20e7 Actually add a backspace image. 2023-02-08 20:10:47 +01:00
tomFlowee f1f0f113d7 Remove some of the camera work arounds
Since we have seen a lot of bugfixes in the multimedia library, we can
make this all faster and simpler.
2023-02-08 18:23:18 +01:00
tomFlowee 9b87590bd9 Fixes in currency number construction
Now tested with more currencies.
2023-02-08 18:23:18 +01:00
tomFlowee 40b0b6e3b8 Fix spacing of currency field. 2023-02-08 18:23:18 +01:00
tomFlowee 028c496712 Various bugfixes and tweaks.
Also remove the testing setup again.
2023-02-08 18:23:18 +01:00
tomFlowee a2969750c9 Fully switch currency on failure.
Also add some logging and add an emit on the new currency being set
because sometimes the fetch from server takes very long.
2023-02-08 14:29:02 +01:00
tomFlowee a475a99371 Add feature: autoprepare
For the payment object it now is possible to insta-commit to changes and
as such always prepare a transaction ready to be sent with the latest of
the settings.

This is enabled with a boolean property 'autoPrepare' (default off).
2023-02-08 14:14:06 +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 939deb21cf Layout improvements. 2023-02-08 14:08:10 +01:00
tomFlowee 7b1333862c Make the non-detailed payment API use 'max'.
The Payment::paymentAmount() method is for the usecase where the GUI
doesn't care about the input/output details.
Its unused in the desktop GUI.

This method now takes into account the concept of 'max', returning the
full wallet amount if its set.
2023-02-08 10:23:28 +01:00
tomFlowee 738009522c New Qt. 2023-02-08 10:06:18 +01:00
tomFlowee 2aefc20023 Use === instead of ==, following linter suggestion. 2023-02-08 10:05:39 +01:00