diff --git a/icons/geary.png b/icons/geary.png new file mode 100644 index 00000000..88886fbc Binary files /dev/null and b/icons/geary.png differ diff --git a/src/client/ui/icon-factory.vala b/src/client/ui/icon-factory.vala index bd178e7d..2d3f623a 100644 --- a/src/client/ui/icon-factory.vala +++ b/src/client/ui/icon-factory.vala @@ -21,6 +21,9 @@ public class IconFactory { public const int UNREAD_ICON_SIZE = 12; public Gdk.Pixbuf? unread { get; private set; } + public const int GEARY_ICON_SIZE = 95; + public Gdk.Pixbuf? geary { get; private set; } + public ThemedIcon label_icon { get; private set; default = new ThemedIcon("one-tag"); } public ThemedIcon label_folder_icon { get; private set; default = new ThemedIcon("multiple-tags"); } @@ -38,12 +41,13 @@ public class IconFactory { // Creates the icon factory. private IconFactory() { - // Load icons here. - unread = load("mail-unread", UNREAD_ICON_SIZE); - icon_theme= Gtk.IconTheme.get_default(); icon_theme.append_search_path(GearyApplication.instance.get_resource_directory(). get_child("icons").get_path()); + + // Load icons here. + unread = load("mail-unread", UNREAD_ICON_SIZE); + geary = load("geary", GEARY_ICON_SIZE); } } diff --git a/src/client/ui/main-window.vala b/src/client/ui/main-window.vala index 81a79d85..5eb80853 100644 --- a/src/client/ui/main-window.vala +++ b/src/client/ui/main-window.vala @@ -28,6 +28,10 @@ public class MainWindow : Gtk.Window { add_accel_group(GearyApplication.instance.ui_manager.get_accel_group()); + GLib.List pixbuf_list = new GLib.List(); + pixbuf_list.append(IconFactory.instance.geary); + set_default_icon_list(pixbuf_list); + create_layout(); }