set icons on stack switcher

This commit is contained in:
Morgan McMillian 2020-12-16 17:17:33 -08:00
parent 7ce61494b1
commit 20ba306748

View file

@ -147,14 +147,19 @@ class Application(Gtk.Application):
if login_page is not None:
self.stack.remove(login_page)
# TODO: find better icons
unified = Timeline('unified')
self.stack.add_titled(unified, "unified", "Timeline")
self.stack.child_set_property(unified, "icon-name", "user-home-symbolic")
mentions = Timeline('mentions')
self.stack.add_titled(mentions, "mentions", "Mentions")
self.stack.child_set_property(mentions, "icon-name", "preferences-system-notifications-symbolic")
bookmarks = Timeline('bookmarks')
self.stack.add_titled(bookmarks, "bookmarks", "Bookmarks")
self.stack.child_set_property(bookmarks, "icon-name", "user-bookmarks-symbolic")
global_tl = Timeline('global')
self.stack.add_titled(global_tl, "global", "Global")
self.stack.child_set_property(global_tl, "icon-name", "network-workgroup-symbolic")
new_post_button = Gtk.Button.new_from_icon_name('list-add-symbolic', 1)
new_post_button.connect('clicked', self.on_new_post)