2018-11-09 12:02:08 +13:00
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcMousePanel" parent="CcPanel">
2022-01-19 18:38:32 -03:00
2023-02-13 19:45:40 +01:00
<child type="titlebar">
<object class="AdwHeaderBar">
<property name="show-end-title-buttons">True</property>
2023-02-22 21:40:01 +01:00
<property name="show-start-title-buttons" bind-source="CcMousePanel" bind-property="folded" bind-flags="default|sync-create" />
2023-02-13 19:45:40 +01:00
<property name="title-widget">
<object class="AdwViewSwitcherTitle">
2023-03-01 01:15:02 +01:00
<property name="title" bind-source="CcMousePanel" bind-property="title" bind-flags="default|sync-create" />
2023-02-13 19:45:40 +01:00
<property name="stack">stack</property>
</object>
</property>
2023-02-22 21:38:07 +01:00
<child type="start">
<object class="GtkButton">
2023-05-16 18:39:41 -03:00
<property name="tooltip-text" translatable="yes">Back</property>
2023-02-22 21:38:07 +01:00
<property name="visible" bind-source="CcMousePanel" bind-property="folded" bind-flags="default|sync-create" />
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">window.navigate</property>
<property name="action-target">0</property> <!-- 0: ADW_NAVIGATION_DIRECTION_BACK -->
<accessibility>
<property name="label" translatable="yes">Back</property>
</accessibility>
</object>
</child>
2023-02-13 19:45:40 +01:00
<child type="end">
2023-01-03 13:30:58 +01:00
<object class="GtkButton" id="test_button">
2023-02-13 19:45:40 +01:00
<property name="use_underline">True</property>
<property name="valign">center</property>
<property name="label" translatable="yes">Test _Settings</property>
2023-05-16 18:39:41 -03:00
<property name="tooltip_text" translatable="yes">Test Mouse and Touchpad Settings</property>
2023-01-03 13:30:58 +01:00
<signal name="clicked" handler="test_button_clicked_cb" object="CcMousePanel" swapped="yes"/>
2023-02-13 19:45:40 +01:00
<style>
<class name="text-button"/>
</style>
</object>
</child>
2022-01-19 18:38:32 -03:00
</object>
</child>
2022-01-19 13:15:26 -03:00
<child type="content">
2023-02-13 19:45:40 +01:00
<object class="AdwViewStack" id="stack">
2018-11-09 12:02:08 +13:00
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwViewStackPage" id="mouse_stack_page">
<property name="title" translatable="yes">Mouse</property>
<property name="icon-name">input-mouse-symbolic</property>
<property name="child">
<object class="AdwPreferencesPage" id="preferences">
2018-11-09 12:29:02 +13:00
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">General</property>
2018-11-09 12:29:02 +13:00
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwActionRow" id="primary_button_row">
<property name="title" translatable="yes">Primary Button</property>
<property name="subtitle" translatable="yes">Order of physical buttons on mice and touchpads.</property>
<property name="subtitle-lines">0</property>
2022-01-15 01:03:04 -08:00
<child>
2023-02-13 19:45:40 +01:00
<object class="GtkBox" id="primary_button_box">
<property name="valign">center</property>
<property name="homogeneous">True</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<style>
<class name="linked"/>
</style>
<child>
<object class="GtkToggleButton" id="primary_button_left">
<property name="hexpand">True</property>
<property name="label" translatable="yes">Left</property>
<property name="height_request">35</property>
</object>
</child>
<child>
<object class="GtkToggleButton" id="primary_button_right">
<property name="hexpand">True</property>
<property name="label" translatable="yes">Right</property>
<property name="group">primary_button_left</property>
<property name="height_request">35</property>
</object>
</child>
2018-11-09 12:29:02 +13:00
</object>
</child>
</object>
</child>
</object>
</child>
2021-10-21 15:59:55 -03:00
2018-11-09 12:29:02 +13:00
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwPreferencesGroup" id="mouse_group">
<property name="title" translatable="yes">Mouse</property>
<child>
<object class="AdwActionRow" id="mouse_row">
<property name="title" translatable="yes">Pointer Speed</property>
<child type="suffix">
<object class="GtkScale" id="mouse_speed_scale">
<property name="hexpand">True</property>
<accessibility>
<property name="label" translatable="yes">Pointer Speed</property>
</accessibility>
<marks>
<mark value="-1" translatable="yes">Slow</mark>
<mark value="0"/>
<mark value="1" translatable="yes">Fast</mark>
</marks>
<property name="adjustment">
<object class="GtkAdjustment">
<property name="lower">-1</property>
<property name="upper">1</property>
<property name="step-increment">0.1</property>
<property name="page-increment">0.1</property>
</object>
</property>
2022-12-10 00:54:00 -03:00
</object>
2023-02-13 19:45:40 +01:00
</child>
2021-10-21 15:59:55 -03:00
</object>
</child>
2023-02-13 19:45:40 +01:00
<child>
<object class="AdwActionRow" id="mouse_accel_profile">
2023-02-28 15:13:00 +01:00
<property name="title" translatable="yes">Mouse Acceleration</property>
2023-02-13 19:45:40 +01:00
<property name="subtitle" translatable="yes">Recommended for most users and applications</property>
<property name="activatable-widget">mouse_accel_switch</property>
<child type="suffix">
2023-05-11 14:57:01 +02:00
<object class="CcListRowInfoButton">
2023-02-13 19:45:40 +01:00
<property name="valign">center</property>
2023-05-11 14:57:01 +02:00
<property name="text" translatable="yes">Turning mouse acceleration off can allow faster and more precise movements, but can also make the mouse more difficult to use.</property>
2022-12-13 14:07:59 +01:00
</object>
2023-02-13 19:45:40 +01:00
</child>
<child type="suffix">
<object class="GtkSwitch" id="mouse_accel_switch">
<property name="valign">center</property>
</object>
</child>
2022-12-13 14:07:59 +01:00
</object>
</child>
2021-10-21 15:59:55 -03:00
<child>
2023-02-13 19:45:40 +01:00
<object class="CcSplitRow" id="mouse_scroll_direction_row">
<property name="title" translatable="yes">Scroll Direction</property>
<property name="default-option-title" translatable="yes">Traditional</property>
<property name="default-option-subtitle" translatable="yes">Scrolling moves the view</property>
<property name="alternative-option-title" translatable="yes">Natural</property>
<property name="alternative-option-subtitle" translatable="yes">Scrolling moves the content</property>
2018-11-09 12:29:02 +13:00
</object>
</child>
</object>
</child>
2021-10-21 15:59:55 -03:00
2023-02-13 19:45:40 +01:00
</object>
</property>
</object>
</child>
<child>
<object class="AdwViewStackPage" id="touchpad_stack_page">
2023-02-20 11:27:22 +01:00
<property name="visible">False</property>
2023-02-13 19:45:40 +01:00
<property name="name">touchpad</property>
<property name="icon-name">input-touchpad-symbolic</property>
<property name="title" translatable="yes">Touchpad</property>
<property name="child">
<object class="AdwPreferencesPage">
2018-11-09 12:29:02 +13:00
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwPreferencesGroup" id="touchpad_group">
2018-11-09 12:29:02 +13:00
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwActionRow" id="touchpad_toggle_row">
<property name="title" translatable="yes">Touchpad</property>
<property name="activatable-widget">touchpad_toggle_switch</property>
<child>
<object class="GtkSwitch" id="touchpad_toggle_switch">
<property name="valign">center</property>
</object>
</child>
2021-10-21 15:59:55 -03:00
</object>
</child>
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwActionRow" id="touchpad_speed_row">
<property name="title" translatable="yes">Pointer Speed</property>
2023-03-21 04:11:56 +01:00
<property name="sensitive" bind-source="touchpad_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
2023-02-13 19:45:40 +01:00
<child type="suffix">
<object class="GtkScale" id="touchpad_speed_scale">
<property name="hexpand">True</property>
<accessibility>
<property name="label" translatable="yes">Pointer speed</property>
</accessibility>
<marks>
<mark value="-1" translatable="yes">Slow</mark>
<mark value="0"/>
<mark value="1" translatable="yes">Fast</mark>
</marks>
<property name="adjustment">
<object class="GtkAdjustment">
<property name="lower">-1</property>
<property name="upper">1</property>
<property name="step-increment">0.1</property>
<property name="page-increment">0.1</property>
</object>
</property>
2022-12-10 00:54:00 -03:00
</object>
2023-02-13 19:45:40 +01:00
</child>
2021-10-21 15:59:55 -03:00
</object>
</child>
2022-01-15 01:03:04 -08:00
</object>
</child>
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Clicking</property>
2021-10-21 15:59:55 -03:00
<child>
2023-02-13 19:45:40 +01:00
<object class="CcIllustratedRow" id="tap_to_click_row">
<property name="visible">False</property>
<property name="title" translatable="yes">Tap to Click</property>
<property name="subtitle" translatable="yes">Quickly touch the touchpad to click</property>
<property name="activatable-widget">tap_to_click_switch</property>
2023-03-21 04:11:56 +01:00
<property name="sensitive" bind-source="touchpad_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
2023-02-13 19:45:40 +01:00
<child>
<object class="GtkSwitch" id="tap_to_click_switch">
<property name="valign">center</property>
</object>
</child>
2021-10-21 15:59:55 -03:00
</object>
</child>
2022-01-15 01:03:04 -08:00
</object>
</child>
2023-02-13 19:45:40 +01:00
2022-01-15 01:03:04 -08:00
<child>
2023-02-13 19:45:40 +01:00
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Scrolling</property>
2021-10-21 15:59:55 -03:00
<child>
2023-02-13 19:45:40 +01:00
<object class="CcSplitRow" id="touchpad_scroll_method_row">
<property name="title" translatable="yes">Scroll Method</property>
<property name="default-option-title" translatable="yes">Two Finger</property>
<property name="default-option-subtitle" translatable="yes">Drag two fingers on the touchpad</property>
<property name="alternative-option-title" translatable="yes">Edge</property>
<property name="alternative-option-subtitle" translatable="yes">Drag one finger on the edge</property>
2023-03-21 04:11:56 +01:00
<property name="sensitive" bind-source="touchpad_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
2023-02-13 19:45:40 +01:00
<signal name="notify::use-default" handler="on_touchpad_scroll_method_changed_cb" object="CcMousePanel" swapped="yes"/>
2021-10-21 15:59:55 -03:00
</object>
</child>
<child>
2023-02-13 19:45:40 +01:00
<object class="CcSplitRow" id="touchpad_scroll_direction_row">
<property name="title" translatable="yes">Scroll Direction</property>
<property name="default-option-title" translatable="yes">Traditional</property>
<property name="default-option-subtitle" translatable="yes">Scrolling moves the view</property>
<property name="alternative-option-title" translatable="yes">Natural</property>
2023-03-21 04:11:56 +01:00
<property name="sensitive" bind-source="touchpad_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
2023-02-13 19:45:40 +01:00
<property name="alternative-option-subtitle" translatable="yes">Scrolling moves the content</property>
2018-11-09 12:29:02 +13:00
</object>
</child>
</object>
</child>
2023-02-13 19:45:40 +01:00
2018-11-09 12:29:02 +13:00
</object>
2023-02-13 19:45:40 +01:00
</property>
2021-10-21 15:59:55 -03:00
2018-11-09 12:02:08 +13:00
</object>
</child>
</object>
</child>
</template>
</interface>