Move Refresh to the top of the options menu. https://redmine.stoutner.com/issues/526
[PrivacyBrowser.git] / app / src / main / res / menu / webview_options_menu.xml
index 28e0cfe3917e6caf066f6d780f33cbd27d4d37ba..df2a6f207cb265caa4d1ab59c5c65425c13b09bd 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 
 <!--
-  Copyright © 2015-2018 Soren Stoutner <soren@stoutner.com>.
+  Copyright © 2015-2020 Soren Stoutner <soren@stoutner.com>.
 
   This file is part of Privacy Browser <https://www.stoutner.com/privacy-browser>.
 
         android:id="@+id/toggle_javascript"
         android:title="@string/javascript"
         android:orderInCategory="100"
+        android:icon="@drawable/privacy_mode"
         app:showAsAction="ifRoom" />
 
     <item
-        android:id="@+id/add_or_edit_domain"
-        android:title="@string/add_domain_settings"
+        android:id="@+id/refresh"
+        android:title="@string/refresh"
         android:orderInCategory="200"
         app:showAsAction="never" />
 
@@ -41,6 +42,7 @@
         android:title="@string/first_party_cookies"
         android:orderInCategory="300"
         android:checkable="true"
+        android:icon="@drawable/cookies_disabled_light"
         app:showAsAction="never" />
 
     <item
@@ -55,6 +57,7 @@
         android:title="@string/dom_storage"
         android:orderInCategory="500"
         android:checkable="true"
+        android:icon="@drawable/dom_storage_disabled_light"
         app:showAsAction="never" />
 
     <item
                 android:checkable="true"
                 app:showAsAction="never" />
 
+            <item
+                android:id="@+id/ultralist"
+                android:title="@string/ultralist"
+                android:orderInCategory="850"
+                android:checkable="true"
+                app:showAsAction="never" />
+
+            <item
+                android:id="@+id/ultraprivacy"
+                android:title="@string/ultraprivacy"
+                android:orderInCategory="860"
+                android:checkable="true"
+                app:showAsAction="never" />
+
             <item
                 android:id="@+id/block_all_third_party_requests"
                 android:title="@string/options_block_all_third_party_requests"
-                android:orderInCategory="850"
+                android:orderInCategory="870"
                 android:checkable="true"
                 app:showAsAction="never" />
         </menu>
     </item>
 
     <item
-        android:id="@+id/layout"
-        android:title="@string/layout"
+        android:id="@+id/proxy"
+        android:title="@string/proxy"
         android:orderInCategory="900"
         app:showAsAction="never" >
 
+        <menu>
+            <group android:checkableBehavior="single" >
+                <item
+                    android:id="@+id/proxy_none"
+                    android:title="@string/proxy_none"
+                    android:orderInCategory="910"
+                    app:showAsAction="never" />
+
+                <item
+                    android:id="@+id/proxy_tor"
+                    android:title="@string/proxy_tor"
+                    android:orderInCategory="920"
+                    app:showAsAction="never" />
+
+                <item
+                    android:id="@+id/proxy_i2p"
+                    android:title="@string/proxy_i2p"
+                    android:orderInCategory="930"
+                    app:showAsAction="never" />
+
+                <item
+                    android:id="@+id/proxy_custom"
+                    android:title="@string/proxy_custom"
+                    android:orderInCategory="940"
+                    app:showAsAction="never" />
+            </group>
+        </menu>
+    </item>
+
+    <item
+        android:id="@+id/page"
+        android:title="@string/page"
+        android:orderInCategory="1000"
+        app:showAsAction="never" >
+
         <menu>
             <item
-                android:id="@+id/font_size"
-                android:title="@string/font_size"
-                android:orderInCategory="910"
+                android:id="@+id/user_agent"
+                android:title="@string/options_user_agent"
+                android:orderInCategory="1010"
                 app:showAsAction="never" >
 
                 <menu>
                     <group android:checkableBehavior="single">
                         <item
-                            android:id="@+id/font_size_twenty_five_percent"
-                            android:title="@string/twenty_five_percent"
-                            android:orderInCategory="911"
+                            android:id="@+id/user_agent_privacy_browser"
+                            android:title="@string/user_agent_privacy_browser"
+                            android:orderInCategory="1011"
                             app:showAsAction="never" />
 
                         <item
