From 64ab3253562be80e726b3d69e4c3e556b055c965 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 17 Nov 2018 15:20:49 +0100 Subject: Auto reload css on modify, improve design --- src/ChatMessage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ChatMessage.cpp') diff --git a/src/ChatMessage.cpp b/src/ChatMessage.cpp index 98d7f88..aa96abd 100644 --- a/src/ChatMessage.cpp +++ b/src/ChatMessage.cpp @@ -10,23 +10,23 @@ namespace dchat avatar.set_halign(Gtk::ALIGN_START); avatar.set_valign(Gtk::ALIGN_START); avatar.set_size_request(50, 50); - //avatar.url = "https://discordemoji.com/assets/emoji/7752_PepePOOGERSFAST.gif"; + avatar.url = "https://discordemoji.com/assets/emoji/PoggersHype.gif"; username.set_selectable(true); username.set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START); - username.get_style_context()->add_class("chat-message-username"); + username.get_style_context()->add_class("message-message-username"); text.set_selectable(true); text.set_alignment(Gtk::ALIGN_START, Gtk::ALIGN_START); text.set_line_wrap(true); text.set_line_wrap_mode(Pango::WRAP_WORD_CHAR); text.set_vexpand(true); - text.get_style_context()->add_class("chat-message-text"); + text.get_style_context()->add_class("message-message-text"); attach(avatar, 0, 0, 1, 2); attach_next_to(username, avatar, Gtk::POS_RIGHT, 1, 1); attach_next_to(text, username, Gtk::POS_BOTTOM, 1, 1); - get_style_context()->add_class("chat-message"); + get_style_context()->add_class("message-message"); set_column_spacing(10); set_row_spacing(0); -- cgit v1.2.3