[gtk+/gtk-3-20] HC: progressbar style fix



commit 45ebb6afc68a01fb6b3737c0085ba65fe1f96f5a
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Wed Nov 23 17:25:18 2016 +0100

    HC: progressbar style fix
    
    Reset styling on the progress node when trough node has the `empty'
    styleclass.
    
    See https://bugzilla.gnome.org/show_bug.cgi?id=774695

 gtk/theme/HighContrast/_common.scss              |    1 +
 gtk/theme/HighContrast/gtk-contained-inverse.css |    2 ++
 gtk/theme/HighContrast/gtk-contained.css         |    2 ++
 3 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss
index 8a367b2..330b079 100644
--- a/gtk/theme/HighContrast/_common.scss
+++ b/gtk/theme/HighContrast/_common.scss
@@ -2503,6 +2503,7 @@ progressbar {
       border-radius: 0;
     }
   }
+  trough.empty progress { all: unset; } // make the progress indicator disappear when the fraction is 0
 }
 
 /*************
diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css 
b/gtk/theme/HighContrast/gtk-contained-inverse.css
index 4aef8db..1ee5833 100644
--- a/gtk/theme/HighContrast/gtk-contained-inverse.css
+++ b/gtk/theme/HighContrast/gtk-contained-inverse.css
@@ -2531,6 +2531,8 @@ progressbar progress {
   progressbar progress.osd {
     border-width: 0;
     border-radius: 0; }
+progressbar trough.empty progress {
+  all: unset; }
 
 /*************
  * Level Bar *
diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css
index 15c2b6c..78ecc68 100644
--- a/gtk/theme/HighContrast/gtk-contained.css
+++ b/gtk/theme/HighContrast/gtk-contained.css
@@ -2538,6 +2538,8 @@ progressbar progress {
   progressbar progress.osd {
     border-width: 0;
     border-radius: 0; }
+progressbar trough.empty progress {
+  all: unset; }
 
 /*************
  * Level Bar *


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