[gtk/modern-testsuite: 4/6] reftests: Use colors without rounding errors




commit 1c01c6d5efdecbdf418368b62781a16748b7de97
Author: Benjamin Otte <otte redhat com>
Date:   Thu Sep 16 20:26:26 2021 +0200

    reftests: Use colors without rounding errors
    
    Color values must be divisible by 15 to be convertible into U8 and U16
    values with the same result. 0x80 is not one of these values, so switch
    it to 0x99.

 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..942bf5e8d6 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="#000099990000" 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="#ffff99999999" start="10" end="14"></attribute>
+          <attribute name="foreground" value="#9999ffff9999" 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..da2b8dde31 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;#009900&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;#99FF99&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="#ffff99999999" start="10" end="14"></attribute>
         </attributes>
       </object>
     </child>


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