-                            android:id="@+id/font_size_fifty_percent"
-                            android:title="@string/fifty_percent"
-                            android:orderInCategory="912"
+                            android:id="@+id/user_agent_webview_default"
+                            android:title="@string/user_agent_webview_default"
+                            android:orderInCategory="1012"
                             app:showAsAction="never" />
 
                         <item
-                            android:id="@+id/font_size_seventy_five_percent"
-                            android:title="@string/seventy_five_percent"
-                            android:orderInCategory="913"
+                            android:id="@+id/user_agent_firefox_on_android"
+                            android:title="@string/user_agent_firefox_on_android"
+                            android:orderInCategory="1013"
                             app:showAsAction="never" />
 
                         <item
-                            android:id="@+id/font_size_one_hundred_percent"
-                            android:title="@string/one_hundred_percent"
-                            android:orderInCategory="914"
+                            android:id="@+id/user_agent_chrome_on_android"
+                            android:title="@string/user_agent_chrome_on_android"
+                            android:orderInCategory="1014"
                             app:showAsAction="never" />
 
                         <item
-                            android:id="@+id/font_size_one_hundred_twenty_five_percent"
-                            android:title="@string/one_hundred_twenty_five_percent"
-                            android:orderInCategory="915"
+                            android:id="@+id/user_agent_safari_on_ios"
+                            android:title="@string/user_agent_safari_on_ios"
+                            android:orderInCategory="1015"
                             app:showAsAction="never" />
 
                         <item
-                            android:id="@+id/font_size_one_hundred_fifty_percent"
-                            android:title="@string/one_hundred_fifty_percent"
-                            android:orderInCategory="916"
+                            android:id="@+id/user_agent_firefox_on_linux"
+                            android:title="@string/user_agent_firefox_on_linux"
+                            android:orderInCategory="1016"
                             app:showAsAction="never" />
 
                         <item
-                            android:id="@+id/font_size_one_hundred_seventy_five_percent"
-                            android:title="@string/one_hundred_seventy_five_percent"
-                            android:orderInCategory="917"
+                            android:id="@+id/user_agent_chromium_on_linux"
+                            android:title="@string/user_agent_chromium_on_linux"
+                            android:orderInCategory="1017"
                             app:showAsAction="never" />
 
                         <item
-                            android:id="@+id/font_size_two_hundred_percent"
-                            android:title="@string/two_hundred_percent"
-                            android:orderInCategory="918"
+                            android:id="@+id/user_agent_firefox_on_windows"
+                            android:title="@string/user_agent_firefox_on_windows"
+                            android:orderInCategory="1018"
+                            app:showAsAction="never" />
+
+                        <item
+                            android:id="@+id/user_agent_chrome_on_windows"
+                            android:title="@string/user_agent_chrome_on_windows"
+                            android:orderInCategory="1019"
+                            app:showAsAction="never" />
+
+                        <item
+                            android:id="@+id/user_agent_edge_on_windows"
+                            android:title="@string/user_agent_edge_on_windows"
+                            android:orderInCategory="1020"
+                            app:showAsAction="never" />
+
+                        <item
+                            android:id="@+id/user_agent_internet_explorer_on_windows"
+                            android:title="@string/user_agent_internet_explorer_on_windows"
+                            android:orderInCategory="1021"
+                            app:showAsAction="never" />
+
+                        <item
+                            android:id="@+id/user_agent_safari_on_macos"
+                            android:title="@string/user_agent_safari_on_macos"
+                            android:orderInCategory="1022"
+                            app:showAsAction="never" />
+
+                        <item
+                            android:id="@+id/user_agent_custom"
+                            android:title="@string/user_agent_custom"
+                            android:orderInCategory="1023"
                             app:showAsAction="never" />
                     </group>
                 </menu>
             <item
                 android:id="@+id/swipe_to_refresh"
                 android:title="@string/swipe_to_refresh_options_menu"
