Commit Graph

141 Commits

Author SHA1 Message Date
Sander van Grieken
1a263b46be qml: keep QEAmount instances in qechanneldetails,
use millisat amounts for local/remote capacity and can send/receive,
refactor channel capacity graphic to ChannelBar and use that as well
in ChannelDetails
2023-04-12 14:29:32 +02:00
Sander van Grieken
a0939aad75 qml: add doAccept and doReject functions to ElDialog.
These functions make sure no duplicate accepted/rejected signals are emitted.
2023-04-11 12:01:10 +02:00
Sander van Grieken
2dd9b0796a qml: right-align balance labels 2023-04-06 16:17:38 +02:00
Sander van Grieken
6cd1f553e4 qml: BalanceSummary remove height hint for fiat amount 2023-04-06 16:15:57 +02:00
Sander van Grieken
a45d2ce831 qml: highlight selected invoice, styling Invoices buttons 2023-04-06 15:21:16 +02:00
Sander van Grieken
42cb3a1377 qml: use same main-server icon as in desktop client 2023-04-06 10:36:09 +02:00
ThomasV
157954d4ff qml: do not block access to BalanceSummary if we are not connected. Display warning instead 2023-04-03 17:10:52 +02:00
Sander van Grieken
01c31edae2 qml: force same auto-capitalizing behavior on PasswordField regardless of echoMode 2023-04-03 13:31:20 +02:00
ThomasV
847c8d4941 balance details: use onClicked event. Early return if balance is not available 2023-03-31 16:47:15 +02:00
ThomasV
c98b9e8d7b qml: dashboard
Balance details are shown if the user presses and holds the
balance area; the idea is that this should be less chaotic
than if the popup is triggerred by a simple click. However,
we might as well try with a simple click, because we already
do it with transaction details; I am not sure what is the best
option, we should try both.

This also makes 'new channel' and 'swap' buttons available from
theBalance details, so that users do not need to visit the
channels list.
2023-03-31 16:47:15 +02:00
Sander van Grieken
8a2372a133 followup 4517b3c2bb 2023-03-30 16:05:10 +02:00
Sander van Grieken
4517b3c2bb qml: handle DataOverflow in qeqr.py and QRImage 2023-03-30 16:00:36 +02:00
ThomasV
5ef7fabc73 qml InvoiceDialog: merge status and userinfo 2023-03-30 11:24:50 +02:00
SomberNight
81761c2ef1 qml: BalanceSummary to treat server_status=="connecting" same as DC-ed 2023-03-30 00:59:20 +00:00
SomberNight
9ef6d6a56f qml: rm QEConfig.serverString. Network.server is sufficient
If there is no network object, it's ok not to be able to customise it.
2023-03-30 00:58:58 +00:00
Sander van Grieken
78d79290ad qml: create workaround for spurious textChanged events coming from TextArea. fixes #8280
This commit also fixes a gap, where a seed text change could leave the page valid for the
duration of the valid check delay timer, while the seed is actually invalid.
2023-03-25 12:58:22 +01:00
Sander van Grieken
4bdd521a4b qml: abstract ElDialog resize behavior to property 2023-03-23 10:30:40 +01:00
Sander van Grieken
17bb1ad5c5 qml: enable Qt virtual keyboard and add Electrum keyboard style, modified from Qt 'default' style 2023-03-23 10:30:40 +01:00
Sander van Grieken
e7cc2c5a63 Revert "qml: pressing "Esc" on desktop to ~simulate "back" button"
This reverts commit 7f7ee8d82f.

This commit caused a regression with the android back button not closing a dialog.

reproduce:
1. from the main window, press receive.
2. in the request details window, press Create request.
3. in the receive payment dialog, press Copy
4. observe dialog cannot be closed by back button
2023-03-23 10:12:10 +01:00
SomberNight
7f7ee8d82f qml: pressing "Esc" on desktop to ~simulate "back" button 2023-03-21 16:51:50 +00: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
Sander van Grieken
30034847a2 qml: remove Never as request expiry option 2023-03-18 00:57:39 +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
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
SomberNight
3a7bc82881 icons: add "cloud_yes.png", and rename existing "nocloud" 2023-03-16 15:22:10 +00:00
Sander van Grieken
64dde8bc0b qml: show disconnected state in BalanceSummary 2023-03-16 12:19:38 +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
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
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
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
aaca7c58ad qml: BalanceSummary now flipflops between fiat view and btc view 2023-03-09 17:16:22 +01:00
Sander van Grieken
1210ef5f81 qml: various styling 2023-03-09 16:13:46 +01:00
Sander van Grieken
0423970ae0 qml: add word picker to SeedTextArea 2023-03-09 15:09:16 +01:00
Sander van Grieken
ce5b6499fd qml: styling fixes 2023-03-06 11:43:32 +01:00
Sander van Grieken
9c73a55c45 qml: styling CPFP dialog, Toaster, GenericShareDialog 2023-03-03 10:20:41 +01:00
Sander van Grieken
f65158a23f qml: move menu back to topbar, move addresses and channels to walletdetails and
add walletdetails to topbar menu
2023-03-02 10:49:01 +01:00
Sander van Grieken
0928c0190a qml: fix toaster quirkyness 2023-02-28 11:58:15 +01:00
Sander van Grieken
adf23f602d qml: don't show option Never for expiry combobox when in preferences 2023-02-24 20:24:51 +01:00
Sander van Grieken
9d425b5b23 qml: move remaining buttons to bottom of dialogs 2023-02-23 21:22:44 +01:00
Sander van Grieken
e511701c74 qml: ElDialog assure close behavior is consistent with allowClose property 2023-02-23 20:44:25 +01:00
Sander van Grieken
fa45e1b7ba qml: fix name clash QML vs registered QObjects NewWalletWizard and ServerConnectWizard 2023-02-16 13:22:24 +01:00
Sander van Grieken
421bd93047 qml: fix a few leftovers 2023-02-14 15:37:17 +01:00
Sander van Grieken
56cdc4a92b qml: fix display of negative millisat amounts in FormattedAmount, qefx.py 2023-02-11 09:50:56 +01:00
Sander van Grieken
fc212b1dcc qml: improve OpenWalletDialog, PasswordDialog and PasswordField 2023-02-10 14:26:13 +01:00
Sander van Grieken
2d5ba84e35 qml: styling InfoTextArea 2023-02-10 14:11:31 +01:00