[gnome-boxes] style: Make use of dim-label class



commit 217749f735df49c47503faaee8b81c3f89586405
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed Sep 16 14:27:09 2015 +0100

    style: Make use of dim-label class
    
    Instead of hardcoding color.
    
    Based on a patch from Lapo Calamandrei <calamandrei gmail com>.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754565

 data/gtk-style.css            |    5 -----
 data/ui/wizard-media-entry.ui |    1 +
 src/wizard.vala               |    2 +-
 3 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index 9904a30..fade51d 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -28,7 +28,6 @@ BoxesResourceGraph {
 
 /* This is the subtitle in the ISOs/media list */
 .boxes-step-label {
-    color: #989898;
     font-size: 11px;
     font-weight: bold;
 }
@@ -41,10 +40,6 @@ BoxesResourceGraph {
     color: @theme_fg_color;
 }
 
-.boxes-wizard-summary-prop-name-label {
-    color: @theme_unfocused_fg_color;
-}
-
 .boxes-wizard-media-os-label {
     color: #d8d8d8;
     font-weight: bold;
diff --git a/data/ui/wizard-media-entry.ui b/data/ui/wizard-media-entry.ui
index f1d173d..898842a 100644
--- a/data/ui/wizard-media-entry.ui
+++ b/data/ui/wizard-media-entry.ui
@@ -53,6 +53,7 @@
                 <property name="label" translatable="yes">Unknown media</property>
                 <style>
                   <class name="boxes-step-label"/>
+                  <class name="dim-label"/>
                 </style>
               </object>
               <packing>
diff --git a/src/wizard.vala b/src/wizard.vala
index 7c269d7..13bf098 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -694,7 +694,7 @@ private class Boxes.WizardSummary: Gtk.Grid {
             return;
 
         var label_name = new Gtk.Label (name);
-        label_name.get_style_context ().add_class ("boxes-wizard-summary-prop-name-label");
+        label_name.get_style_context ().add_class ("dim-label");
         label_name.halign = Gtk.Align.END;
         attach (label_name, 0, current_row, 1, 1);
 


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