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.
164 lines
7.9 KiB
XML
164 lines
7.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcUaMousePage" parent="AdwNavigationPage">
|
|
<property name="title" translatable="yes">Pointing & Clicking</property>
|
|
<property name="tag">mouse</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="mouse_keys_row">
|
|
<property name="title" translatable="yes">_Mouse Keys</property>
|
|
<property name="subtitle" translatable="yes">Use numeric keypad to move your mouse pointer</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwSwitchRow" id="locate_pointer_row">
|
|
<property name="title" translatable="yes">_Locate Pointer</property>
|
|
<property name="subtitle" translatable="yes">Reveal pointer location by pressing Left Ctrl</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">_Double-Click Delay</property>
|
|
<property name="use-underline">True</property>
|
|
<child type="suffix">
|
|
<object class="GtkScale" id="double_click_delay_scale">
|
|
<property name="hexpand">True</property>
|
|
<marks>
|
|
<mark value="100" translatable="yes">Short</mark>
|
|
<!-- Default -->
|
|
<mark value="400"/>
|
|
<mark value="1000" translatable="yes">Long</mark>
|
|
</marks>
|
|
<property name="adjustment">
|
|
<object class="GtkAdjustment">
|
|
<property name="lower">100</property>
|
|
<property name="upper">1000</property>
|
|
<property name="value">400</property>
|
|
<property name="step_increment">100</property>
|
|
<property name="page_increment">100</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<property name="title" translatable="yes">Click Assist</property>
|
|
<child>
|
|
<object class="AdwExpanderRow" id="secondary_click_row">
|
|
<property name="title" translatable="yes">_Simulated Secondary Click</property>
|
|
<property name="subtitle" translatable="yes">Secondary click by holding down the primary mouse button</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="show-enable-switch">True</property>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">Acceptance Delay</property>
|
|
<child type="suffix">
|
|
<object class="GtkScale" id="secondary_delay_scale">
|
|
<property name="hexpand">True</property>
|
|
<marks>
|
|
<mark value="0.5" translatable="yes">Short</mark>
|
|
<!-- Default -->
|
|
<mark value="1.2"/>
|
|
<mark value="3" translatable="yes">Long</mark>
|
|
</marks>
|
|
<property name="adjustment">
|
|
<object class="GtkAdjustment">
|
|
<property name="upper">3</property>
|
|
<property name="lower">0.5</property>
|
|
<property name="step-increment">0.1</property>
|
|
<property name="page-increment">0.1</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwExpanderRow" id="hover_click_row">
|
|
<property name="title" translatable="yes">_Hover Click</property>
|
|
<property name="subtitle" translatable="yes">Trigger a click when the pointer hovers</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="show-enable-switch">True</property>
|
|
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">Delay</property>
|
|
<child type="suffix">
|
|
<object class="GtkScale" id="hover_delay_scale">
|
|
<property name="hexpand">True</property>
|
|
<marks>
|
|
<mark value="0.2" translatable="yes">Short</mark>
|
|
<!-- Default -->
|
|
<mark value="1.2"/>
|
|
<mark value="3" translatable="yes">Long</mark>
|
|
</marks>
|
|
<property name="adjustment">
|
|
<object class="GtkAdjustment">
|
|
<property name="lower">0.2</property>
|
|
<property name="upper">3</property>
|
|
<property name="value">1.2</property>
|
|
<property name="step_increment">0.1</property>
|
|
<property name="page_increment">0.1</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">Motion Threshold</property>
|
|
<child type="suffix">
|
|
<object class="GtkScale" id="motion_threshold_scale">
|
|
<property name="hexpand">True</property>
|
|
<marks>
|
|
<mark value="0" translatable="yes">Small</mark>
|
|
<!-- Default -->
|
|
<mark value="10"/>
|
|
<mark value="30" translatable="yes">Large</mark>
|
|
</marks>
|
|
<property name="adjustment">
|
|
<object class="GtkAdjustment">
|
|
<property name="upper">30</property>
|
|
<property name="step_increment">1</property>
|
|
<property name="page_increment">1</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
|
|
</object> <!-- ./AdwExpanderRow -->
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|