2b0c713d64ecfd4a46dd6b5c9bb1f3432f6748bc
[PrivacyBrowser.git] / app / src / main / res / xml / preferences.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2016-2017 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_enabled"
28             android:title="@string/javascript_preference"
29             android:summary="@string/javascript_preference_summary"
30             android:defaultValue="false" />
31
32         <SwitchPreference
33             android:key="first_party_cookies_enabled"
34             android:title="@string/first_party_cookies_preference"
35             android:summary="@string/first_party_cookies_preference_summary"
36             android:defaultValue="false" />
37
38         <SwitchPreference
39             android:key="third_party_cookies_enabled"
40             android:title="@string/third_party_cookies_preference"
41             android:summary="@string/third_party_cookies_summary"
42             android:defaultValue="false" />
43
44         <SwitchPreference
45             android:key="dom_storage_enabled"
46             android:title="@string/dom_storage_preference"
47             android:summary="@string/dom_storage_preference_summary"
48             android:defaultValue="false" />
49
50         <SwitchPreference
51             android:key="save_form_data_enabled"
52             android:title="@string/save_form_data_preference"
53             android:summary="@string/save_form_data_preference_summary"
54             android:defaultValue="false" />
55
56         <ListPreference
57             android:key="user_agent"
58             android:title="@string/user_agent"
59             android:entries="@array/user_agent_entries"
60             android:entryValues="@array/user_agent_entry_values"
61             android:defaultValue="PrivacyBrowser/1.0"
62             android:icon="?attr/userAgentIcon" />
63
64         <!-- android:inputType="textVisiblePassword" sets the keyboard to have a dedicated number row.-->
65         <EditTextPreference
66             android:key="custom_user_agent"
67             android:title="@string/custom_user_agent"
68             android:defaultValue="PrivacyBrowser/1.0"
69             android:inputType="textVisiblePassword|textMultiLine" />
70
71         <SwitchPreference
72             android:key="block_ads"
73             android:title="@string/block_ads"
74             android:summary="@string/block_ads_summary"
75             android:defaultValue="true" />
76
77         <SwitchPreference
78             android:key="incognito_mode"
79             android:title="@string/incognito_mode"
80             android:summary="@string/incognito_mode_summary"
81             android:defaultValue="false" />
82
83         <SwitchPreference
84             android:key="do_not_track"
85             android:title="@string/do_not_track"
86             android:summary="@string/do_not_track_summary"
87             android:defaultValue="false" />
88     </PreferenceCategory>
89
90     <PreferenceCategory
91         android:key="tor"
92         android:title="@string/tor" >
93
94         <SwitchPreference
95             android:key="proxy_through_orbot"
96             android:title="@string/proxy_through_orbot"
97             android:summary="@string/proxy_through_orbot_summary"
98             android:defaultValue="false" />
99
100         <EditTextPreference
101             android:key="tor_homepage"
102             android:title="@string/tor_homepage"
103             android:defaultValue="https://3g2upl4pq6kufc4m.onion"
104             android:inputType="textUri" />
105
106         <ListPreference
107             android:key="tor_search"
108             android:title="@string/tor_search"
109             android:entries="@array/tor_search_entries"
110             android:entryValues="@array/tor_search_entry_values"
111             android:defaultValue="https://3g2upl4pq6kufc4m.onion/html/?q=" />
112
113         <EditTextPreference
114             android:key="tor_search_custom_url"
115             android:title="@string/tor_search_custom_url"
116             android:defaultValue=""
117             android:inputType="textUri" />
118     </PreferenceCategory>
119
120     <PreferenceCategory
121         android:key="search_category"
122         android:title="@string/search" >
123
124         <ListPreference
125             android:key="search"
126             android:title="@string/search"
127             android:entries="@array/search_entries"
128             android:entryValues="@array/search_entry_values"
129             android:defaultValue="https://duckduckgo.com/html/?q="
130             android:icon="?attr/searchIcon" />
131
132         <EditTextPreference
133             android:key="search_custom_url"
134             android:title="@string/search_custom_url"
135             android:defaultValue=""
136             android:inputType="textUri" />
137     </PreferenceCategory>
138
139     <PreferenceCategory
140         android:key="full_screen"
141         android:title="@string/full_screen" >
142
143         <SwitchPreference
144             android:key="full_screen_browsing_mode"
145             android:title="@string/full_screen_browsing_mode"
146             android:summary="@string/full_screen_browsing_mode_summary"
147             android:defaultValue="false" />
148
149         <SwitchPreference
150             android:key="hide_system_bars"
151             android:title="@string/hide_system_bars"
152             android:summary="@string/hide_system_bars_summary"
153             android:defaultValue="false" />
154
155         <SwitchPreference
156             android:key="translucent_navigation_bar"
157             android:title="@string/translucent_navigation_bar"
158             android:summary="@string/translucent_navigation_bar_summary"
159             android:defaultValue="true" />
160     </PreferenceCategory>
161
162     <PreferenceCategory
163         android:key="clean_and_exit"
164         android:title="@string/clear_and_exit" >
165
166         <SwitchPreference
167             android:key="clear_everything"
168             android:title="@string/clear_everything"
169             android:summary="@string/clear_everything_summary"
170             android:defaultValue="true" />
171
172         <SwitchPreference
173             android:key="clear_cookies"
174             android:title="@string/clear_cookies_preference"
175             android:summary="@string/clear_cookies_summary"
176             android:defaultValue="true" />
177
178         <SwitchPreference
179             android:key="clear_dom_storage"
180             android:title="@string/clear_dom_storage_preference"
181             android:summary="@string/clear_dom_storage_summary"
182             android:defaultValue="true" />
183
184         <SwitchPreference
185             android:key="clear_form_data"
186             android:title="@string/clear_form_data_preference"
187             android:summary="@string/clear_form_data_summary"
188             android:defaultValue="true" />
189
190         <SwitchPreference
191             android:key="clear_cache"
192             android:title="@string/clear_cache"
193             android:summary="@string/clear_cache_summary"
194             android:defaultValue="true" />
195     </PreferenceCategory>
196
197     <PreferenceCategory
198         android:key="general"
199         android:title="@string/general" >
200
201         <EditTextPreference
202             android:key="homepage"
203             android:title="@string/homepage"
204             android:defaultValue="https://start.duckduckgo.com"
205             android:inputType="textUri"
206             android:icon="?attr/homepageIcon" />
207
208         <ListPreference
209             android:key="default_font_size"
210             android:title="@string/default_font_size"
211             android:entries="@array/default_font_size_entries"
212             android:entryValues="@array/default_font_size_entry_values"
213             android:defaultValue="100"
214             android:icon="?attr/fontSizeIcon" />
215
216         <SwitchPreference
217             android:key="swipe_to_refresh"
218             android:title="@string/swipe_to_refresh_enabled"
219             android:summary="@string/swipe_to_refresh_enabled_summary"
220             android:defaultValue="false" />
221
222         <SwitchPreference
223             android:key="display_additional_app_bar_icons"
224             android:title="@string/display_additional_app_bar_icons"
225             android:summary="@string/display_additional_app_bar_icons_summary"
226             android:defaultValue="false" />
227
228         <SwitchPreference
229             android:key="dark_theme"
230             android:title="@string/dark_theme"
231             android:summary="@string/dark_theme_summary"
232             android:defaultValue="false" />
233
234         <SwitchPreference
235             android:key="display_webpage_images"
236             android:title="@string/display_webpage_images"
237             android:summary="@string/display_webpage_images_summary"
238             android:defaultValue="true" />
239     </PreferenceCategory>
240 </PreferenceScreen>