[polari] css: Fix background of insensitive entry area



commit 9eede78a64fcb1b82d11bfaedff4c6128df41d38
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Mar 25 17:40:53 2017 +0100

    css: Fix background of insensitive entry area
    
    The entry area is meant to blend in seamlessly with the chat log,
    which we achieve by adding the .view class. However since GTK+
    commit efde7d15a, views do have a distinct :disabled styling,
    which breaks the intended look for offline rooms.
    
    Restore the previous look with an appropriate override in the
    application style.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781159

 data/resources/application.css |    3 +++
 data/resources/entry-area.ui   |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/data/resources/application.css b/data/resources/application.css
index ab94219..c75a2ea 100644
--- a/data/resources/application.css
+++ b/data/resources/application.css
@@ -144,6 +144,9 @@ treeview.polari-server-room-list {
     border-width: 0 0 1px;
 }
 
+/* "opt-out" of insensitive view styling */
+.polari-entry-area:disabled { background-color: @theme_base_color; }
+
 /* the following adds a border on top of the inputbar when users scroll up */
 .polari-chat-view > undershoot.bottom { border-bottom: 1px solid @borders; }
 
diff --git a/data/resources/entry-area.ui b/data/resources/entry-area.ui
index 4d996ca..475803b 100644
--- a/data/resources/entry-area.ui
+++ b/data/resources/entry-area.ui
@@ -44,6 +44,7 @@
     <property name="valign">end</property>
     <property name="transition-type">crossfade</property>
     <style>
+      <class name="polari-entry-area"/>
       <class name="view"/>
     </style>
     <child>


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