preferences_interface.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
  3    xmlns:app="http://schemas.android.com/apk/res-auto">
  4    <PreferenceCategory android:title="Theme">
  5        <SwitchPreferenceCompat
  6            android:icon="@drawable/ic_palette_24dp"
  7            android:key="dynamic_colors"
  8            android:summary="@string/pref_dynamic_colors_summary"
  9            android:title="@string/pref_dynamic_colors" />
 10        <ListPreference
 11            android:defaultValue="@string/theme"
 12            android:entries="@array/themes"
 13            android:entryValues="@array/themes_values"
 14            android:icon="@drawable/ic_dark_mode_24dp"
 15            android:key="theme"
 16            android:title="Theme"
 17            app:useSimpleSummaryProvider="true" />
 18        <SwitchPreferenceCompat
 19            android:defaultValue="true"
 20            android:icon="@drawable/ic_dark_mode_24dp"
 21            android:key="custom_theme_automatic"
 22            android:title="Follow System Dark Mode" />
 23        <SwitchPreferenceCompat
 24            android:defaultValue="false"
 25            android:icon="@drawable/ic_dark_mode_24dp"
 26            android:key="custom_theme_dark"
 27            android:title="Custom Theme is Dark" />
 28        <SwitchPreferenceCompat
 29            android:defaultValue="false"
 30            android:icon="@drawable/ic_palette_24dp"
 31            android:key="custom_theme_color_match"
 32            android:title="Color Match"
 33            android:summary="Stay true to my color inputs" />
 34        <com.rarepebble.colorpicker.ColorPreference
 35            android:icon="@drawable/ic_palette_24dp"
 36            android:key="custom_theme_primary"
 37            android:title="Custom Primary Color"
 38            android:defaultValue="@color/md_theme_light_primary"
 39            app:colorpicker_showAlpha="false" />
 40        <com.rarepebble.colorpicker.ColorPreference
 41            android:icon="@drawable/ic_palette_24dp"
 42            android:key="custom_theme_primary_dark"
 43            android:title="Custom Secondary Color"
 44            android:defaultValue="@color/md_theme_light_secondary"
 45            app:colorpicker_showAlpha="false" />
 46        <com.rarepebble.colorpicker.ColorPreference
 47            android:icon="@drawable/ic_palette_24dp"
 48            android:key="custom_theme_accent"
 49            android:title="Custom Tertiary Color"
 50            android:defaultValue="@color/md_theme_light_tertiary"
 51            app:colorpicker_showAlpha="false" />
 52        <com.rarepebble.colorpicker.ColorPreference
 53            android:icon="@drawable/ic_palette_24dp"
 54            android:key="custom_theme_background_primary"
 55            android:title="Custom Background Color"
 56            android:defaultValue="@color/md_theme_light_surface"
 57            app:colorpicker_showAlpha="false" />
 58        <com.rarepebble.colorpicker.ColorPreference
 59            android:icon="@drawable/ic_palette_24dp"
 60            android:key="custom_dark_theme_primary"
 61            android:title="Custom Primary Color"
 62            android:defaultValue="@color/md_theme_dark_primary"
 63            app:colorpicker_showAlpha="false" />
 64        <com.rarepebble.colorpicker.ColorPreference
 65            android:icon="@drawable/ic_palette_24dp"
 66            android:key="custom_dark_theme_primary_dark"
 67            android:title="Custom Secondary Color"
 68            android:defaultValue="@color/md_theme_dark_secondary"
 69            app:colorpicker_showAlpha="false" />
 70        <com.rarepebble.colorpicker.ColorPreference
 71            android:icon="@drawable/ic_palette_24dp"
 72            android:key="custom_dark_theme_accent"
 73            android:title="Custom Tertiary Color"
 74            android:defaultValue="@color/md_theme_dark_tertiary"
 75            app:colorpicker_showAlpha="false" />
 76        <com.rarepebble.colorpicker.ColorPreference
 77            android:icon="@drawable/ic_palette_24dp"
 78            android:key="custom_dark_theme_background_primary"
 79            android:title="Custom Background Color"
 80            android:defaultValue="@color/md_theme_dark_surface"
 81            app:colorpicker_showAlpha="false" />
 82    </PreferenceCategory>>
 83    <PreferenceCategory android:title="@string/appearance">
 84        <SwitchPreferenceCompat
 85            android:defaultValue="@bool/use_green_background"
 86            android:icon="@drawable/ic_forum_24dp"
 87            android:key="use_green_background"
 88            android:summary="@string/pref_use_colorful_bubbles_summary"
 89            android:title="@string/pref_use_colorful_bubbles" />
 90        <SwitchPreferenceCompat
 91            android:defaultValue="@bool/large_font"
 92            android:icon="@drawable/ic_format_size_24dp"
 93            android:key="large_font"
 94            android:summary="@string/pref_large_font_summary"
 95            android:title="@string/pref_large_font" />
 96        <SwitchPreferenceCompat
 97            android:defaultValue="@bool/show_dynamic_tags"
 98            android:icon="@drawable/ic_label_24dp"
 99            android:key="show_dynamic_tags"
