[polari] chatView: Fix nick color



commit 767f1e91ef8e24339684f49905da862268794cb3
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jun 14 11:27:07 2014 +0200

    chatView: Fix nick color
    
    We can no longer assume that a "random" style context defines an
    appropriate selection color, so make sure to set a class that
    should be selectable when grabbing the color.

 src/chatView.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 2ecd134..2db075c 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -177,6 +177,10 @@ const ChatView = new Lang.Class({
         context.save();
         context.add_class('dim-label');
         let dimColor = context.get_color(Gtk.StateFlags.NORMAL);
+        context.restore();
+
+        context.save();
+        context.add_class('view');
         let selectedColor = context.get_background_color(Gtk.StateFlags.SELECTED);
         context.restore();
 


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