[gtk/modern-testsuite] reftests: Don't use 0.5 for color values



commit 91377d58dcada2182f1ceba31a435d8a64ce4b97
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Sep 16 14:27:37 2021 -0400

    reftests: Don't use 0.5 for color values
    
    That is just asking for unfortunate rounding
    differences. This fixes the label-attribute-preference
    reftest.

 testsuite/reftests/label-attribute-preference.ref.ui | 6 +++---
 testsuite/reftests/label-attribute-preference.ui     | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/testsuite/reftests/label-attribute-preference.ref.ui 
b/testsuite/reftests/label-attribute-preference.ref.ui
index 6ef8fdc0cd..374a99bd75 100644
--- a/testsuite/reftests/label-attribute-preference.ref.ui
+++ b/testsuite/reftests/label-attribute-preference.ref.ui
@@ -6,12 +6,12 @@
       <object class="GtkLabel" id="label1">
         <property name="label" translatable="yes">Hello linky World</property>
         <attributes>
-          <attribute name="foreground" value="#000080000000" start="1" end="3"></attribute>
+          <attribute name="foreground" value="#000088880000" start="1" end="3"></attribute>
           <attribute name="foreground" value="#ffff00000000" start="3" end="8"></attribute>
           <attribute name="foreground" value="#0000ffff0000" start="8" end="9"></attribute>
           <attribute name="foreground" value="#00000000ffff" start="9" end="10"></attribute>
-          <attribute name="foreground" value="#ffff80008000" start="10" end="14"></attribute>
-          <attribute name="foreground" value="#8000ffff8000" start="14" end="16"></attribute>
+          <attribute name="foreground" value="#ffff88888888" start="10" end="14"></attribute>
+          <attribute name="foreground" value="#8888ffff8888" start="14" end="16"></attribute>
           <attribute name="underline" value="True" start="6" end="11"></attribute>
         </attributes>
       </object>
diff --git a/testsuite/reftests/label-attribute-preference.ui 
b/testsuite/reftests/label-attribute-preference.ui
index 9f1f53d17c..216d7b2c4a 100644
--- a/testsuite/reftests/label-attribute-preference.ui
+++ b/testsuite/reftests/label-attribute-preference.ui
@@ -5,10 +5,10 @@
     <child>
       <object class="GtkLabel" id="label1">
         <property name="use-markup">1</property>
-        <property name="label" translatable="yes">H&lt;span color=&quot;#008000&quot;&gt;ell&lt;/span&gt;o 
&lt;a href=&quot;http://example.com&quot;&gt;l&lt;span 
color=&quot;#00FF00&quot;&gt;in&lt;/span&gt;ky&lt;/a&gt; &lt;span 
color=&quot;#80FF80&quot;&gt;Worl&lt;/span&gt;d</property>
+        <property name="label" translatable="yes">H&lt;span 
color=&quot;#000088880000&quot;&gt;ell&lt;/span&gt;o &lt;a href=&quot;http://example.com&quot;&gt;l&lt;span 
color=&quot;#00FF00&quot;&gt;in&lt;/span&gt;ky&lt;/a&gt; &lt;span 
color=&quot;#8888FFFF8888&quot;&gt;Worl&lt;/span&gt;d</property>
         <attributes>
           <attribute name="foreground" value="#ffff00000000" start="3" end="8"></attribute>
-          <attribute name="foreground" value="#ffff80008000" start="10" end="14"></attribute>
+          <attribute name="foreground" value="#ffff88888888" start="10" end="14"></attribute>
         </attributes>
       </object>
     </child>


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