tqt PreviewTxDialog: change feerounding_icon to be a QToolButton - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3393ff757e05af9df8fcfc6d56caa8b72c474fda DIR parent 8f96a92e7544f42223a10b78d7cedb232fcf7231 HTML Author: SomberNight <somber.night@protonmail.com> Date: Thu, 2 Jul 2020 13:49:54 +0200 qt PreviewTxDialog: change feerounding_icon to be a QToolButton QPushButtons with dark theme have a huge min width (they have text in mind) related: #6300 Diffstat: M electrum/gui/qt/transaction_dialog… | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/electrum/gui/qt/transaction_dialog.py b/electrum/gui/qt/transaction_dialog.py t@@ -727,9 +727,9 @@ class PreviewTxDialog(BaseTxDialog, TxEditor): _('Also, when batching RBF transactions, BIP 125 imposes a lower bound on the fee.')) self.show_message(title=_('Fee rounding'), msg=text) - self.feerounding_icon = QPushButton(read_QIcon('info.png'), '') - self.feerounding_icon.setFixedWidth(round(2.2 * char_width_in_lineedit())) - self.feerounding_icon.setFlat(True) + self.feerounding_icon = QToolButton() + self.feerounding_icon.setIcon(read_QIcon('info.png')) + self.feerounding_icon.setAutoRaise(True) self.feerounding_icon.clicked.connect(feerounding_onclick) self.feerounding_icon.setVisible(False)