Commit Graph

1351 Commits

Author SHA1 Message Date
tomFlowee 2a03a3efa6 Re-enable the action.
After moving the AccountSelectorWidget to its own file, the
link to the action was broken. This re-establishes that.
2023-03-13 16:58:05 +01:00
tomFlowee 98b148d4b0 Add edit icon for the swipe action 2023-03-13 16:52:50 +01:00
tomFlowee 8053a77d8d Make Flowee.Dialog useful on mobile 2023-03-13 12:55:17 +01:00
tomFlowee 43c5f250d5 Merge branch 'master' into buildPayment 2023-03-13 12:15:59 +01:00
tomFlowee 17f982af1c Make build transaction screen work
The minimal functionality is in place.
2023-03-13 12:15:56 +01:00
tomFlowee b54ed48c32 Use mainWindow instead of mainScreen
This is easier to support on multiple front-ends.
2023-03-13 12:15:09 +01:00
tomFlowee 594b990dc6 Allow setting the wallet in build transaction. 2023-03-13 12:14:23 +01:00
tomFlowee 76b79a1c0a Rename AccountSelector to {}Popup
Following the pattern of ending with what it is.
We now have Widget and Popup and Page.

The idea is that the widgets and popups are re-usable.
2023-03-13 12:14:23 +01:00
tomFlowee 6d036b0721 Move code to new file
Move the code that shows the account info and amount held in it into a
new file called AccountSelectorWidget
2023-03-13 12:14:23 +01:00
tomFlowee acd80c92f1 Minor fixes. 2023-03-13 12:14:23 +01:00
tomFlowee 8b50ae1ec0 Use the shared QML AddressInfoWidget 2023-03-13 12:14:23 +01:00
tomFlowee a11614a66f Continue adding functionality to the PayToOthers screen 2023-03-13 12:14:23 +01:00
tomFlowee 400f16b636 Make loading and using of the PriceInputWidget work
We now can edit the payment details in our new 'build transaction'
screens.
2023-03-13 12:14:23 +01:00
tomFlowee 697024d823 Fix one more usecase for unknown historical price. 2023-03-13 12:12:42 +01:00
tomFlowee de60a4cdc7 Add color property to MultilineTextField 2023-03-13 11:56:43 +01:00
tomFlowee 8b3a85a88b Synchronize property names
This makes the payment detail (output) have the same property name as the
payment itself which was supposed to just be a proxy for a single-output
payment.
Consistency is good.
2023-03-13 11:56:35 +01:00
tomFlowee a6e9001e4c Fix the cent-less currency display
This partly reverts earlier "fix" from 9b87590 and fixes the
problem in the right place.

fixes #13
2023-03-12 20:45:10 +01:00
tomFlowee 9c79a7402d Use the shared widgets 2023-03-11 22:59:10 +01:00
tomFlowee 8bc4e70d09 Move widgets to their own files
Allow them to be re-used.
2023-03-11 22:59:10 +01:00
tomFlowee 9daefb38d2 Start work on the destination edit page 2023-03-11 22:05:15 +01:00
tomFlowee 7e3542e32d Re-do interaction.
The swipes now makes much more sense and avoids several UX issues.
2023-03-11 20:01:18 +01:00
tomFlowee 1c209a16bc Start new screen: build transaction. 2023-03-10 22:24:31 +01:00
tomFlowee 0659c99b37 Make 'price then' use accurate prices.
If we don't have price info near the mining date, don't show an
inaccurate version.
2023-03-09 22:53:56 +01:00
tomFlowee 784ccfbf38 Allow historical date to be accurate
The backend has the historical prices in its database, we ask for it by
timestamp the by default it returns the nearest value. Typically within
24 hours.

