Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
d08913b5 by wurstsalat at 2022-11-06T14:02:25+01:00
imprv: Accounts window: Use equal widths for account switch label
- - - - -
1 changed file:
- gajim/gtk/accounts.py
Changes:
=====================================
gajim/gtk/accounts.py
=====================================
@@ -519,8 +519,10 @@ def __init__(self, account: str) -> None:
self._switch.set_vexpand(False)
self._switch_state_label = Gtk.Label()
- self._switch_state_label.set_xalign(1)
+ self._switch_state_label.set_xalign(0)
self._switch_state_label.set_valign(Gtk.Align.CENTER)
+ label_width = max(len(Q_('?switch:On')), len(Q_('?switch:Off')))
+ self._switch_state_label.set_width_chars(label_width)
self._set_label(account_enabled)
self._switch.connect(
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d08913b56fa7524a2a8f439fdca690bb8d9c36d3
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d08913b56fa7524a2a8f439fdca690bb8d9c36d3
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits