summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousuf Philips <philipz85@hotmail.com>2016-10-20 02:25:32 +0400
committerYousuf Philips <philipz85@hotmail.com>2016-10-21 10:28:24 +0000
commitac374ebf05196c928aac56b6b0b19a2f670503ca (patch)
treeb7f5d5bd6228cfcd5f93a1df87c68bcb41547fc5
parent1473ce030314027c01c98f513407ed0897328585 (diff)
tdf#103223 custom palette label and a11y improvements
In the color section of the Area fill tab, i've added a custom palette label above the add and delete buttons, moved the palette label and control on the same line and improved the accessibility of various controls by adding tooltips and associating labels. Change-Id: I4a8c9963fd23312190ba343dbb1a0db587b13d1e Reviewed-on: https://gerrit.libreoffice.org/29894 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
-rw-r--r--cui/uiconfig/ui/colorpage.ui75
1 files changed, 49 insertions, 26 deletions
diff --git a/cui/uiconfig/ui/colorpage.ui b/cui/uiconfig/ui/colorpage.ui
index dd908c532b2b..c75cdeb0378c 100644
--- a/cui/uiconfig/ui/colorpage.ui
+++ b/cui/uiconfig/ui/colorpage.ui
@@ -49,15 +49,17 @@
<object class="GtkBox" id="box7">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="orientation">vertical</property>
<property name="spacing">3</property>
<child>
<object class="GtkLabel" id="label21">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="valign">center</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="label" translatable="yes">Palette :</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">paletteselector</property>
</object>
<packing>
<property name="expand">False</property>
@@ -88,6 +90,7 @@
<object class="GtkBox" id="box6">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="margin_top">6</property>
<property name="orientation">vertical</property>
<property name="spacing">3</property>
<child>
@@ -96,6 +99,8 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Recent Colors</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">recentcolorset</property>
</object>
<packing>
<property name="expand">False</property>
@@ -105,11 +110,11 @@
</child>
<child>
<object class="svxcorelo-SvxColorValueSet" id="recentcolorset">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
- </object>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ </object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
@@ -128,6 +133,7 @@
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="margin_top">6</property>
<property name="column_spacing">3</property>
<property name="column_homogeneous">True</property>
<child>
@@ -140,7 +146,7 @@
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">0</property>
+ <property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -156,7 +162,7 @@
</object>
<packing>
<property name="left_attach">0</property>
- <property name="top_attach">1</property>
+ <property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -172,7 +178,7 @@
</object>
<packing>
<property name="left_attach">1</property>
- <property name="top_attach">1</property>
+ <property name="top_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -186,11 +192,26 @@
</object>
<packing>
<property name="left_attach">1</property>
- <property name="top_attach">0</property>
+ <property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel" id="label22">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_bottom">3</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Custom Palette</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="left_attach">0</property>
@@ -207,11 +228,11 @@
<property name="orientation">vertical</property>
<child>
<object class="svxcorelo-SvxColorValueSet" id="colorset">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="hexpand">True</property>
- <property name="vexpand">True</property>
- </object>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ </object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
@@ -365,10 +386,10 @@
</child>
<child>
<object class="svxcorelo-HexColorControl" id="hex_preset">
- <property name="width_request">6</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- </object>
+ <property name="width_request">6</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ </object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>
@@ -632,6 +653,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
+ <property name="primary_icon_tooltip_text" translatable="yes">Blue</property>
<property name="adjustment">adjustment2</property>
</object>
<packing>
@@ -646,6 +668,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
+ <property name="primary_icon_tooltip_text" translatable="yes">Red</property>
<property name="adjustment">adjustment2</property>
</object>
<packing>
@@ -661,7 +684,6 @@
<property name="can_focus">False</property>
<property name="label" translatable="yes">_B</property>
<property name="use_underline">True</property>
- <property name="mnemonic_widget">B_custom</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -676,7 +698,6 @@
<property name="can_focus">False</property>
<property name="label" translatable="yes">_G</property>
<property name="use_underline">True</property>
- <property name="mnemonic_widget">G_custom</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -691,7 +712,6 @@
<property name="can_focus">False</property>
<property name="label" translatable="yes">_R</property>
<property name="use_underline">True</property>
- <property name="mnemonic_widget">R_custom</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -705,6 +725,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
+ <property name="primary_icon_tooltip_text" translatable="yes">Green</property>
<property name="adjustment">adjustment2</property>
</object>
<packing>
@@ -719,6 +740,8 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">_Hex</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">hex_custom</property>
</object>
<packing>
<property name="left_attach">0</property>
@@ -729,10 +752,10 @@
</child>
<child>
<object class="svxcorelo-HexColorControl" id="hex_custom">
- <property name="width_request">6</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- </object>
+ <property name="width_request">6</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ </object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">3</property>