Commit Graph

2144 Commits

Author SHA1 Message Date
Sander van Grieken 0bc8460005 qml: don't initialize instance variables on class scope for non-singletons
(this somehow escaped attention before, as most objects usually don't have multiple instances,
unless multiple wallets are open at the same time.)
Also, move all signal declarations, class constants and variables to the top of class definitions.
2023-01-12 13:09:21 +01:00
Sander van Grieken 58d25d4a5d qml: flake8 happifier 2023-01-10 17:32:20 +01:00
Sander van Grieken 78020e5cc9 qml: Only enable Invoices menu option when there is a wallet opened 2023-01-10 17:28:33 +01:00
Sander van Grieken bc91732f22 qml: crash handler, move Exception_Hook to qeapp.py 2023-01-10 17:17:19 +01:00
Sander van Grieken fa030b3fa5 qml: initial crash handler impl 2023-01-10 17:02:38 +01:00
Sander van Grieken 85718bda89 qml add richText property to MessageDialog.
TODO: now we need to handle clicks on link too
2023-01-10 17:02:38 +01:00
ThomasV 63d801e363 Merge pull request #8136 from myxmaster/update-status-bar
Update status bar when preference "Zeros after decimal point" is changed
2023-01-10 14:30:36 +01:00
myxmaster e6cdcf7413 update status bar when setting "zeros after decimal point" is changed 2023-01-10 13:51:21 +01:00
myxmaster 7dbf046b03 Space between pie chart and balance fix 2023-01-09 23:46:45 +01:00
Sander van Grieken 10e7d8d926 qml: styling main view 2023-01-09 18:17:17 +01:00
Sander van Grieken 32d60be90a qml: styling OpenWalletDialog 2023-01-09 18:17:17 +01:00
ThomasV ca544518a8 Merge pull request #8130 from myxmaster/use-placeholder-for-better-translation
use placeholder for better translation
2023-01-09 17:56:39 +01:00
Sander van Grieken 34d483b365 qml: fix invoice amount editable when expired 2023-01-09 17:44:07 +01:00
Sander van Grieken be371c8d88 qml: styling TxDetails 2023-01-09 17:38:07 +01:00
Sander van Grieken f7ac768744 qml: messagedialog No now maps to rejected signal 2023-01-09 17:37:23 +01:00
Sander van Grieken 82458e7cf0 qml: use FormattedAmount in LightningPaymentDetails, formatter and fx now use millisats if available, else sats 2023-01-09 17:36:12 +01:00
myxmaster 4a0e337c6d use placeholder for better translation 2023-01-09 17:28:19 +01:00
Sander van Grieken 4071fe9726 qml: fix prev 2023-01-09 12:51:50 +01:00
Sander van Grieken 3e717f9da4 qml: show piechart legend and amounts 2023-01-09 12:48:39 +01:00
Sander van Grieken 281b9ddafb qml: don't create new QEAmount instances on query, re-use same instance 2023-01-09 12:31:07 +01:00
Sander van Grieken becd46fbf6 qml: add show seed on WalletDetails.qml 2023-01-09 11:51:33 +01:00
Sander van Grieken 3271eadbd2 qml: remove electrum logo from top bar 2023-01-09 10:54:54 +01:00
Sander van Grieken 495f51e6ad don't log sensitive wizard values 2023-01-06 16:45:57 +01:00
Sander van Grieken 7f0f09a90b qml: cleanup prev commit, add default icons to MessageDialog, add question icon 2023-01-06 14:57:37 +01:00
Sander van Grieken 99951a437c qml: make trampoline vs gossip routing a switch, and ask confirmation for selecting gossip mode 2023-01-06 14:40:39 +01:00
Sander van Grieken 881afa3b29 qml: underline selected qr type indicator 2023-01-06 14:23:57 +01:00
Sander van Grieken 8795bd6d85 qml: define address colors in Constants, change frozen address to blue 2023-01-06 14:16:07 +01:00
Sander van Grieken 971d7d4da6 qml: make app menu modal 2023-01-06 14:05:49 +01:00
Sander van Grieken d32c907d3d qml: rename NetworkStatusIndicator to OnchainNetworkStatusIndicator 2023-01-06 14:05:26 +01:00
Sander van Grieken 0cfbbe3b1d qml: remove Wallets menu option, wallet selection is now shown when pressing topbar wallet name 2023-01-06 13:44:29 +01:00
Sander van Grieken 1887502151 qml: remove back button in top bar, move menu button to left
add AppController.isAndroid function to test for android platform. Disable fade in if not on android
2023-01-06 13:42:59 +01:00
Sander van Grieken 20eacc37e1 qml: allow delete wallet if has channels not in REDEEMED state but is channelbackup 2023-01-06 13:42:59 +01:00
ThomasV a1716df115 follow-up 975cdca474 2023-01-06 13:18:27 +01:00
ThomasV 975cdca474 Qt coin control: allow to add/remove coins one by one.
Not many users know how to select multiple coins at once.
2023-01-06 11:45:14 +01:00
Sander van Grieken 6c410c0548 qml: make listmodel item count a property for channels and transactions 2023-01-06 10:58:47 +01:00
Sander van Grieken 1e658b9b7f center electrum_presplash.png, reduce canvas to 512x512 2023-01-05 20:09:14 +01:00
Sander van Grieken 9704dab68b qml: remove qml splash, update python-for-android with splash support.
main.qml now shows black cover that fades out when app is ready.
2023-01-05 20:09:14 +01:00
Sander van Grieken d52afee635 qml: fix autoconnect/single server selection, tapping server selects. 2023-01-04 10:32:27 +01:00
Sander van Grieken e59e1ec959 qml: change piechart item order, less chance of overlap 2023-01-03 22:53:02 +01:00
Sander van Grieken 02dce339cc qml: fix regressions after can_rbf removal, remove RbF checkboxes 2023-01-03 22:52:09 +01:00
Sander van Grieken 3a31c0df1b qml: fix Switch layout issues and add section headings to preferences 2023-01-03 18:22:59 +01:00
Sander van Grieken 89aea77213 qml: add placeholder text for transaction history and channel list 2023-01-03 18:22:29 +01:00
Sander van Grieken e31bd958d3 qml: styling fixes 2023-01-03 18:22:15 +01:00
Sander van Grieken 30079c06a8 qml: handle android back button in wizard, map to prev page action instead of closing wizard.
Also add initial focus to WCHaveSeed and WCHaveMasterKey wizard components.
2023-01-02 17:02:19 +01:00
Sander van Grieken 562b4c50df qml: add a few more dialog icons 2023-01-02 17:02:19 +01:00
SomberNight 824ce64e66 qt gui: display nice error if QR code data overflows
there is existing handler-code at e.g.
https://github.com/spesmilo/electrum/blob/1a7634e615156f6f9b4f799e0d549af05446bc69/electrum/gui/qt/transaction_dialog.py#L309
but we should make sure setData() always raises the exc when needed,
as paintEvent() is too late for nice handling.

closes https://github.com/spesmilo/electrum/issues/4288
closes https://github.com/spesmilo/electrum/issues/4280
2023-01-02 13:38:05 +00:00
SomberNight 253150cb36 qt network dialog: don't poll Tor socks proxy, but scan on interaction
Polling is introduces spam in Tor logs.
Also, Tor Browser 12.0 apparently has a bug where our polling renders
the socks proxy unusuable after some time.
see https://gitlab.torproject.org/tpo/applications/tor-browser/-/issues/41549

Instead of trying to detect a Tor socks proxy every 10 seconds, we now
run detection when the Qt network dialog gets opened, and also when
the user switches to the "Proxy" tab in the dialog.

fixes https://github.com/spesmilo/electrum/issues/7317
2023-01-02 11:58:16 +00:00
SomberNight e3485de496 qt gui: handle swap server unreachable
note: testnet swap server is offline atm
closes https://github.com/spesmilo/electrum/issues/8107
2023-01-01 23:43:25 +00:00
Sander van Grieken c51b6dd75a qml: server list styling, group indicator per chain 2022-12-31 12:52:10 +01:00
Sander van Grieken f774174c85 qml: add serverlistmodel.py, add server list to ServerConfigDialog.qml 2022-12-30 23:46:04 +01:00