Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
36b84b47 by wurstsalat at 2025-01-21T21:22:59+01:00
cfix: GroupChatInvitation: Improve styling

- - - - -


1 changed file:

- gajim/gtk/groupchat_invitation.py


Changes:

=====================================
gajim/gtk/groupchat_invitation.py
=====================================
@@ -27,6 +27,8 @@ def __init__(self, account: str, event: MucInvitation) -> 
None:
             self,
             name="GroupChatInvitationDialog",
             title=_("Group Chat Invitation"),
+            default_width=450,
+            default_height=500,
         )
 
         self.account = account
@@ -68,7 +70,6 @@ def __init__(self, account: str, event: MucInvitation) -> 
None:
         main_box = Gtk.Box(
             orientation=Gtk.Orientation.VERTICAL, spacing=12, 
valign=Gtk.Align.FILL
         )
-        main_box.add_css_class("p-18")
 
         muc_info_box = GroupChatInfoScrolled(account, minimal=True)
         muc_info_box.set_from_disco_info(event.info)
@@ -103,6 +104,7 @@ def __init__(self, account: str, event: MucInvitation) -> 
None:
 
         decline_button = Gtk.Button.new_with_mnemonic(_("_Decline"))
         decline_button.set_halign(Gtk.Align.START)
+        decline_button.set_margin_end(24)
         self._connect(decline_button, "clicked", self._on_decline)
 
         self._nick_chooser = NickChooser()
@@ -120,7 +122,12 @@ def __init__(self, account: str, event: MucInvitation) -> 
None:
         join_box.append(self._nick_chooser)
         join_box.append(join_button)
 
-        button_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL, 
margin_top=6)
+        button_box = Gtk.Box(
+            orientation=Gtk.Orientation.HORIZONTAL,
+            margin_top=6,
+            vexpand=True,
+            valign=Gtk.Align.END,
+        )
         button_box.prepend(decline_button)
         button_box.append(join_box)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/36b84b4704e7b8b7e258bb89a006a8974c8f2d3e

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/36b84b4704e7b8b7e258bb89a006a8974c8f2d3e
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to