fix: center label in message area

This commit is contained in:
aclist 2026-08-13 13:24:48 +09:00
parent b61e806009
commit 90b1c875df

View File

@ -22,6 +22,10 @@ class AbortDialog(Gtk.MessageDialog):
msg = textwrap.fill(string, 50)
self.format_secondary_text(msg)
ma = self.get_message_area()
label = ma.get_children()[1]
label.set_justify(Gtk.Justification.CENTER)
aa = self.get_action_area()
aa.set_margin_bottom(20)
aa.set_layout(Gtk.ButtonBoxStyle.CENTER) # type: ignore