Commit Graph

573 Commits

Author SHA1 Message Date
SomberNight
558eb1a372 qml: reorganise toolbarTopLayout, so that top-left click opens menu
previously clicking too far left would not open the wallet-menu:
- click on label would open it, but
- click on wallet-icon or padding to its left would not
2023-03-21 17:51:29 +00:00
Sander van Grieken
3cf732cb51 qml: introduction text bottom margins in RbF bump fee and cancel dialogs 2023-03-21 09:44:53 +01:00
Sander van Grieken
077ea9a4a5 qml: AddressDetails heading 2023-03-21 09:44:40 +01:00
Sander van Grieken
a5c58f8aae qml: layout fixes for small form-factor devices 2023-03-20 19:52:57 +01:00
Sander van Grieken
677e1259df qml: ElDialog now defaults to parent on Overlay.overlay
This was replicated in basically all ElDialog derived dialogs
2023-03-20 16:53:40 +01:00
Sander van Grieken
4ed69cc54f qml: BtcField/FiatField ImhDigitsOnly input method hint 2023-03-20 14:10:13 +01:00
ThomasV
5ab3a250c5 qml: remove '1 month' expiry option.
The list of supported values is in electrum/invoices.py
If the config is set to an unsuported value, the qt app will crash.
2023-03-19 09:02:35 +01:00
ThomasV
d7c5c40c1d Save user-entered amount in invoice. fixes #8252.
Note that this allows users to save invoices that have an empty
amount, which is not allowed by the Qt GUI. Qt will complain at
pay time about empty amount if a lightning invoice without amount
is saved. With onchain invoices, Qt will create an onchain tx with
a zero output.
2023-03-18 17:29:56 +01:00
ThomasV
2836dccfbb qml: Handle situation where no more addresses are available without
creating addresses beyond the gap limit.

- if lightning is enabled, propose to create a lightning-only invoice
- otherwise, propose to reuse an address
- never generate addresses beyond the gap limit

Implementation:
 - createDefaultRequest is removed
 - create_bitcoin_address is called whether the wallet has lightning
   or not
2023-03-18 12:58:42 +01:00
Sander van Grieken
cb4c99dc19 qml: styling CloseChannelDialog error text 2023-03-18 11:26:34 +01:00
ThomasV
f6699e01c3 qml: minor text change 2023-03-18 04:29:28 +01:00
Sander van Grieken
30034847a2 qml: remove Never as request expiry option 2023-03-18 00:57:39 +01:00
ThomasV
fed5fe5991 Qml: new receive flow. fixes #8258 2023-03-17 23:02:43 +01:00
SomberNight
a90bff4586 qml: mark masterkey/wif/addr input fields as sensitive
related: https://github.com/spesmilo/electrum/issues/8256
2023-03-17 17:09:01 +00:00
Sander van Grieken
231ea5d03b qml: status icon InvoiceDialog 2023-03-17 17:33:00 +01:00
Sander van Grieken
24a3d6e10f qml: remove editmode toggle, now enabled only on amount-less invoices 2023-03-17 16:46:58 +01:00
Sander van Grieken
8eca3e0aaf follow up 7c2f13a76e 2023-03-17 12:33:53 +01:00
ThomasV
7c2f13a76e follow-up fcbd25c1fd. fixes #8253 2023-03-17 12:30:58 +01:00
Sander van Grieken
a571451179 qml: allow pay while amount in edit mode 2023-03-17 11:51:48 +01:00
ThomasV
fcbd25c1fd qml: display network status and history server status separately. Also, show network fees on full screen width 2023-03-17 10:15:07 +01:00
ThomasV
3574c99275 qml: in the password dialogs, disable the password confirmation
line if the first entered password is too short.

Without that, a user may enter two passwords that are identical
but too short, and then click on the eye icon in order to discover
that they actuall are identical.. and only at this point guess that
the size might be the problem.

Also, raise the minimum length to 6, because that is what is was
on Kivy.

