Commit Graph

746 Commits

Author SHA1 Message Date
tomFlowee faf8529f71 Show consistent minus' on prices
Both the 'price then' and 'price now' fields always show a positive
number.
2023-05-06 14:40:29 +02:00
tomFlowee b0c22c98e1 Fix regression; make green check show up again
On having a correct address we validate it and show that green check.
This follows the refactor where we moved the logic to the AddressInfo
QML class.
2023-05-06 11:34:42 +02:00
tomFlowee 1aa3503b06 Fixlets in i18n 2023-05-02 15:55:00 +02:00
tomFlowee bb4e0bc138 Always show BCH value on testnet
The feature to show only the exchange-rate based value on the
main screen doesn't make sense on anything but mainnet due to
the simple fact that thats the only one that has an exchange rate.

We hide the feature on testnet and make it always show the BCH
value on the overview screens.

Notice that the actuall setting, as written in the config file,
is shared between chains. We only have one confg file. So any
solution with default values would not work.
2023-05-02 11:14:15 +02:00
tomFlowee 527e7895ef Merge branch 'master' into PaymentRequest 2023-05-02 10:53:16 +02:00
tomFlowee 3dfb2b3d38 Port the startupscreen and desktop receive tab too
This makes the new PaymentRequest design be used by all components.
2023-05-02 10:52:37 +02:00
tomFlowee 4f93cdface Cleanup layout of receive tab 2023-05-02 10:52:37 +02:00
tomFlowee 4ba71ff870 Improve payment-request tracking
We introduce a new WalletkeyView which is a class that provides a
thread-safe view on a single private-key in the wallet. Detecting all
transactions depositing money in that key and thus being an ideal
backend for the PaymentRequest.
2023-05-02 10:52:37 +02:00
tomFlowee d0b5134527 Create a functional Payment Request screen.
We now use a better design where the PaymentRequest object is owned by
QML.
2023-05-02 10:52:37 +02:00
tomFlowee 1e73c5bee5 Step one of rebuilding the payment-requests
This mostly removes the less than successful architecture.

This architecture stems from my first attempts at mixing C++ and QML, and
its not great.
As we can see from the removals, it touches a lot of places and
especially the wallet owning them is messy, but in QML we have to do a
lot of null pointer checks, also not exactly readable.
Lets try something different.
2023-05-02 10:52:37 +02:00
tomFlowee 167c590b78 Use triple equals in JS 2023-05-01 21:51:25 +02:00
tomFlowee cd62fbcfe5 Move the info popup above the rest
We no longer show the feedback text below the address label
and additionally the tapping of the address label will also
cause the copying to be started.
2023-04-25 14:18:57 +02:00
tomFlowee 5d2671b772 Handle fast tapping on the keyboard
This solves the UX issue where tapping a certain button fast in
sequence, we only acted on every other one.
Turns out, half were registered as 'double clicks'.
2023-04-19 15:04:39 +02:00
tomFlowee 3346342784 Add 'max funds' feature to 'build transaction'
Allow the selection of all funds in a wallet to be sent to a
destination.

This also refreshes the UI layout a little.
2023-04-18 22:09:45 +02:00
tomFlowee 47b4e1ea0a Synchronize the errorRed colors
This adds a errorRedBg 'background' color for a popup with normal white
text on top of it.
2023-04-18 21:54:43 +02:00
tomFlowee d9d92847f6 Make section names stick to the top of the view. 2023-04-18 10:33:28 +02:00
tomFlowee 9a6b9686b9 UX; move most complicated to bottom. 2023-04-17 14:27:54 +02:00
tomFlowee 939a22a015 Show 'payment to self' better 2023-04-08 14:19:01 +02:00
tomFlowee ab779242aa Add scroll thumb to the history list.
This allows us to navigate a longer list much easier.
2023-04-08 14:05:44 +02:00
tomFlowee b5dce3070a Make ScrollThumb better suited for mobile. 2023-04-08 14:03:23 +02:00
tomFlowee bb94edee23 Only show the title "your wallets" when you have > 1 2023-04-08 12:53:04 +02:00
tomFlowee dac5cf1222 Replace circle with simple progresbar
Built a simple progresbar from rectangles.
2023-03-23 20:03:39 +01:00
tomFlowee 67d2553d2e Fixes and cleanups
The dialog now visually looks the same as others on mobile.
2023-03-23 12:55:53 +01:00
tomFlowee e6efedee87 Fix positioning
Anchors are not fully declarative.
See report on jira at bugreports.qt.io with issue-code: QTBUG-112230
2023-03-23 12:34:16 +01:00
tomFlowee 01f87acc28 Add address on QR
This exports the payment-request address to the QML side.
We use this to show under the QR the address we are requesting to send
to.

