summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Bicha <jbicha@ubuntu.com>2019-01-07 10:44:39 -0500
committerJeremy Bicha <jbicha@ubuntu.com>2019-01-07 10:57:17 -0500
commitd9e07460ae50ab03268265020cb7d628122890e6 (patch)
tree3752788c3f826f350de8b17bea12c6e394fa7f49
parent7f6d19441f2d264c8f153346c05be5ffc99e9d12 (diff)
downloadgnome-control-center-d9e07460ae50ab03268265020cb7d628122890e6.tar.gz
night-light: Add a frame around Schedule section for accessibility
This way the Schedule label is correctly read as a header for the section by screen readers
-rw-r--r--panels/display/cc-night-light-dialog.ui120
1 files changed, 64 insertions, 56 deletions
diff --git a/panels/display/cc-night-light-dialog.ui b/panels/display/cc-night-light-dialog.ui
index 1e4fb58fe..69d77d20f 100644
--- a/panels/display/cc-night-light-dialog.ui
+++ b/panels/display/cc-night-light-dialog.ui
@@ -113,17 +113,17 @@
</object>
</child>
<child>
- <object class="GtkBox">
+ <object class="GtkFrame">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="spacing">22</property>
- <child>
+ <property name="shadow_type">none</property>
+ <child type="label">
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="hexpand">True</property>
+ <property name="margin-bottom">22</property>
<property name="label" translatable="yes">Schedule</property>
<attributes>
<attribute name="weight" value="bold"/>
@@ -131,64 +131,72 @@
</object>
</child>
<child>
- <object class="GtkButtonBox" id="togglebutton_box">
+ <object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="halign">fill</property>
- <property name="hexpand">True</property>
- <property name="layout_style">expand</property>
- <child>
- <object class="GtkRadioButton" id="togglebutton_automatic">
- <property name="label" translatable="yes">Sunset to Sunrise</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="draw_indicator">False</property>
- <property name="active">True</property>
- <signal name="toggled" handler="dialog_mode_changed_cb" object="CcNightLightDialog" swapped="no" />
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
- </child>
+ <property name="orientation">vertical</property>
+ <property name="spacing">22</property>
<child>
- <object class="GtkRadioButton" id="togglebutton_manual">
- <property name="label" translatable="yes">Manual</property>
+ <object class="GtkButtonBox" id="togglebutton_box">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="group">togglebutton_automatic</property>
- <property name="draw_indicator">False</property>
- <signal name="toggled" handler="dialog_mode_changed_cb" object="CcNightLightDialog" swapped="no" />
- </object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkRadioButton" id="togglebutton_off">
- <property name="label" translatable="yes">_Off</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="draw_indicator">False</property>
- <property name="group">togglebutton_automatic</property>
- <property name="use_underline">True</property>
- <signal name="toggled" handler="dialog_mode_changed_cb" object="CcNightLightDialog" swapped="no" />
+ <property name="can_focus">False</property>
+ <property name="halign">fill</property>
+ <property name="hexpand">True</property>
+ <property name="layout_style">expand</property>
+ <child>
+ <object class="GtkRadioButton" id="togglebutton_automatic">
+ <property name="label" translatable="yes">Sunset to Sunrise</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="draw_indicator">False</property>
+ <property name="active">True</property>
+ <signal name="toggled" handler="dialog_mode_changed_cb" object="CcNightLightDialog" swapped="no" />
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="togglebutton_manual">
+ <property name="label" translatable="yes">Manual</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="group">togglebutton_automatic</property>
+ <property name="draw_indicator">False</property>
+ <signal name="toggled" handler="dialog_mode_changed_cb" object="CcNightLightDialog" swapped="no" />
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="togglebutton_off">
+ <property name="label" translatable="yes">_Off</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="draw_indicator">False</property>
+ <property name="group">togglebutton_automatic</property>
+ <property name="use_underline">True</property>
+ <signal name="toggled" handler="dialog_mode_changed_cb" object="CcNightLightDialog" swapped="no" />
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <style>
+ <class name="linked"/>
+ </style>
</object>
- <packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
</child>
- <style>
- <class name="linked"/>
- </style>
</object>
</child>
</object>