[polari] chatView: Tweak loading indicator



commit 3130f5e06908d25a72d71662b20710aa3c653ddc
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Apr 20 23:06:19 2017 +0200

    chatView: Tweak loading indicator
    
    Center the indicator with respect to the whole view and dim its
    color, as suggested by Lapo.

 src/chatView.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 5a8131d..4868a46 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -458,6 +458,7 @@ const ChatView = new Lang.Class({
           { name: 'indicator-line',
             pixels_above_lines: 24 },
           { name: 'loading',
+            left_margin: MARGIN,
             justification: Gtk.Justification.CENTER }
         ];
         tags.forEach(tagProps => { tagTable.add(new Gtk.TextTag(tagProps)); });
@@ -826,6 +827,7 @@ const ChatView = new Lang.Class({
     _showLoadingIndicator: function() {
         let indicator = new Gtk.Image({ icon_name: 'content-loading-symbolic',
                                         visible: true });
+        indicator.get_style_context().add_class('dim-label');
 
         let buffer = this._view.buffer;
         let iter = buffer.get_start_iter();


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