[gtk/modern-testsuite: 4/6] reftests: Use colors without rounding errors
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/modern-testsuite: 4/6] reftests: Use colors without rounding errors
- Date: Thu, 16 Sep 2021 18:42:11 +0000 (UTC)
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<span color="#008000">ell</span>o
<a href="http://example.com">l<span
color="#00FF00">in</span>ky</a> <span
color="#80FF80">Worl</span>d</property>
+ <property name="label" translatable="yes">H<span color="#009900">ell</span>o
<a href="http://example.com">l<span
color="#00FF00">in</span>ky</a> <span
color="#99FF99">Worl</span>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]