Browse Source

various UI

patch-4
Sander van Grieken 3 years ago
parent
commit
6a22a7698c
  1. 1
      electrum/gui/qml/components/controls/InfoTextArea.qml
  2. 1
      electrum/gui/qml/components/main.qml
  3. 2
      electrum/gui/qml/qefx.py

1
electrum/gui/qml/components/controls/InfoTextArea.qml

@ -27,6 +27,7 @@ GridLayout {
TextArea { TextArea {
id: infotext id: infotext
Layout.fillWidth: true Layout.fillWidth: true
Layout.minimumHeight: constants.iconSizeLarge + 2*constants.paddingLarge
readOnly: true readOnly: true
rightPadding: constants.paddingLarge rightPadding: constants.paddingLarge
leftPadding: 2*constants.iconSizeLarge leftPadding: 2*constants.iconSizeLarge

1
electrum/gui/qml/components/main.qml

@ -20,6 +20,7 @@ ApplicationWindow
Material.theme: Material.Dark Material.theme: Material.Dark
Material.primary: Material.Indigo Material.primary: Material.Indigo
Material.accent: Material.LightBlue Material.accent: Material.LightBlue
font.pixelSize: constants.fontSizeMedium
property Item constants: appconstants property Item constants: appconstants
Constants { id: appconstants } Constants { id: appconstants }

2
electrum/gui/qml/qefx.py

@ -112,7 +112,7 @@ class QEFX(QObject):
return '' return ''
except: except:
return '' return ''
dt = datetime.fromtimestamp(td) dt = datetime.fromtimestamp(int(td))
if plain: if plain:
return self.fx.ccy_amount_str(self.fx.historical_value(satoshis, dt), False) return self.fx.ccy_amount_str(self.fx.historical_value(satoshis, dt), False)
else: else:

Loading…
Cancel
Save