But if the database doesn't have the data, or its very inaccurate, this
may casue confusion.
So we now have a new API call that returns zero instead of an inaccurate
historical price. Allowing us to prefer not showing anything over plain
false data.
2023-03-09 22:46:03 +01:00
tomFlowee 11c2847055 Include mobile_en translations as well.
English "translations" are just there to allow us to have a
different form for singular statements: "1 hour left".
2023-03-04 21:48:10 +01:00
tomFlowee e1165bf66c Update translations from crowdin 2023-03-04 21:48:10 +01:00
tomFlowee fa225772e8 New version 2023.02.1 2023-02-25 19:04:47 +01:00
tomFlowee 8d5a4ffc73 Rename Android package to have 'test' in it.
Since the default option to 'sign' is a self-signed certificate which is
insecure (its in git, absolutely not private), it makes sense to be consistent
and make the default create a test package.

Make it easier on people self-compiling.
2023-02-25 14:45:36 +01:00
tomFlowee 8742108fd1 Use bool instead of list-length 2023-02-24 23:48:26 +01:00
tomFlowee 45768afe63 Tweak the popup menu
- Don't show Details again for already showing details.
- Show encryption menu even if we are in the details pane (because why not)
2023-02-24 23:44:10 +01:00
tomFlowee b13f7d353e Make brand new wallets behave better on initial sync
We now skip building (and sending) of the bloom filter until we have
finished the initial blockheader sync. (only relevant for newly created
wallets).

Additionally we update the WalletInfo with our inital blockheight as
soon as we know about it.
2023-02-24 19:45:12 +01:00
tomFlowee e664b033e4 Move shutdown of app singleton to be earlier
The downside of having the application singleton be the owner of the
wallets is that the destructor won't get called until after main() has
been completed.
And that means that globals deletion order becomes an issue, which is
messy and should be avoided.

This change splits out the saving and deletion of wallets & p2p layer,
making use of the Qt application object signal to delete wallets just
before the QtGuiApplication object destructs. Which is _inside_ of
main().
2023-02-24 19:03:22 +01:00
tomFlowee 9487852033 slighly shorter string 2023-02-22 23:34:15 +01:00
tomFlowee b2d5aea590 Don't show historical price if we don't have any 2023-02-22 22:23:39 +01:00
tomFlowee 46f3bc6ae0 Tweaks to the slider
Make sure that the text doesn't get covered by the thumb
Make the thumb slightly transparant.
2023-02-22 22:23:39 +01:00
tomFlowee fa34cb06d9 Remove placeholder button for now. 2023-02-22 22:23:39 +01:00
tomFlowee e7f2840546 Improve feedback a little
Make sure it doesn't overlap the QR at all.
Allow the user to press it a second time to make the text go away again.
2023-02-22 22:23:39 +01:00
tomFlowee 7309ba978e Make tabbar look the same as others
This synchronizes the look of the tabbar with the look of the main
screen tabbar and account selection popup.
2023-02-22 22:23:39 +01:00
tomFlowee e153e35d32 Avoid closing the app on pressing back too often 2023-02-22 22:23:39 +01:00
tomFlowee 641ec5c969 Fix sizing.
The page is no longer using a layout manager.
2023-02-22 22:23:39 +01:00
tomFlowee c10510b139 Behave correctly on accounts lists
The GUI confused 'userowned' and having a list of wallets.
Basically we can just trust the backend 'accounts' list, making
the GUI eaier to understand.
2023-02-22 22:23:39 +01:00
tomFlowee 7e4d884cec Fix link, make defaults load again. 2023-02-22 21:05:39 +01:00
tomFlowee c93dbbeb2e Update amounts in UI 2023-02-22 20:53:15 +01:00
tomFlowee 424ddbd9fb New version for Android 2023-02-22 15:48:18 +01:00
tomFlowee 457edc20b4 Simplify the payment and amounts getters
This merges the paymentAmount and effectiveBchAmount methods because they
did 99% the same.
Same with the paymentAmountFiat and effectiveFiatAmount.

This removes the 'effective*' set of properties.
2023-02-22 15:28:06 +01:00
tomFlowee 63033ab153 Forward the user owned property being changed.
This is useful to see if a default wallet got an incoming transaction.
2023-02-22 15:05:29 +01:00
tomFlowee ce9f8ce9eb Set a minimum width for the money editors. 2023-02-22 11:03:25 +01:00
tomFlowee 0fd3465c7d new version 2023-02-21 20:31:58 +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 a8ecf888d6 fix i18n string 2023-02-21 15:52:33 +01:00