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        <Preference
 85            android:icon="@drawable/ic_forum_24dp"
 86            app:fragment="eu.siacs.conversations.ui.fragment.settings.InterfaceBubblesSettingsFragment"
 87            app:summary="@string/pref_chat_bubbles_summary"
 88            app:title="@string/pref_chat_bubbles" />
 89        <SwitchPreferenceCompat
 90            android:defaultValue="@bool/show_dynamic_tags"
 91            android:icon="@drawable/ic_label_24dp"
 92            android:key="show_dynamic_tags"
 93            android:summary="@string/pref_show_dynamic_tags_summary"
 94            android:title="@string/pref_show_dynamic_tags" />
 95        <SwitchPreferenceCompat
 96            android:defaultValue="@bool/show_link_previews"
 97            android:icon="@drawable/ic_link_24dp"
 98            android:key="show_link_previews"
 99            android:summary="When a sender has included link descriptions, show them"
100            android:title="Show Link Previews" />
101    </PreferenceCategory>
102    <PreferenceCategory android:title="@string/pref_category_operating_system">
103        <SwitchPreferenceCompat
104            android:defaultValue="@bool/allow_screenshots"
105            android:icon="@drawable/ic_screenshot_24dp"
106            android:key="allow_screenshots"
107            android:summary="@string/pref_allow_screenshots_summary"
108            android:title="@string/pref_allow_screenshots" />
109        <SwitchPreferenceCompat
110            android:defaultValue="@bool/default_custom_tab"
111            android:icon="@drawable/ic_link_24dp"
112            android:key="custom_tab"
113            android:summary="@string/pref_custom_tab_summary"
114            android:title="@string/pref_custom_tab" />
115    </PreferenceCategory>
116    <PreferenceCategory android:title="@string/pref_input_options">
117        <ListPreference
118            android:defaultValue="@string/quick_action"
119            android:dialogTitle="@string/choose_quick_action"
120            android:entries="@array/quick_actions"
121            android:entryValues="@array/quick_action_values"
122            android:icon="@drawable/ic_send_time_extension_24dp"
123            android:key="quick_action"
124            android:summary="@string/pref_quick_action_summary"
125            android:title="@string/pref_quick_action" />
126        <SwitchPreferenceCompat
127            android:defaultValue="@bool/scroll_to_bottom"
128            android:icon="@drawable/ic_vertical_align_bottom_24dp"
129            android:key="scroll_to_bottom"
130            android:summary="@string/pref_scroll_to_bottom_summary"
131            android:title="@string/pref_scroll_to_bottom" />
132        <SwitchPreferenceCompat
133            android:defaultValue="@bool/start_searching"
134            android:icon="@drawable/ic_search_24dp"
135            android:key="start_searching"
136            android:summary="@string/pref_start_search_summary"
137            android:title="@string/pref_start_search" />
138        <SwitchPreferenceCompat
139            android:icon="@drawable/ic_replay_24dp"
140            android:defaultValue="@bool/follow_thread_in_channel"
141            android:key="follow_thread_in_channel"
142            android:summary="@string/pref_follow_thread_in_channel_summary"
143            android:title="@string/pref_follow_thread_in_channel" />
144        <SwitchPreferenceCompat
145            android:icon="@drawable/ic_mood_24dp"
146            android:defaultValue="@bool/message_autocomplete"
147            android:key="message_autocomplete"
148            android:summary="@string/pref_message_autocomplete_summary"
149            android:title="@string/pref_message_autocomplete" />
150        <SwitchPreferenceCompat
151            android:icon="@drawable/ic_format_size_24dp"
152            android:defaultValue="@bool/compose_rich_text"
153            android:key="compose_rich_text"
154            android:summary="The message editor will show formatting as you type"
155            android:title="Compose using rich text" />
156        <SwitchPreferenceCompat
157            android:icon="@drawable/ic_announcement_24dp"
158            android:defaultValue="@bool/show_muc_pm"
159            android:key="show_muc_pm"
160            android:summary="Allow starting semi-private chats inside a channel"
161            android:title="Show Channel PM" />
162    </PreferenceCategory>
163    <PreferenceCategory android:title="@string/pref_keyboard_options">
164        <SwitchPreferenceCompat
165            android:defaultValue="@bool/display_enter_key"
166            android:icon="@drawable/ic_keyboard_return_24dp"
167            android:key="display_enter_key"
168            android:summary="@string/pref_display_enter_key_summary"
169            android:title="@string/pref_display_enter_key" />
170        <SwitchPreferenceCompat
171            android:defaultValue="@bool/enter_is_send"
172            android:icon="@drawable/ic_send_24dp"
173            android:key="enter_is_send"
174            android:summary="@string/pref_enter_is_send_summary"
175            android:title="@string/pref_enter_is_send" />
176    </PreferenceCategory>
177</PreferenceScreen>