[gnome-boxes] wizard-source: Use CSS for coloring label



commit 27bc483e3e5c6559aa3c0b40b42af45c30292f4c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Sep 1 13:24:45 2015 +0100

    wizard-source: Use CSS for coloring label
    
    Instead of using pango markup for coloring labels, we should use the
    theme. This also reduces pango markup translators are exposed to.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754044

 data/gtk-style.css       |    4 ++++
 data/ui/wizard-source.ui |    5 ++++-
 2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/data/gtk-style.css b/data/gtk-style.css
index e3667b1..4977c05 100644
--- a/data/gtk-style.css
+++ b/data/gtk-style.css
@@ -211,3 +211,7 @@ BoxesResourceGraph {
 .slow-spinner {
     animation-duration: 2s;
 }
+
+.boxes-grey-label {
+    color: grey;
+}
diff --git a/data/ui/wizard-source.ui b/data/ui/wizard-source.ui
index 661a9d3..d340c80 100644
--- a/data/ui/wizard-source.ui
+++ b/data/ui/wizard-source.ui
@@ -286,7 +286,10 @@
                 <property name="use-markup">True</property>
                 <property name="wrap">True</property>
                 <property name="halign">start</property>
-                <property name="label" translatable="yes">&lt;span color="grey"&gt;Examples: 
http://download.com/image.iso, spice://somehost:5051, ovirt://host/path&lt;/span&gt;</property>
+                <property name="label" translatable="yes">Examples: http://download.com/image.iso, 
spice://somehost:5051, ovirt://host/path</property>
+                <style>
+                  <class name="boxes-grey-label"/>
+                </style>
               </object>
               <packing>
                 <property name="expand">True</property>


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