[gnome-themes-standard] Add a selector for entry:active



commit 7e381493870177818d990e3a4e6e63f4f7b09915
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Sep 7 16:20:43 2012 -0400

    Add a selector for entry:active
    
    This was used by convention to lookup colors for a
    selected-but-not-active state, typically for text fields. This
    convention is still effective for some GTK3 applications too, e.g.
    WebKitGtk (and so Evolution/Epiphany/...).
    
    Fix this by adding selectors that match the entry:selected styling.

 themes/Adwaita/gtk-3.0/gtk-widgets.css      |   11 +++++++++++
 themes/HighContrast/gtk-3.0/gtk-widgets.css |    6 ++++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/themes/Adwaita/gtk-3.0/gtk-widgets.css b/themes/Adwaita/gtk-3.0/gtk-widgets.css
index 46117a3..3a2840b 100644
--- a/themes/Adwaita/gtk-3.0/gtk-widgets.css
+++ b/themes/Adwaita/gtk-3.0/gtk-widgets.css
@@ -377,6 +377,17 @@ GtkTreeView.separator:backdrop,
     background-color: @theme_unfocused_selected_bg_color
 }
 
+/* needed for webkit/GtkStyle compatibility */
+.entry:active {
+    color: @theme_selected_fg_color;
+    background-color: @theme_selected_bg_color;
+}
+
+.entry:active:backdrop {
+    color: @theme_unfocused_selected_fg_color;
+    background-color: @theme_unfocused_selected_bg_color
+}
+
 /*******************
  * Symbolic images *
  *******************/
diff --git a/themes/HighContrast/gtk-3.0/gtk-widgets.css b/themes/HighContrast/gtk-3.0/gtk-widgets.css
index b99aa40..c475189 100644
--- a/themes/HighContrast/gtk-3.0/gtk-widgets.css
+++ b/themes/HighContrast/gtk-3.0/gtk-widgets.css
@@ -288,6 +288,12 @@ GtkComboBox:insensitive {
     color: @theme_base_color;
 }
 
+/* needed for webkit/GtkStyle compatibility */
+.entry:active {
+    background-color: @theme_active_color;
+    color: @theme_base_color;
+}
+
 .entry:focus {
     border-width: 2px;
     border-color: @theme_highlight_color;



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