From 4faee9f08dca187b04a6f5719fe766a3b4375460 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 15 Mar 2017 00:36:56 +0100 Subject: Set dino-specific icons as part of icon theme --- main/src/ui/conversation_selector/chat_row.vala | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'main/src/ui/conversation_selector') diff --git a/main/src/ui/conversation_selector/chat_row.vala b/main/src/ui/conversation_selector/chat_row.vala index 8b36b333..96f6921d 100644 --- a/main/src/ui/conversation_selector/chat_row.vala +++ b/main/src/ui/conversation_selector/chat_row.vala @@ -61,18 +61,15 @@ public class ChatRow : ConversationRow { Show show = PresenceManager.get_instance(stream_interactor).get_last_show(full_jids[i], conversation.account); Image image = new Image(); - Pixbuf pixbuf; - int icon_size = 13 * image.scale_factor; if (show.as == Show.AWAY) { - pixbuf = new Pixbuf.from_resource_at_scale("/org/dino-im/img/status_away.svg", icon_size, icon_size, true); + image.set_from_icon_name("dino-status-away", IconSize.SMALL_TOOLBAR); } else if (show.as == Show.XA || show.as == Show.DND) { - pixbuf = new Pixbuf.from_resource_at_scale("/org/dino-im/img/status_dnd.svg", icon_size, icon_size, true); + image.set_from_icon_name("dino-status-dnd", IconSize.SMALL_TOOLBAR); } else if (show.as == Show.CHAT) { - pixbuf = new Pixbuf.from_resource_at_scale("/org/dino-im/img/status_chat.svg", icon_size, icon_size, true); + image.set_from_icon_name("dino-status-chat", IconSize.SMALL_TOOLBAR); } else { - pixbuf = new Pixbuf.from_resource_at_scale("/org/dino-im/img/status_online.svg", icon_size, icon_size, true); + image.set_from_icon_name("dino-status-online", IconSize.SMALL_TOOLBAR); } - Util.image_set_from_scaled_pixbuf(image, pixbuf); box.add(image); Label resource = new Label(full_jids[i].resourcepart); -- cgit v1.2.3-70-g09d2