bold font wasn't loaded when regular font loading was succesful
some styling fixes
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -143,7 +143,8 @@ Pane {
|
||||
width: parent.width
|
||||
Label {
|
||||
text: qsTr('Receive queue')
|
||||
font.pixelSize: constants.fontSizeXLarge
|
||||
font.pixelSize: constants.fontSizeLarge
|
||||
color: Material.accentColor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,7 +176,8 @@ Pane {
|
||||
width: parent.width
|
||||
Label {
|
||||
text: qsTr('Send queue')
|
||||
font.pixelSize: constants.fontSizeXLarge
|
||||
font.pixelSize: constants.fontSizeLarge
|
||||
color: Material.accentColor
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user