summaryrefslogtreecommitdiff
path: root/panels/mouse/cc-mouse-panel.ui
blob: 6becb259a0c21f81c7473479e3e90b19af48d50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcMousePanel" parent="CcPanel">

    <child type="titlebar">
      <object class="AdwHeaderBar">
        <property name="show-end-title-buttons">True</property>
        <property name="show-start-title-buttons" bind-source="CcMousePanel" bind-property="folded" bind-flags="default|sync-create" />
        <property name="title-widget">
          <object class="AdwViewSwitcherTitle">
            <property name="title" bind-source="CcMousePanel" bind-property="title" bind-flags="default|sync-create" />
            <property name="stack">stack</property>
          </object>
        </property>
        <child type="start">
          <object class="GtkButton">
            <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>
        <child type="end">
          <object class="GtkButton" id="test_button">
            <property name="use_underline">True</property>
            <property name="valign">center</property>
            <property name="label" translatable="yes">Test _Settings</property>
            <signal name="clicked" handler="test_button_clicked_cb" object="CcMousePanel" swapped="yes"/>
            <style>
              <class name="text-button"/>
            </style>
          </object>
        </child>
      </object>
    </child>

    <child type="content">
      <object class="AdwViewStack" id="stack">
        <child>
          <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">
                <child>
                  <object class="AdwPreferencesGroup">
                    <property name="title" translatable="yes">General</property>
                    <child>
                      <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>
                        <child>
                          <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>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>

                <child>
                  <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>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="AdwActionRow" id="mouse_accel_profile">
                        <property name="title" translatable="yes">Mouse Acceleration</property>
                        <property name="subtitle" translatable="yes">Recommended for most users and applications</property>
                        <property name="activatable-widget">mouse_accel_switch</property>
                        <child type="suffix">
                          <object class="CcListRowInfoButton">
                            <property name="valign">center</property>
                            <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>
                          </object>
                        </child>
                        <child type="suffix">
                          <object class="GtkSwitch" id="mouse_accel_switch">
                            <property name="valign">center</property>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <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>
                      </object>
                    </child>
                  </object>
                </child>

              </object>
            </property>
          </object>
        </child>
        <child>
          <object class="AdwViewStackPage" id="touchpad_stack_page">
            <property name="visible">False</property>
            <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">
                <child>
                  <object class="AdwPreferencesGroup" id="touchpad_group">
                    <child>
                      <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>
                      </object>
                    </child>
                    <child>
                      <object class="AdwActionRow" id="touchpad_speed_row">
                        <property name="title" translatable="yes">Pointer Speed</property>
                        <property name="sensitive" bind-source="touchpad_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
                        <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>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="AdwPreferencesGroup">
                    <property name="title" translatable="yes">Clicking</property>

                    <child>
                      <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>
                        <property name="sensitive" bind-source="touchpad_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
                        <child>
                          <object class="GtkSwitch" id="tap_to_click_switch">
                            <property name="valign">center</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>

                <child>
                  <object class="AdwPreferencesGroup">
                    <property name="title" translatable="yes">Scrolling</property>
                    <child>
                      <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>
                        <property name="sensitive" bind-source="touchpad_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
                        <signal name="notify::use-default" handler="on_touchpad_scroll_method_changed_cb" object="CcMousePanel" swapped="yes"/>
                      </object>
                    </child>
                    <child>
                      <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>
                        <property name="sensitive" bind-source="touchpad_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
                        <property name="alternative-option-subtitle" translatable="yes">Scrolling moves the content</property>
                      </object>
                    </child>
                  </object>
                </child>

              </object>
            </property>

          </object>
        </child>
      </object>
    </child>
  </template>
</interface>