commit dfad0f43c036ee9153603bb7540ff8917ebdef65 parent be4cf321e06b8b48373ed42d2105a111d4f31b10 Author: SomberNight <somber.night@protonmail.com> Date: Fri, 9 Aug 2019 20:18:38 +0200 ledger nano: fix monospace font on Windows, and text readability Diffstat:
M | electrum/plugins/ledger/auth2fa.py | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/electrum/plugins/ledger/auth2fa.py b/electrum/plugins/ledger/auth2fa.py @@ -72,7 +72,7 @@ class LedgerAuthDialog(QDialog): self.modes.currentIndexChanged.connect(on_change_mode) self.helpmsg = QTextEdit() - self.helpmsg.setStyleSheet("QTextEdit { background-color: lightgray; }") + self.helpmsg.setStyleSheet("QTextEdit { color:black; background-color: lightgray; }") self.helpmsg.setReadOnly(True) vbox.addWidget(self.helpmsg) @@ -94,7 +94,11 @@ class LedgerAuthDialog(QDialog): card = QVBoxLayout() self.cardbox.setLayout(card) self.addrtext = QTextEdit() - self.addrtext.setStyleSheet("QTextEdit { color:blue; background-color:lightgray; padding:15px 10px; border:none; font-size:20pt; font-family:monospace; }") + self.addrtext.setStyleSheet(''' + QTextEdit { + color:blue; background-color:lightgray; padding:15px 10px; border:none; + font-size:20pt; font-family: "Courier New", monospace; } + ''') self.addrtext.setReadOnly(True) self.addrtext.setMaximumHeight(130) card.addWidget(self.addrtext)