diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-17 15:20:49 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2018-11-17 15:20:52 +0100 |
commit | 64ab3253562be80e726b3d69e4c3e556b055c965 (patch) | |
tree | 97d5b68f90ca8176fc58ec16eb79dbbef2920abd /src/ChatMessage.cpp | |
parent | 7873b7555f1f8fe72732f64b35a8116390b981b3 (diff) |
Auto reload css on modify, improve design
Diffstat (limited to 'src/ChatMessage.cpp')
-rw-r--r-- | src/ChatMessage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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); |