[polari] ui: Use custom CSS for nick entry



commit f13bb1992f46b2f0ea4dbe0df2cb0d4375bf6172
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Sep 10 17:02:37 2014 +0200

    ui: Use custom CSS for nick entry
    
    The standard .dim-label class was never intended for non-label widgets,
    and indeed doesn't look right anymore with recent Awaita versions; just
    use some custom CSS to achieve the look we want.

 data/resources/application.css |    4 ++++
 src/entryArea.js               |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/data/resources/application.css b/data/resources/application.css
index 2c86123..5c0b14a 100644
--- a/data/resources/application.css
+++ b/data/resources/application.css
@@ -41,6 +41,10 @@
     border-width: 1px 0 0 0;
 }
 
+.polari-nick-entry {
+    color: alpha(@theme_fg_color, 0.6);
+}
+
 .polari-room-list .room-list-header {
     background-color: @polari_dark_bg_color;
     font-size: smaller;
diff --git a/src/entryArea.js b/src/entryArea.js
index 52a0713..9fc5f15 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -52,7 +52,7 @@ const EntryArea = new Lang.Class({
 
         this._nickEntry = new Gtk.Entry();
         this._nickEntry.width_chars = ChatView.MAX_NICK_CHARS
-        this._nickEntry.get_style_context().add_class('dim-label');
+        this._nickEntry.get_style_context().add_class('polari-nick-entry');
         this.widget.add(this._nickEntry);
 
         this._nickEntry.connect('activate', Lang.bind(this,


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