This is quite useful for users wanting to manually check if things are
going well.
2023-03-21 23:33:23 +01:00
tomFlowee 3bdebe7b8d Introduce GUI settting: show bch.
On the main screen, also known as the "Activity view" this allows the
user to choose to only see fiat or see both Bitcoin Cash and fiat values
listed next to each transaction.
2023-03-21 22:28:41 +01:00
tomFlowee 80c365f3c4 Avoid cutting off large balances
Split the BCH and fiat prices over two lines.
2023-03-21 21:39:36 +01:00
tomFlowee bfac327fb1 Make the font smaller to make it fit. 2023-03-21 21:27:08 +01:00
tomFlowee 9508df00dc fix isMoved check 2023-03-15 19:19:16 +01:00
tomFlowee 9bfbb3ea51 Replace placeholder with some basic icons. 2023-03-15 18:41:54 +01:00
tomFlowee 84fde61373 Give credit to a very active beta tester. 2023-03-15 17:17:29 +01:00
tomFlowee 0f11944b03 Iterate on account history look.
This show the bch price on the front page too and shows 'moved' as a
label in the popup.
We give the full width to cashfusion transactions, no point is listing
the amount of sats fee paid.

This always puts a plus or minus in front of the price indicating the
receiving vs sending of funds.
2023-03-15 16:27:12 +01:00
tomFlowee 4b74e8234c Coding style; use 'return' in JS. 2023-03-15 16:04:59 +01:00
tomFlowee fde8cad597 Be consistent with usage of 'pixelSize'.
Also make the unit-label follow the widget property for font sizing.
2023-03-15 15:36:45 +01:00
tomFlowee 3171898c8c Fix "hamburger menu too hard to touch"
This enlarges the touch area by 3x in order to make it
much easier to hit.
Notice that we are still limiting this to the header-area only, so only
3 times as wide, really.

Thanks fly to fshinetop for reporting it (and lots more).
2023-03-15 13:35:03 +01:00
tomFlowee e032e79f96 Make single items also have the 'grouping' rect
Feedback has shown that it is prettier to simply have a single rect for
an item that is ungrouped.
2023-03-15 11:19:55 +01:00
tomFlowee a9c781c8d7 Add explanation header 2023-03-15 10:55:36 +01:00
tomFlowee cfdc72a2f2 Fix centering of text in case of hamburgermenu. 2023-03-15 10:55:36 +01:00
tomFlowee fbe7a74b36 Transform the Schnorr tooltip from hover to click
This allows it to be used on a mouse-less interface as well.
2023-03-15 10:55:36 +01:00
tomFlowee 0b99ad1742 Make showing the hd-index possible
This adds a config option on mobile and makes it again show up properly
on desktop.

HDIndex is the derivation-index of a private key.
2023-03-15 10:55:36 +01:00
tomFlowee da2cdb4cda Improve description of feature.
The old was technically not entirely correct.
2023-03-15 10:28:17 +01:00
tomFlowee 09b03faab7 Make sure that the hamburger menu is removed on broadcast
We now make sure that the menu accessible from the header is only
there when we are actually on the page where it is relevant.
2023-03-13 18:17:23 +01:00
tomFlowee b133c8fec3 Minor UX fixes 2023-03-13 18:17:23 +01:00
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