One of the password dialogs still had two eye icons; that was only
fixed in the wizard. I guess that could be avoided if both dialogs
used the same code.
2023-03-16 20:51:17 +01:00
ThomasV
6890268b1d qml: fix display of server fee in swap dialog
The previously displayed amount was not the percentage,
but the mining fee plus the percentage.
2023-03-16 19:29:56 +01:00
ThomasV
2ef60b906f Reword proxy question.
The second alternative in previous phrase can be misinterpreted as:
'Do you want to connect to the internet through an ISP?'
2023-03-16 17:12:21 +01:00
SomberNight
3a7bc82881 icons: add "cloud_yes.png", and rename existing "nocloud" 2023-03-16 15:22:10 +00:00
Sander van Grieken
7a86d8dc9e qml: ask user whether to configure Tor or other proxy before presenting proxy detail config screen 2023-03-16 15:42:24 +01:00
Sander van Grieken
39eaf9d871 qml: sharing channel backup only shows QR, not the data as text 2023-03-16 15:12:51 +01:00
Sander van Grieken
d985c9eecc qml: use InfoTextArea for help text in GenericShareDialog 2023-03-16 15:10:42 +01:00
Sander van Grieken
67cb08a835 qml: slider render voids 2023-03-16 15:03:05 +01:00
Sander van Grieken
f49ef14de8 qml: SwapDialog slider styling; add zero tick and fill slider range from zero 2023-03-16 14:14:46 +01:00
ThomasV
e2867b7fe8 qml: move Pay button to the right
the default action should always be to the right side, because
right-handed people are dominating the world :-).
2023-03-16 13:02:54 +01:00
Sander van Grieken
64dde8bc0b qml: show disconnected state in BalanceSummary 2023-03-16 12:19:38 +01:00
ThomasV
5b8fdacac9 qml: ensure that the slider neutral position is in the middle of the screen 2023-03-16 12:13:14 +01:00
Sander van Grieken
f0d44d0681 qml: expand clickable area to full toolbar height and a bit more padding for right-side menu 2023-03-16 12:09:57 +01:00
Sander van Grieken
b59a1410a2 qml: fix network histogram gradient fee range to 600-1 2023-03-16 11:57:35 +01:00
Sander van Grieken
46d5fdbc86 qml: PIN protect wallet seed display 2023-03-16 11:45:28 +01:00
Sander van Grieken
6d67f51e44 qml: show fiat state only for non-lightning wallets 2023-03-16 11:29:49 +01:00
Sander van Grieken
8db2dcabe3 qml: Invoice Dialog technical details header only relevant for lightning 2023-03-16 10:11:33 +01:00
ThomasV
337d2a32d8 qml PIN: do not lock inactive app, and remove timeout
- the activity callback does not work properly on android
  (does not work on my phone). Also, it duplicates the lock
  screen function of most phones.

- if we do not lock inactive app, then the PIN feature does
  not need a timeout, and is easier to understand without it.

- in Preferences, explain what it does
2023-03-16 09:37:43 +01:00
ThomasV
09afacd51c qml: fix logical error with PIN code timeout. 2023-03-16 08:29:36 +01:00
ThomasV
4e2b7c6ab3 qml: remove requestExpiry from preferences dialog (redundant) 2023-03-16 05:51:57 +01:00
Sander van Grieken
c690c9c1be Revert "qml: ElDialog titlebar click moves focus, hack for android to remove onscreen keyboard"
This reverts commit f0f320b119.
2023-03-15 15:39:35 +01:00
Sander van Grieken
2881c49671 qml: move technical details to bottom of InvoiceDialog, add routing hints 2023-03-15 15:19:30 +01:00
Sander van Grieken
0799560ae4 qml: make fiat and btc states in BalanceSummary hopefully equally tall 2023-03-14 16:36:34 +01:00
Sander van Grieken
f0f320b119 qml: ElDialog titlebar click moves focus, hack for android to remove onscreen keyboard 2023-03-14 15:52:24 +01:00
Sander van Grieken
1b0a58a0ff qml: don't pass lightning flag from GUI when creating payment requests 2023-03-14 14:49:58 +01:00
Sander van Grieken
950d8f4885 qml: Pin dialog wider (small form factor issue) 2023-03-14 14:01:03 +01:00
Sander van Grieken
5feb16ad75 qml: SeedTextArea only lower case input 2023-03-14 12:46:00 +01:00
Sander van Grieken
7fc4153f46 qml: render balance bar using (local|remote) capacity instead of can_(send|receive) 2023-03-14 12:42:52 +01:00
Sander van Grieken
4979346881 qml: detect channel backups in send dialog 2023-03-14 10:20:42 +01:00
Sander van Grieken
c0ce0296f8 qml: show channel backups together with channels in Channels, remove Channel backups button from WalletDetails,
filter backups to bottom, add backups section header
2023-03-14 10:06:31 +01:00