100            android:summary="@string/pref_show_dynamic_tags_summary"
101            android:title="@string/pref_show_dynamic_tags" />
102    </PreferenceCategory>
103    <PreferenceCategory android:title="@string/pref_category_operating_system">
104        <SwitchPreferenceCompat
105            android:defaultValue="@bool/allow_screenshots"
106            android:icon="@drawable/ic_screenshot_24dp"
107            android:key="allow_screenshots"
108            android:summary="@string/pref_allow_screenshots_summary"
109            android:title="@string/pref_allow_screenshots" />
110    </PreferenceCategory>
111    <PreferenceCategory android:title="@string/pref_input_options">
112        <ListPreference
113            android:defaultValue="@string/quick_action"
114            android:dialogTitle="@string/choose_quick_action"
115            android:entries="@array/quick_actions"
116            android:entryValues="@array/quick_action_values"
117            android:icon="@drawable/ic_send_time_extension_24dp"
118            android:key="quick_action"
119            android:summary="@string/pref_quick_action_summary"
120            android:title="@string/pref_quick_action" />
121        <SwitchPreferenceCompat
122            android:defaultValue="@bool/scroll_to_bottom"
123            android:icon="@drawable/ic_vertical_align_bottom_24dp"
124            android:key="scroll_to_bottom"
125            android:summary="@string/pref_scroll_to_bottom_summary"
126            android:title="@string/pref_scroll_to_bottom" />
127        <SwitchPreferenceCompat
128            android:defaultValue="@bool/start_searching"
129            android:icon="@drawable/ic_search_24dp"
130            android:key="start_searching"
131            android:summary="@string/pref_start_search_summary"
132            android:title="@string/pref_start_search" />
133        <SwitchPreferenceCompat
134            android:icon="@drawable/ic_replay_24dp"
135            android:defaultValue="@bool/follow_thread_in_channel"
136            android:key="follow_thread_in_channel"
137            android:summary="@string/pref_follow_thread_in_channel_summary"
138            android:title="@string/pref_follow_thread_in_channel" />
139        <SwitchPreferenceCompat
140            android:icon="@drawable/ic_mood_24dp"
141            android:defaultValue="@bool/message_autocomplete"
142            android:key="message_autocomplete"
143            android:summary="@string/pref_message_autocomplete_summary"
144            android:title="@string/pref_message_autocomplete" />
145        <SwitchPreferenceCompat
146            android:icon="@drawable/ic_format_size_24dp"
147            android:defaultValue="@bool/compose_rich_text"
148            android:key="compose_rich_text"
149            android:summary="The message editor will show formatting as you type"
150            android:title="Compose using rich text" />
151    </PreferenceCategory>
152    <PreferenceCategory android:title="@string/pref_keyboard_options">
153        <SwitchPreferenceCompat
154            android:defaultValue="@bool/display_enter_key"
155            android:icon="@drawable/ic_keyboard_return_24dp"
156            android:key="display_enter_key"
157            android:summary="@string/pref_display_enter_key_summary"
158            android:title="@string/pref_display_enter_key" />
159        <SwitchPreferenceCompat
160            android:defaultValue="@bool/enter_is_send"
161            android:icon="@drawable/ic_send_24dp"
162            android:key="enter_is_send"
163            android:summary="@string/pref_enter_is_send_summary"
164            android:title="@string/pref_enter_is_send" />
165    </PreferenceCategory>
166</PreferenceScreen>