[gtk+] HighContrast: Fix selection styling in icon views



commit aa5af9da4ff00251d0767ebd2370beeb18344758
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 14 18:35:03 2015 -0500

    HighContrast: Fix selection styling in icon views
    
    This makes selected items in icon view show up again.

 gtk/theme/HighContrast/_common.scss |   13 +++++++++++++
 gtk/theme/HighContrast/gtk.css      |   11 +++++++++--
 2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss
index f522b16..fd6e91c 100644
--- a/gtk/theme/HighContrast/_common.scss
+++ b/gtk/theme/HighContrast/_common.scss
@@ -120,6 +120,19 @@ textview text,
   }
 }
 
+iconview {
+  color: $fg_color;
+  background-color: $base_color;
+  &:backdrop {
+    color: $backdrop_fg_color;
+    background-color: $backdrop_base_color;
+  }
+  &:selected,
+  &:selected:focus {
+    @extend %selected_items;
+  }
+}
+
 .rubberband,
 rubberband {
   border: 1px solid $selected_bg_color;
diff --git a/gtk/theme/HighContrast/gtk.css b/gtk/theme/HighContrast/gtk.css
index 7e44323..a7e0a76 100644
--- a/gtk/theme/HighContrast/gtk.css
+++ b/gtk/theme/HighContrast/gtk.css
@@ -106,6 +106,13 @@ textview text,
     color: #000;
     background-color: #fff; }
 
+iconview {
+  color: #000;
+  background-color: #fff; }
+  iconview:backdrop {
+    color: #000;
+    background-color: #fff; }
+
 .rubberband,
 rubberband,
 flowbox rubberband,
@@ -2007,7 +2014,7 @@ levelbar block.empty {
 textview text selection, textview text selection:focus, textview text selection:hover,
 .view selection,
 .view selection:focus,
-.view selection:hover, flowbox flowboxchild:selected, label selection, label selection:focus, label 
selection:hover, label selection:backdrop, entry selection
+.view selection:hover, iconview:selected, iconview:selected:focus, flowbox flowboxchild:selected, label 
selection, label selection:focus, label selection:hover, label selection:backdrop, entry selection
 entry selection:focus, spinbutton selection
 entry selection:focus, entry selection
 spinbutton selection:focus, spinbutton selection
@@ -2018,7 +2025,7 @@ spinbutton selection:focus, modelbutton.flat:hover, modelbutton.flat:selected,
   color: #fff;
   outline-color: rgba(255, 255, 255, 0.3); }
   textview text selection:backdrop,
-  .view selection:backdrop, flowbox flowboxchild:backdrop:selected, label selection:backdrop, entry selection
+  .view selection:backdrop, iconview:backdrop:selected, flowbox flowboxchild:backdrop:selected, label 
selection:backdrop, entry selection
   entry selection:backdrop:focus, spinbutton selection
   entry selection:backdrop:focus, entry selection
   spinbutton selection:backdrop:focus, spinbutton selection


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