1
0

qt swap dialog: (trivial) make "toggle swap direction" btn wider

with dark theme enabled, PushButtons are only as wide by default as the text they contain
This commit is contained in:
SomberNight
2023-03-02 16:58:42 +00:00
parent 8278689cc3
commit 4ee6def7ee

View File

@@ -46,7 +46,7 @@ class SwapDialog(WindowModalDialog):
btn_width = 10 * char_width_in_lineedit()
self.max_button.setFixedWidth(btn_width)
self.max_button.setCheckable(True)
self.toggle_button = QPushButton(u'\U000021c4')
self.toggle_button = QPushButton(' \U000021c4 ') # whitespace to force larger min width
self.toggle_button.setEnabled(is_reverse is None)
# send_follows is used to know whether the send amount field / receive
# amount field should be adjusted after the fee slider was moved