general_settings.xml (2005B)
1 <?xml version="1.0" encoding="utf-8"?><!-- This Source Code Form is subject to the terms of the Mozilla Public 2 - License, v. 2.0. If a copy of the MPL was not distributed with this 3 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 4 5 <androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:app="http://schemas.android.com/apk/res-auto"> 7 8 <androidx.preference.PreferenceCategory 9 android:layout="@layout/focus_preference_no_icon" 10 android:title="@string/preferences_theme" 11 app:iconSpaceReserved="false"> 12 <org.mozilla.focus.settings.RadioButtonPreference 13 android:key="@string/pref_key_light_theme" 14 android:title="@string/preference_light_theme" 15 android:layout="@layout/preference_radio_button" /> 16 17 <org.mozilla.focus.settings.RadioButtonPreference 18 android:key="@string/pref_key_dark_theme" 19 android:title="@string/preference_dark_theme" 20 android:layout="@layout/preference_radio_button" /> 21 22 23 <org.mozilla.focus.settings.RadioButtonPreference 24 android:defaultValue="true" 25 android:key="@string/pref_key_default_theme" 26 android:title="@string/preference_follow_device_theme" 27 android:layout="@layout/preference_radio_button" /> 28 </androidx.preference.PreferenceCategory> 29 30 <!-- Empty default: we use an empty string to indicate "system default" language being selected --> 31 <androidx.preference.Preference 32 android:key="@string/pref_key_locale" 33 android:layout="@layout/focus_preference" 34 android:title="@string/preference_language" 35 app:iconSpaceReserved="false" /> 36 37 <org.mozilla.focus.widget.DefaultBrowserPreference 38 android:key="@string/pref_key_default_browser" 39 android:layout="@layout/focus_preference_no_icon" 40 android:title="@string/preference_default_browser2" /> 41 42 </androidx.preference.PreferenceScreen>