1
0

bold font wasn't loaded when regular font loading was succesful

some styling fixes
This commit is contained in:
Sander van Grieken
2022-05-11 12:22:31 +02:00
parent 5e92624f33
commit e84bc4561f
4 changed files with 10 additions and 7 deletions

View File

@@ -81,7 +81,7 @@ Pane {
color: model.held
? Qt.rgba(1,0,0,0.75)
: model.numtx > 0
? model.balance == 0
? model.balance.satsInt == 0
? Qt.rgba(0.5,0.5,0.5,1)
: Qt.rgba(0.75,0.75,0.75,1)
: model.type == 'receive'

View File

@@ -143,7 +143,8 @@ Pane {
width: parent.width
Label {
text: qsTr('Receive queue')
font.pixelSize: constants.fontSizeXLarge
font.pixelSize: constants.fontSizeLarge
color: Material.accentColor
}
}
}

View File

@@ -176,7 +176,8 @@ Pane {
width: parent.width
Label {
text: qsTr('Send queue')
font.pixelSize: constants.fontSizeXLarge
font.pixelSize: constants.fontSizeLarge
color: Material.accentColor
}
}
}

View File

@@ -154,10 +154,11 @@ class ElectrumQmlApplication(QGuiApplication):
# add a monospace font as we can't rely on device having one
self.fixedFont = 'PT Mono'
if (QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Regular.ttf') < 0 and
QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Bold.ttf') < 0):
self.logger.warning('Could not load font PT Mono')
self.fixedFont = 'Monospace' # hope for the best
not_loaded = QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Regular.ttf') < 0
not_loaded = QFontDatabase.addApplicationFont('electrum/gui/qml/fonts/PTMono-Bold.ttf') < 0 and not_loaded
if not_loaded:
self.logger.warning('Could not load font PT Mono')
self.fixedFont = 'Monospace' # hope for the best
self.context = self.engine.rootContext()
self._qeconfig = QEConfig(config)