-                android:orderInCategory="920"
+                android:orderInCategory="1030"
+                android:checkable="true"
+                app:showAsAction="never" />
+
+            <item
+                android:id="@+id/wide_viewport"
+                android:title="@string/wide_viewport"
+                android:orderInCategory="1040"
                 android:checkable="true"
                 app:showAsAction="never" />
 
             <item
                 android:id="@+id/display_images"
                 android:title="@string/display_images"
-                android:orderInCategory="930"
+                android:orderInCategory="1050"
+                android:checkable="true"
+                app:showAsAction="never" />
+
+            <item
+                android:id="@+id/night_mode"
+                android:title="@string/options_night_mode"
+                android:orderInCategory="1060"
                 android:checkable="true"
                 app:showAsAction="never" />
 
+            <item
+                android:id="@+id/font_size"
+                android:title="@string/font_size"
+                android:orderInCategory="1070"
+                app:showAsAction="never" />
+
+            <item
+                android:id="@+id/find_on_page"
+                android:title="@string/find_on_page"
+                android:orderInCategory="1080"
+                app:showAsAction="never|collapseActionView" />
+
+            <item
+                android:id="@+id/print"
+                android:title="@string/print"
+                android:orderInCategory="1090"
+                app:showAsAction="never" />
+
+            <item
+                android:id="@+id/save"
+                android:title="@string/save"
+                android:orderInCategory="1100"
+                app:showAsAction="never" >
+
+                <menu>
+                    <item
+                        android:id="@+id/save_url"
+                        android:title="@string/save_url"
+                        android:orderInCategory="1101"
+                        app:showAsAction="never" />
+                    <item
+                        android:id="@+id/save_as_archive"
+                        android:title="@string/save_as_archive"
+                        android:orderInCategory="1102"
+                        app:showAsAction="never" />
+
+                    <item
+                        android:id="@+id/save_as_image"
+                        android:title="@string/save_as_image"
+                        android:orderInCategory="1103"
+                        app:showAsAction="never" />
+                </menu>
+            </item>
+
+            <item
+                android:id="@+id/add_to_homescreen"
+                android:title="@string/add_to_home_screen"
+                android:orderInCategory="1110"
+                app:showAsAction="never" />
+
             <item
                 android:id="@+id/view_source"
                 android:title="@string/view_source"
-                android:orderInCategory="940"
+                android:orderInCategory="1120"
                 app:showAsAction="never" />
         </menu>
     </item>
     <item
         android:id="@+id/share"
         android:title="@string/share"
-        android:orderInCategory="1000"
-        app:showAsAction="never" />
-
-    <item
-        android:id="@+id/find_on_page"
-        android:title="@string/find_on_page"
-        android:orderInCategory="1100"
-        app:showAsAction="never|collapseActionView" />
-    <item
-        android:id="@+id/print"
-        android:title="@string/print"
         android:orderInCategory="1200"
-        app:showAsAction="never" />
+        app:showAsAction="never" >
 
-    <item
-        android:id="@+id/add_to_homescreen"
-        android:title="@string/add_to_home_screen"
-        android:orderInCategory="1300"
-        app:showAsAction="never" />
+        <menu>
+            <item
+                android:id="@+id/share_url"
+                android:title="@string/share_url"
+                android:orderInCategory="1210"
+                app:showAsAction="never" />
+
+            <item
+                android:id="@+id/open_with_app"
+                android:title="@string/open_with_app"
+                android:orderInCategory="1220"
+                app:showAsAction="never" />
+
+            <item
+                android:id="@+id/open_with_browser"
+                android:title="@string/open_with_browser"
+                android:orderInCategory="1230"
+                app:showAsAction="never" />
+        </menu>
+    </item>
 
     <item
-        android:id="@+id/refresh"
-        android:title="@string/refresh"
-        android:orderInCategory="1400"
+        android:id="@+id/add_or_edit_domain"
+        android:title="@string/add_domain_settings"
+        android:orderInCategory="1300"
         app:showAsAction="never" />
 
     <item
         android:id="@+id/ad_consent"
         android:title="@string/ad_consent"
-        android:orderInCategory="1500"
+        android:orderInCategory="1400"
         app:showAsAction="never" />
 </menu>
\ No newline at end of file