Allow specifying any font size. https://redmine.stoutner.com/issues/504
[PrivacyBrowser.git] / app / src / main / res / menu / webview_options_menu.xml
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <!--
4   Copyright © 2015-2019 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 <menu
22     xmlns:android="http://schemas.android.com/apk/res/android"
23     xmlns:app="http://schemas.android.com/apk/res-auto"
24     xmlns:tools="http://schemas.android.com/tools"
25     tools:context=".activities.MainWebViewActivity" >
26
27     <item
28         android:id="@+id/toggle_javascript"
29         android:title="@string/javascript"
30         android:orderInCategory="100"
31         android:icon="@drawable/privacy_mode"
32         app:showAsAction="ifRoom" />
33
34     <item
35         android:id="@+id/add_or_edit_domain"
36         android:title="@string/add_domain_settings"
37         android:orderInCategory="200"
38         app:showAsAction="never" />
39
40     <item
41         android:id="@+id/toggle_first_party_cookies"
42         android:title="@string/first_party_cookies"
43         android:orderInCategory="300"
44         android:checkable="true"
45         android:icon="@drawable/cookies_disabled_light"
46         app:showAsAction="never" />
47
48     <item
49         android:id="@+id/toggle_third_party_cookies"
50         android:title="@string/third_party_cookies"
51         android:orderInCategory="400"
52         android:checkable="true"
53         app:showAsAction="never" />
54
55     <item
56         android:id="@+id/toggle_dom_storage"
57         android:title="@string/dom_storage"
58         android:orderInCategory="500"
59         android:checkable="true"
60         android:icon="@drawable/dom_storage_disabled_light"
61         app:showAsAction="never" />
62
63     <item
64         android:id="@+id/toggle_save_form_data"
65         android:title="@string/form_data"
66         android:orderInCategory="600"
67         android:checkable="true"
68         app:showAsAction="never" />
69
70     <item
71         android:id="@+id/clear_data"
72         android:title="@string/clear_data"
73         android:orderInCategory="700"
74         app:showAsAction="never" >
75
76         <menu>
77             <item
78                 android:id="@+id/clear_cookies"
79                 android:title="@string/clear_cookies"
80                 android:orderInCategory="710"
81                 app:showAsAction="never" />
82
83             <item
84                 android:id="@+id/clear_dom_storage"
85                 android:title="@string/clear_dom_storage"
86                 android:orderInCategory="720"
87                 app:showAsAction="never" />
88
89             <item
90                 android:id="@+id/clear_form_data"
91                 android:title="@string/clear_form_data"
92                 android:orderInCategory="730"
93                 app:showAsAction="never" />
94         </menu>
95     </item>
96
97     <item
98         android:id="@+id/blocklists"
99         android:title="@string/blocklists"
100         android:orderInCategory="800"
101         app:showAsAction="never" >
102
103         <menu>
104             <item
105                 android:id="@+id/easylist"
106                 android:title="@string/easylist"
107                 android:orderInCategory="810"
108                 android:checkable="true"
109                 app:showAsAction="never" />
110
111             <item
112                 android:id="@+id/easyprivacy"
113                 android:title="@string/easyprivacy"
114                 android:orderInCategory="820"
115                 android:checkable="true"
116                 app:showAsAction="never" />
117
118             <item
119                 android:id="@+id/fanboys_annoyance_list"
120                 android:title="@string/options_fanboys_annoyance_list"
121                 android:orderInCategory="830"
122                 android:checkable="true"
123                 app:showAsAction="never" />
124
125             <item
126                 android:id="@+id/fanboys_social_blocking_list"
127                 android:title="@string/options_fanboys_social_blocking_list"
128                 android:orderInCategory="840"
129                 android:checkable="true"
130                 app:showAsAction="never" />
131
132             <item
133                 android:id="@+id/ultralist"
134                 android:title="@string/ultralist"
135                 android:orderInCategory="850"
136                 android:checkable="true"
137                 app:showAsAction="never" />
138
139             <item
140                 android:id="@+id/ultraprivacy"
141                 android:title="@string/ultraprivacy"
142                 android:orderInCategory="860"
143                 android:checkable="true"
144                 app:showAsAction="never" />
145
146             <item
147                 android:id="@+id/block_all_third_party_requests"
148                 android:title="@string/options_block_all_third_party_requests"
149                 android:orderInCategory="870"
150                 android:checkable="true"
151                 app:showAsAction="never" />
152         </menu>
153     </item>
154
155     <item
156         android:id="@+id/page"
157         android:title="@string/page"
158         android:orderInCategory="900"
159         app:showAsAction="never" >
160
161         <menu>
162             <item
163                 android:id="@+id/user_agent"
164                 android:title="@string/options_user_agent"
165                 android:orderInCategory="910"
166                 app:showAsAction="never" >
167
168                 <menu>
169                     <group android:checkableBehavior ="single">
170                         <item
171                             android:id="@+id/user_agent_privacy_browser"
172                             android:title="@string/user_agent_privacy_browser"
173                             android:orderInCategory="911"
174                             app:showAsAction="never" />
175
176                         <item
177                             android:id="@+id/user_agent_webview_default"
178                             android:title="@string/user_agent_webview_default"
179                             android:orderInCategory="912"
180                             app:showAsAction="never" />
181
182                         <item
183                             android:id="@+id/user_agent_firefox_on_android"
184                             android:title="@string/user_agent_firefox_on_android"
185                             android:orderInCategory="913"
186                             app:showAsAction="never" />
187
188                         <item
189                             android:id="@+id/user_agent_chrome_on_android"
190                             android:title="@string/user_agent_chrome_on_android"
191                             android:orderInCategory="914"
192                             app:showAsAction="never" />
193
194                         <item
195                             android:id="@+id/user_agent_safari_on_ios"
196                             android:title="@string/user_agent_safari_on_ios"
197                             android:orderInCategory="915"
198                             app:showAsAction="never" />
199
200                         <item
201                             android:id="@+id/user_agent_firefox_on_linux"
202                             android:title="@string/user_agent_firefox_on_linux"
203                             android:orderInCategory="916"
204                             app:showAsAction="never" />
205
206                         <item
207                             android:id="@+id/user_agent_chromium_on_linux"
208                             android:title="@string/user_agent_chromium_on_linux"
209                             android:orderInCategory="917"
210                             app:showAsAction="never" />
211
212                         <item
213                             android:id="@+id/user_agent_firefox_on_windows"
214                             android:title="@string/user_agent_firefox_on_windows"
215                             android:orderInCategory="918"
216                             app:showAsAction="never" />
217
218                         <item
219                             android:id="@+id/user_agent_chrome_on_windows"
220                             android:title="@string/user_agent_chrome_on_windows"
221                             android:orderInCategory="919"
222                             app:showAsAction="never" />
223
224                         <item
225                             android:id="@+id/user_agent_edge_on_windows"
226                             android:title="@string/user_agent_edge_on_windows"
227                             android:orderInCategory="920"
228                             app:showAsAction="never" />
229
230                         <item
231                             android:id="@+id/user_agent_internet_explorer_on_windows"
232                             android:title="@string/user_agent_internet_explorer_on_windows"
233                             android:orderInCategory="921"
234                             app:showAsAction="never" />
235
236                         <item
237                             android:id="@+id/user_agent_safari_on_macos"
238                             android:title="@string/user_agent_safari_on_macos"
239                             android:orderInCategory="922"
240                             app:showAsAction="never" />
241
242                         <item
243                             android:id="@+id/user_agent_custom"
244                             android:title="@string/user_agent_custom"
245                             android:orderInCategory="923"
246                             app:showAsAction="never" />
247                     </group>
248                 </menu>
249             </item>
250
251             <item
252                 android:id="@+id/swipe_to_refresh"
253                 android:title="@string/swipe_to_refresh_options_menu"
254                 android:orderInCategory="930"
255                 android:checkable="true"
256                 app:showAsAction="never" />
257
258             <item
259                 android:id="@+id/wide_viewport"
260                 android:title="@string/wide_viewport"
261                 android:orderInCategory="940"
262                 android:checkable="true"
263                 app:showAsAction="never" />
264
265             <item
266                 android:id="@+id/display_images"
267                 android:title="@string/display_images"
268                 android:orderInCategory="950"
269                 android:checkable="true"
270                 app:showAsAction="never" />
271
272             <item
273                 android:id="@+id/night_mode"
274                 android:title="@string/options_night_mode"
275                 android:orderInCategory="960"
276                 android:checkable="true"
277                 app:showAsAction="never" />
278
279             <item
280                 android:id="@+id/font_size"
281                 android:title="@string/font_size"
282                 android:orderInCategory="970"
283                 app:showAsAction="never" >
284             </item>
285
286             <item
287                 android:id="@+id/find_on_page"
288                 android:title="@string/find_on_page"
289                 android:orderInCategory="980"
290                 app:showAsAction="never|collapseActionView" />
291
292             <item
293                 android:id="@+id/print"
294                 android:title="@string/print"
295                 android:orderInCategory="990"
296                 app:showAsAction="never" />
297
298             <item
299                 android:id="@+id/save_as_image"
300                 android:title="@string/save_as_image"
301                 android:orderInCategory="1000"
302                 app:showAsAction="never" />
303
304             <item
305                 android:id="@+id/add_to_homescreen"
306                 android:title="@string/add_to_home_screen"
307                 android:orderInCategory="1010"
308                 app:showAsAction="never" />
309
310             <item
311                 android:id="@+id/view_source"
312                 android:title="@string/view_source"
313                 android:orderInCategory="1020"
314                 app:showAsAction="never" />
315         </menu>
316     </item>
317
318     <item
319         android:id="@+id/share"
320         android:title="@string/share"
321         android:orderInCategory="1100"
322         app:showAsAction="never" >
323
324         <menu>
325             <item
326                 android:id="@+id/share_url"
327                 android:title="@string/share_url"
328                 android:orderInCategory="1110"
329                 app:showAsAction="never" />
330
331             <item
332                 android:id="@+id/open_with_app"
333                 android:title="@string/open_with_app"
334                 android:orderInCategory="1120"
335                 app:showAsAction="never" />
336
337             <item
338                 android:id="@+id/open_with_browser"
339                 android:title="@string/open_with_browser"
340                 android:orderInCategory="1130"
341                 app:showAsAction="never" />
342         </menu>
343     </item>
344
345     <item
346         android:id="@+id/proxy_through_orbot"
347         android:title="@string/proxy_through_orbot"
348         android:orderInCategory="1200"
349         android:checkable="true"
350         app:showAsAction="never" />
351
352     <item
353         android:id="@+id/refresh"
354         android:title="@string/refresh"
355         android:orderInCategory="1300"
356         app:showAsAction="never" />
357
358     <item
359         android:id="@+id/ad_consent"
360         android:title="@string/ad_consent"
361         android:orderInCategory="1400"
362         app:showAsAction="never" />
363 </menu>