Skip to content
Snippets Groups Projects
Commit 29110347 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Accounts: Add icon to Add Account page

parent fc3b9c4c
No related branches found
No related tags found
No related merge requests found
...@@ -555,14 +555,24 @@ def _disable(): ...@@ -555,14 +555,24 @@ def _disable():
class AddNewAccountPage(Gtk.Box): class AddNewAccountPage(Gtk.Box):
def __init__(self): def __init__(self):
Gtk.Box.__init__(self, orientation=Gtk.Orientation.VERTICAL) Gtk.Box.__init__(self,
orientation=Gtk.Orientation.VERTICAL,
spacing=18)
self.set_vexpand(True) self.set_vexpand(True)
self.set_hexpand(True) self.set_hexpand(True)
self.set_margin_top(24)
pixbuf = Gtk.IconTheme.load_icon_for_scale(
Gtk.IconTheme.get_default(),
'org.gajim.Gajim-symbolic',
100,
self.get_scale_factor(),
0)
self.add(Gtk.Image.new_from_pixbuf(pixbuf))
button = Gtk.Button(label=_('Add Account')) button = Gtk.Button(label=_('Add Account'))
button.get_style_context().add_class('suggested-action') button.get_style_context().add_class('suggested-action')
button.set_action_name('app.add-account') button.set_action_name('app.add-account')
button.set_halign(Gtk.Align.CENTER) button.set_halign(Gtk.Align.CENTER)
button.set_valign(Gtk.Align.CENTER)
self.add(button) self.add(button)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment