AdwNavigationView is a new widget meant to be used specifically for navigation, unlike AdwLeaflet which was multipurpose. AdwNavigationView provides a cleaner API and gives us automatic titles, back buttons, gestures, actions, and windowcontrols. AdwToolbarView is a utility widget that simplifies setting the top and bottom bars for simple views, giving us styling with undershoots, the ability to use flat headers in scrolling views, and proper styling when used with the new sidebar widgets. This commit ports the Accessibility panel to AdwNavigationView and AdwToolbarView. Subpages now subclass AdwNavigationPage and contain toolbar views - meaning their headers are joined with their content. Their titles and their back buttons are automatically handled by libadwaita, with proper accessibility. The actions provided by AdwNavigationPage allow us to remove the custom listbox we used for the `row-activated` signal. Rows now use the `navigation.push` action in order to push a subpage by tag. Currently our AdwToolbarViews use the `raised` style, as we have not ported to the new sidebar widget yet.
86 lines
4 KiB
XML
86 lines
4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcUaSeeingPage" parent="AdwNavigationPage">
|
|
<property name="title" translatable="yes">Seeing</property>
|
|
<property name="tag">seeing</property>
|
|
<property name="child">
|
|
<object class="AdwToolbarView">
|
|
<property name="top-bar-style">raised</property>
|
|
<child type="top">
|
|
<object class="AdwHeaderBar"/>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwPreferencesPage">
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
<child>
|
|
<object class="AdwSwitchRow" id="high_contrast_row">
|
|
<property name="title" translatable="yes">_High Contrast</property>
|
|
<property name="subtitle" translatable="yes">Increase color contrast of foreground and background interface elements</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwSwitchRow" id="animations_row">
|
|
<property name="title" translatable="yes">_Reduce Animation</property>
|
|
<property name="subtitle" translatable="yes">Reduce animations in the user interface to reduce motion</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwSwitchRow" id="large_text_row">
|
|
<property name="title" translatable="yes">_Large Text</property>
|
|
<property name="subtitle" translatable="yes">Increase the size of all text in the user interface</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="CcListRow" id="cursor_size_row">
|
|
<property name="title" translatable="yes">_Cursor Size</property>
|
|
<property name="subtitle" translatable="yes">The size of the cursor can be increased to make it easier to see</property>
|
|
<property name="use-underline">True</property>
|
|
<signal name="activated" handler="ua_cursor_row_activated_cb" swapped="yes"/>
|
|
<property name="show-arrow">True</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwSwitchRow" id="sound_keys_row">
|
|
<property name="title" translatable="yes">_Sound Keys</property>
|
|
<property name="subtitle" translatable="yes">Beep when Num Lock or Caps Lock are turned on or off</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwSwitchRow" id="overlay_scrollbars_row">
|
|
<property name="title" translatable="yes">_Overlay Scrollbars</property>
|
|
<property name="subtitle" translatable="yes">Use scrollbars that overlay the content and automatically hide</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<child>
|
|
<object class="AdwSwitchRow" id="screen_reader_row">
|
|
<property name="title" translatable="yes">Screen _Reader</property>
|
|
<property name="subtitle" translatable="yes">The screen reader reads displayed text as you move the focus</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|