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 <SwitchPreferenceCompat
103 android:defaultValue="@bool/show_link_previews"
104 android:icon="@drawable/ic_link_24dp"
105 android:key="show_link_previews"
106 android:summary="When a sender has included link descriptions, show them"
107 android:title="Show Link Previews" />
108 </PreferenceCategory>
109 <PreferenceCategory android:title="@string/pref_category_operating_system">
110 <SwitchPreferenceCompat
111 android:defaultValue="@bool/allow_screenshots"
112 android:icon="@drawable/ic_screenshot_24dp"
113 android:key="allow_screenshots"
114 android:summary="@string/pref_allow_screenshots_summary"
115 android:title="@string/pref_allow_screenshots" />
116 <SwitchPreferenceCompat
117 android:defaultValue="@bool/default_custom_tab"
118 android:icon="@drawable/ic_link_24dp"
119 android:key="custom_tab"
120 android:summary="@string/pref_custom_tab_summary"
121 android:title="@string/pref_custom_tab" />
122 </PreferenceCategory>
123 <PreferenceCategory android:title="@string/pref_input_options">
124 <ListPreference
125 android:defaultValue="@string/quick_action"
126 android:dialogTitle="@string/choose_quick_action"
127 android:entries="@array/quick_actions"
128 android:entryValues="@array/quick_action_values"
129 android:icon="@drawable/ic_send_time_extension_24dp"
130 android:key="quick_action"
131 android:summary="@string/pref_quick_action_summary"
132 android:title="@string/pref_quick_action" />
133 <SwitchPreferenceCompat
134 android:defaultValue="@bool/scroll_to_bottom"
135 android:icon="@drawable/ic_vertical_align_bottom_24dp"
136 android:key="scroll_to_bottom"
137 android:summary="@string/pref_scroll_to_bottom_summary"
138 android:title="@string/pref_scroll_to_bottom" />
139 <SwitchPreferenceCompat
140 android:defaultValue="@bool/start_searching"
141 android:icon="@drawable/ic_search_24dp"
142 android:key="start_searching"
143 android:summary="@string/pref_start_search_summary"
144 android:title="@string/pref_start_search" />
145 <SwitchPreferenceCompat
146 android:icon="@drawable/ic_replay_24dp"
147 android:defaultValue="@bool/follow_thread_in_channel"
148 android:key="follow_thread_in_channel"
149 android:summary="@string/pref_follow_thread_in_channel_summary"
150 android:title="@string/pref_follow_thread_in_channel" />
151 <SwitchPreferenceCompat
152 android:icon="@drawable/ic_mood_24dp"
153 android:defaultValue="@bool/message_autocomplete"
154 android:key="message_autocomplete"
155 android:summary="@string/pref_message_autocomplete_summary"
156 android:title="@string/pref_message_autocomplete" />
157 <SwitchPreferenceCompat
158 android:icon="@drawable/ic_format_size_24dp"
159 android:defaultValue="@bool/compose_rich_text"
160 android:key="compose_rich_text"
161 android:summary="The message editor will show formatting as you type"
162 android:title="Compose using rich text" />
163 </PreferenceCategory>
164 <PreferenceCategory android:title="@string/pref_keyboard_options">
165 <SwitchPreferenceCompat
166 android:defaultValue="@bool/display_enter_key"
167 android:icon="@drawable/ic_keyboard_return_24dp"
168 android:key="display_enter_key"
169 android:summary="@string/pref_display_enter_key_summary"
170 android:title="@string/pref_display_enter_key" />
171 <SwitchPreferenceCompat
172 android:defaultValue="@bool/enter_is_send"
173 android:icon="@drawable/ic_send_24dp"
174 android:key="enter_is_send"
175 android:summary="@string/pref_enter_is_send_summary"
176 android:title="@string/pref_enter_is_send" />
177 </PreferenceCategory>
178</PreferenceScreen>