tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

customization_preferences.xml (5497B)


      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
      6    xmlns:app="http://schemas.android.com/apk/res-auto"
      7    android:key="@string/pref_key_customization_preference_screen" >
      8    <androidx.preference.PreferenceCategory
      9        android:layout="@layout/preference_cat_style"
     10        android:title="@string/preferences_app_icon"
     11        android:key="@string/pref_key_customization_category_app_icon"
     12        app:iconSpaceReserved="false">
     13        <org.mozilla.fenix.iconpicker.ui.AppIconPreference
     14            android:key="@string/pref_key_app_icon" />
     15    </androidx.preference.PreferenceCategory>
     16 
     17    <androidx.preference.PreferenceCategory
     18        android:layout="@layout/preference_cat_style"
     19        android:title="@string/preferences_theme"
     20        app:iconSpaceReserved="false">
     21        <org.mozilla.fenix.settings.RadioButtonPreference
     22            android:defaultValue="@bool/underAPI28"
     23            android:key="@string/pref_key_light_theme"
     24            android:title="@string/preference_light_theme" />
     25 
     26        <org.mozilla.fenix.settings.RadioButtonPreference
     27            android:defaultValue="false"
     28            android:key="@string/pref_key_dark_theme"
     29            android:title="@string/preference_dark_theme" />
     30 
     31        <org.mozilla.fenix.settings.RadioButtonPreference
     32            android:defaultValue="false"
     33            android:key="@string/pref_key_auto_battery_theme"
     34            android:title="@string/preference_auto_battery_theme"
     35            app:isPreferenceVisible="@bool/underAPI28" />
     36 
     37        <org.mozilla.fenix.settings.RadioButtonPreference
     38            android:defaultValue="@bool/API28"
     39            android:key="@string/pref_key_follow_device_theme"
     40            android:title="@string/preference_follow_device_theme"
     41            app:isPreferenceVisible="@bool/API28" />
     42    </androidx.preference.PreferenceCategory>
     43 
     44    <androidx.preference.PreferenceCategory
     45        android:layout="@layout/preference_cat_style"
     46        android:title="@string/preferences_toolbar_2"
     47        android:key="@string/pref_key_customization_category_toolbar"
     48        app:iconSpaceReserved="false">
     49        <org.mozilla.fenix.settings.RadioButtonPreference
     50            android:key="@string/pref_key_toolbar_top"
     51            android:title="@string/preference_top_toolbar" />
     52        <org.mozilla.fenix.settings.RadioButtonPreference
     53            android:key="@string/pref_key_toolbar_bottom"
     54            android:title="@string/preference_bottom_toolbar" />
     55        <androidx.preference.Preference
     56            android:key="@string/pref_key_tab_strip_message"
     57            android:title=""
     58            android:summary="@string/preference_toolbar_pref_disabled_explanation"
     59            android:enabled="false"
     60            android:selectable="false" />
     61    </androidx.preference.PreferenceCategory>
     62 
     63    <androidx.preference.PreferenceCategory
     64        android:layout="@layout/preference_cat_style"
     65        android:title="@string/preferences_tab_strip"
     66        app:iconSpaceReserved="false">
     67        <androidx.preference.SwitchPreference
     68            android:key="@string/pref_key_tab_strip_show"
     69            android:title="@string/preference_tab_strip_show" />
     70    </androidx.preference.PreferenceCategory>
     71 
     72    <androidx.preference.PreferenceCategory
     73        android:layout="@layout/preference_cat_style"
     74        android:title="@string/preferences_toolbar_layout"
     75        android:key="@string/pref_key_customization_category_toolbar_layout"
     76        android:visible="false"
     77        app:iconSpaceReserved="false">
     78        <org.mozilla.fenix.settings.ToggleRadioButtonPreference
     79            android:key="@string/pref_key_toolbar_expanded"
     80            app:sharedPreferenceKey="pref_key_toolbar_expanded"
     81            app:falseOptionTitle="@string/preference_simple_toolbar"
     82            app:trueOptionTitle="@string/preference_expanded_toolbar" />
     83    </androidx.preference.PreferenceCategory>
     84 
     85    <!-- Toolbar shortcut picker -->
     86    <androidx.preference.PreferenceCategory
     87        android:key="@string/pref_key_customization_category_toolbar_shortcut"
     88        android:layout="@layout/preference_cat_style"
     89        android:title="@string/preferences_toolbar_shortcut"
     90        android:visible="false"
     91        app:iconSpaceReserved="false" />
     92 
     93    <androidx.preference.PreferenceCategory
     94        android:layout="@layout/preference_cat_style"
     95        android:title="@string/preferences_gestures"
     96        app:iconSpaceReserved="false">
     97        <androidx.preference.SwitchPreference
     98            android:key="@string/pref_key_website_pull_to_refresh"
     99            android:title="@string/preference_gestures_website_pull_to_refresh"
    100            app:isPreferenceVisible="false" />
    101        <androidx.preference.SwitchPreference
    102            android:key="@string/pref_key_swipe_toolbar_switch_tabs"
    103            android:title="@string/preference_gestures_swipe_toolbar_switch_tabs_2" />
    104        <androidx.preference.SwitchPreference
    105            android:key="@string/pref_key_swipe_toolbar_show_tabs"
    106            android:title="@string/preference_gestures_swipe_toolbar_show_tabs"
    107            app:isPreferenceVisible="false" />
    108    </androidx.preference.PreferenceCategory>
    109 </androidx.preference.PreferenceScreen>