[polari/gnome-3-24] chatView: Tweak loading indicator



commit df9b9b014612d257b205db2db3c9211d4872d1b9
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 870d2e3..bc9b41b 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -459,6 +459,7 @@ const ChatView = new Lang.Class({
           { name: 'indicator-line',
             pixels_above_lines: 24 },
           { name: 'loading',
+            left_margin: MARGIN,
             justification: Gtk.Justification.CENTER }
         ];
         tags.forEach(function(tagProps) {
@@ -839,6 +840,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]