[polari] Right justify status messages



commit aadf07222112be1a0506e79a48950aef04a9a843
Author: William Jon McCann <william jon mccann gmail com>
Date:   Thu Oct 17 14:16:04 2013 -0400

    Right justify status messages
    
    Currently the status messages obscure the nicks and user messages. I think it
    would be better, as an incremental improvement, move them out of the way a bit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710409

 src/chatView.js |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 3e6df61..c238a4e 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -101,7 +101,10 @@ const ChatView = new Lang.Class({
             weight: Pango.Weight.BOLD },
           { name: 'status',
             left_margin: 0,
+            justification: Gtk.Justification.RIGHT,
             indent: 0 },
+          { name: 'action',
+            left_margin: 0 },
           { name: 'url',
             underline: Pango.Underline.SINGLE
           }
@@ -131,6 +134,8 @@ const ChatView = new Lang.Class({
             foreground_rgba: dimColor },
           { name: 'status',
             foreground_rgba: dimColor },
+          { name: 'action',
+            foreground_rgba: dimColor },
           { name: 'url',
             foreground_rgba: linkColor }
         ];
@@ -363,7 +368,7 @@ const ChatView = new Lang.Class({
         if (message.get_message_type() == Tp.ChannelTextMessageType.ACTION) {
             text = "%s %s".format(nick, text);
             this._lastNick = null;
-            tags.push(this._lookupTag('status'));
+            tags.push(this._lookupTag('action'));
         } else {
             if (this._lastNick != nick)
                 this._insertWithTagName(nick + '\t', 'nick');


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]