8aed86614520f09a84619b93d05db4e7d78a2778
[PrivacyBrowser.git] / app / src / main / res / xml / preferences.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2021 Soren Stoutner <soren@stoutner.com>.
5
6   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
7
8   Privacy Browser is free software: you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation, either version 3 of the License, or
11   (at your option) any later version.
12
13   Privacy Browser is distributed in the hope that it will be useful,
14   but WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16   GNU General Public License for more details.
17
18   You should have received a copy of the GNU General Public License
19   along with Privacy Browser.  If not, see <http://www.gnu.org/licenses/>. -->
20
21 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
22     <PreferenceCategory
23         android:key="privacy"
24         android:title="@string/privacy" >
25
26         <SwitchPreference
27             android:key="javascript"
28             android:title="@string/javascript_preference"
29             android:summary="@string/javascript_preference_summary"
30             android:defaultValue="false" />
31
32         <SwitchPreference
33             android:key="cookies"
34             android:title="@string/cookies_preference"
35             android:summary="@string/cookies_preference_summary"
36             android:defaultValue="false" />
37
38         <SwitchPreference
39             android:key="dom_storage"
40             android:title="@string/dom_storage_preference"
41             android:summary="@string/dom_storage_preference_summary"
42             android:defaultValue="false" />
43
44         <!-- Save form data can be removed once the minimum API >= 26. -->
45         <SwitchPreference
46             android:key="save_form_data"
47             android:title="@string/save_form_data_preference"
48             android:summary="@string/save_form_data_preference_summary"
49             android:defaultValue="false" />
50
51         <ListPreference
52             android:key="user_agent"
53             android:title="@string/user_agent"
54             android:entries="@array/translated_user_agent_names"
55             android:entryValues="@array/user_agent_names"
56             android:defaultValue="@string/user_agent_default_value"
57             android:icon="?attr/userAgentIcon" />
58
59         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
60         <EditTextPreference
61             android:key="custom_user_agent"
62             android:title="@string/custom_user_agent"
63             android:defaultValue="@string/custom_user_agent_default_value"
64             android:inputType="textVisiblePassword|textMultiLine" />
65
66         <SwitchPreference
67             android:key="incognito_mode"
68             android:title="@string/incognito_mode"
69             android:summary="@string/incognito_mode_summary"
70             android:defaultValue="false" />
71
72         <SwitchPreference
73             android:key="allow_screenshots"
74             android:title="@string/allow_screenshots"
75             android:summary="@string/allow_screenshots_summary"
76             android:defaultValue="false" />
77     </PreferenceCategory>
78
79     <PreferenceCategory
80         android:key="blocklists"
81         android:title="@string/blocklists" >
82
83         <SwitchPreference
84             android:key="easylist"
85             android:title="@string/easylist"
86             android:summary="@string/easylist_summary"
87             android:defaultValue="true" />
88
89         <SwitchPreference
90             android:key="easyprivacy"
91             android:title="@string/easyprivacy"
92             android:summary="@string/easyprivacy_summary"
93             android:defaultValue="true" />
94
95         <SwitchPreference
96             android:key="fanboys_annoyance_list"
97             android:title="@string/fanboys_annoyance_list"
98             android:summary="@string/fanboys_annoyance_list_summary"
99             android:defaultValue="true" />
100
101         <SwitchPreference
102             android:key="fanboys_social_blocking_list"
103             android:title="@string/fanboys_social_blocking_list"
104             android:summary="@string/fanboys_social_blocking_list_summary"
105             android:defaultValue="true" />
106
107         <SwitchPreference
108             android:key="ultralist"
109             android:title="@string/ultralist"
110             android:summary="@string/ultralist_summary"
111             android:defaultValue="true" />
112
113         <SwitchPreference
114             android:key="ultraprivacy"
115             android:title="@string/ultraprivacy"
116             android:summary="@string/ultraprivacy_summary"
117             android:defaultValue="true" />
118
119         <SwitchPreference
120             android:key="block_all_third_party_requests"
121             android:title="@string/block_all_third_party_requests"
122             android:summary="@string/block_all_third_party_requests_summary"
123             android:defaultValue="false" />
124     </PreferenceCategory>
125
126     <PreferenceCategory
127         android:key="url_modification"
128         android:title="@string/url_modification" >
129
130         <SwitchPreference
131             android:key="google_analytics"
132             android:title="@string/google_analytics"
133             android:summary="@string/google_analytics_summary"
134             android:defaultValue="true" />
135
136         <SwitchPreference
137             android:key="facebook_click_ids"
138             android:title="@string/facebook_click_ids"
139             android:summary="@string/facebook_click_ids_summary"
140             android:defaultValue="true" />
141
142         <SwitchPreference
143             android:key="twitter_amp_redirects"
144             android:title="@string/twitter_amp_redirects"
145             android:summary="@string/twitter_amp_redirects_summary"
146             android:defaultValue="true" />
147     </PreferenceCategory>
148
149     <PreferenceCategory
150         android:key="search_category"
151         android:title="@string/search" >
152
153         <ListPreference
154             android:key="search"
155             android:title="@string/search"
156             android:entries="@array/search_entries"
157             android:entryValues="@array/search_entry_values"
158             android:defaultValue="@string/search_default_value"
159             android:icon="?attr/searchIcon" />
160
161         <EditTextPreference
162             android:key="search_custom_url"
163             android:title="@string/search_custom_url"
164             android:defaultValue="@string/search_custom_url_default_value"
165             android:inputType="textUri" />
166     </PreferenceCategory>
167
168     <PreferenceCategory
169         android:key="proxy_category"
170         android:title="@string/proxy" >
171
172         <ListPreference
173             android:key="proxy"
174             android:title="@string/proxy"
175             android:entries="@array/proxy_entries"
176             android:entryValues="@array/proxy_entry_values"
177             android:defaultValue="@string/proxy_default_value" />
178
179         <EditTextPreference
180             android:key="proxy_custom_url"
181             android:title="@string/proxy_custom_url"
182             android:defaultValue="@string/proxy_custom_url_default_value"
183             android:inputType="textUri" />
184     </PreferenceCategory>
185
186     <PreferenceCategory
187         android:key="full_screen"
188         android:title="@string/full_screen" >
189
190         <SwitchPreference
191             android:key="full_screen_browsing_mode"
192             android:title="@string/full_screen_browsing_mode"
193             android:summary="@string/full_screen_browsing_mode_summary"
194             android:defaultValue="false" />
195
196         <SwitchPreference
197             android:key="hide_app_bar"
198             android:title="@string/hide_app_bar"
199             android:summary="@string/hide_app_bar_summary"
200             android:defaultValue="true" />
201     </PreferenceCategory>
202
203     <PreferenceCategory
204         android:key="clear_and_exit"
205         android:title="@string/clear_and_exit" >
206
207         <SwitchPreference
208             android:key="clear_everything"
209             android:title="@string/clear_everything"
210             android:summary="@string/clear_everything_summary"
211             android:defaultValue="true" />
212
213         <SwitchPreference
214             android:key="clear_cookies"
215             android:title="@string/clear_cookies_preference"
216             android:summary="@string/clear_cookies_summary"
217             android:defaultValue="true" />
218
219         <SwitchPreference
220             android:key="clear_dom_storage"
221             android:title="@string/clear_dom_storage_preference"
222             android:summary="@string/clear_dom_storage_summary"
223             android:defaultValue="true" />
224
225         <!-- Clear form data can be removed once the minimum API >= 26. -->
226         <SwitchPreference
227             android:key="clear_form_data"
228             android:title="@string/clear_form_data_preference"
229             android:summary="@string/clear_form_data_summary"
230             android:defaultValue="true" />
231
232         <SwitchPreference
233             android:key="clear_logcat"
234             android:title="@string/clear_logcat_preference"
235             android:summary="@string/clear_logcat_summary"
236             android:defaultValue="true" />
237
238         <SwitchPreference
239             android:key="clear_cache"
240             android:title="@string/clear_cache"
241             android:summary="@string/clear_cache_summary"
242             android:defaultValue="true" />
243     </PreferenceCategory>
244
245     <PreferenceCategory
246         android:key="general"
247         android:title="@string/general" >
248
249         <EditTextPreference
250             android:key="homepage"
251             android:title="@string/homepage"
252             android:defaultValue="@string/homepage_default_value"
253             android:inputType="textUri"
254             android:icon="?attr/homepageIcon" />
255
256         <!-- `android:inputType="number"` currently doesn't work with AndroidX. -->
257         <EditTextPreference
258             android:key="font_size"
259             android:title="@string/font_size_preference"
260             android:defaultValue="@string/font_size_default_value"
261             android:inputType="number"
262             android:icon="?attr/fontSizeIcon" />
263
264         <SwitchPreference
265             android:key="open_intents_in_new_tab"
266             android:title="@string/open_intents_in_new_tab"
267             android:summary="@string/open_intents_in_new_tab_summary"
268             android:defaultValue="true" />
269
270         <SwitchPreference
271             android:key="swipe_to_refresh"
272             android:title="@string/swipe_to_refresh"
273             android:summary="@string/swipe_to_refresh_summary"
274             android:defaultValue="true" />
275
276         <SwitchPreference
277             android:key="scroll_app_bar"
278             android:title="@string/scroll_app_bar"
279             android:summary="@string/scroll_app_bar_summary"
280             android:defaultValue="true" />
281
282         <SwitchPreference
283             android:key="display_additional_app_bar_icons"
284             android:title="@string/display_additional_app_bar_icons"
285             android:summary="@string/display_additional_app_bar_icons_summary"
286             android:defaultValue="false" />
287
288         <ListPreference
289             android:key="app_theme"
290             android:title="@string/app_theme"
291             android:entries="@array/app_theme_entries"
292             android:entryValues="@array/app_theme_entry_values"
293             android:defaultValue="@string/app_theme_default_value"
294             android:icon="?attr/appThemeIcon" />
295
296         <ListPreference
297             android:key="webview_theme"
298             android:title="@string/webview_theme"
299             android:entries="@array/webview_theme_entries"
300             android:entryValues="@array/webview_theme_entry_values"
301             android:defaultValue="@string/webview_theme_default_value" />
302
303         <SwitchPreference
304             android:key="wide_viewport"
305             android:title="@string/wide_viewport_preference"
306             android:summary="@string/wide_viewport_summary"
307             android:defaultValue="true" />
308
309         <SwitchPreference
310             android:key="display_webpage_images"
311             android:title="@string/display_webpage_images"
312             android:summary="@string/display_webpage_images_summary"
313             android:defaultValue="true" />
314     </PreferenceCategory>
315 </PreferenceScreen>