Commit Graph

2162 Commits

Author SHA1 Message Date
Sander van Grieken
d79de092e2 qml: just to be sure, keep QEAmount instances around if exposed to QML 2023-01-16 14:54:42 +01:00
Sander van Grieken
623bdcdabe qml: switching dialog buttons seems to SEGV sometimes 2023-01-16 14:54:42 +01:00
Sander van Grieken
f82136d07c qml: refactor most amount values to FormattedAmount, use fixed font more consistently 2023-01-16 13:49:32 +01:00
Sander van Grieken
a986e61047 qml: implement RbF bump methods Decrease payment/Preserve payment
extend FormattedAmount to wrap alt to next line, or show as empty when invalid
2023-01-16 13:15:24 +01:00
Sander van Grieken
393554c31e qml: fix unintended mangling of TX (non-psbt) for QR 2023-01-16 11:20:05 +01:00
Sander van Grieken
0c728fd13f qml: close SwapDialog only after starting swap. 2023-01-16 09:56:52 +01:00
Sander van Grieken
3fbc82dc95 qml: let Pin dialog decide its own height 2023-01-16 09:14:07 +01:00
Sander van Grieken
b7106fd746 qml: show QR when finalized and saved 2023-01-13 22:39:01 +01:00
Sander van Grieken
3b7a09a307 qml: fix tx not saved when PIN active 2023-01-13 21:31:08 +01:00
ThomasV
8fa549c418 Merge pull request #8135 from spesmilo/scid_alias
Add support for option_scid_alias
2023-01-13 18:44:13 +01:00
ThomasV
7d52021d6b Merge pull request #8139 from SomberNight/202301_locale_decimal_point
locale amounts: consistently use "." as dec point, and " " as thou sep
2023-01-13 16:00:47 +01:00
ThomasV
b9393b0603 Support scid alias:
- save remote alias for use in invoices
 - derive local alias from wallet xpub
 - send channel_type without the option_scid_alias bit
   (apparently LND does not like it)
2023-01-13 15:47:30 +01:00
Sander van Grieken
ddfe1a6d70 qml: add lightning network status indicator in top bar, add channel peers to NetworkOverview 2023-01-13 12:36:33 +01:00
Sander van Grieken
c94d3529f5 qml: serverlistmodel use network is tor flag for server list filter 2023-01-13 12:36:33 +01:00
Sander van Grieken
4c229fdf08 qml: SendDialog icon 2023-01-13 11:13:56 +01:00
Sander van Grieken
7cc344dbc9 qml: show Tor status in NetworkOverview 2023-01-13 11:13:56 +01:00
Sander van Grieken
d26440b964 qml: refactor proxy options to map, remove explicit TOR option 2023-01-13 11:13:56 +01:00
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
SomberNight
2a9909c252 locale amounts: consistently use "." as dec point, and " " as thou sep
Always use "." as decimal point, and " " as thousands separator.

Previously,
- for decimal point, we were using
  - "." in some places (e.g. AmountEdit, most fiat amounts), and
  - `locale.localeconv()['decimal_point']` in others.
- for thousands separator, we were using
  - "," in some places (most fiat amounts), and
  - " " in others (format_satoshis)

I think it is better to be consistent even if whatever we pick differs from the locale.
Using whitespace for thousands separator (vs comma) is probably less confusing for people
whose locale would user "." for ts and "," for dp (as in e.g. German).

The alternative option would be to always use the locale. Even if we decide to do that later,
this refactoring should be useful.

closes https://github.com/spesmilo/electrum/issues/2629
2023-01-10 14:45:35 +00: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