region: Add description label and use icon for options button

As per design:
https://wiki.gnome.org/Design/SystemSettings/RegionAndLanguage
This commit is contained in:
Robert Ancell 2018-09-07 12:39:51 +12:00 committed by Georges Basile Stavracas Neto
parent a2daee0c7f
commit 623a62a7f9

View file

@ -174,35 +174,71 @@
<property name="orientation">vertical</property>
<property name="hexpand">True</property>
<child>
<object class="GtkBox" id="input_heading_row">
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">6</property>
<property name="margin_bottom">12</property>
<child>
<object class="GtkLabel" id="input_heading">
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_start">2</property>
<property name="margin_end">2</property>
<property name="xalign">0</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Input Sources</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<accessibility>
<relation target="input_list" type="label-for"/>
</accessibility>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="input_heading">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="label" translatable="yes">Input Sources</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
<accessibility>
<relation target="input_list" type="label-for"/>
</accessibility>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Choose keyboard layouts or input methods.</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkMenuButton" id="options_button">
<property name="label" translatable="yes">_Options</property>
<object class="GtkAspectFrame">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
<property name="popover">options_popover</property>
<property name="can_focus">False</property>
<property name="label_xalign">0</property>
<property name="shadow_type">none</property>
<property name="obey_child">False</property>
<property name="xalign">1.0</property>
<property name="hexpand">True</property>
<child>
<object class="GtkMenuButton" id="options_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="popover">options_popover</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">emblem-system-symbolic</property>
</object>
</child>
<style>
<class name="image-button"/>
</style>
</object>
</child>
</object>
</child>
</object>