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 <com.rarepebble.colorpicker.ColorPreference
29 android:icon="@drawable/ic_palette_24dp"
30 android:key="custom_theme_primary"
31 android:title="Custom Primary Color"
32 android:defaultValue="@color/md_theme_light_primary"
33 app:colorpicker_showAlpha="false" />
34 <com.rarepebble.colorpicker.ColorPreference
35 android:icon="@drawable/ic_palette_24dp"
36 android:key="custom_theme_primary_dark"
37 android:title="Custom Secondary Color"
38 android:defaultValue="@color/md_theme_light_secondary"
39 app:colorpicker_showAlpha="false" />
40 <com.rarepebble.colorpicker.ColorPreference
41 android:icon="@drawable/ic_palette_24dp"
42 android:key="custom_theme_accent"
43 android:title="Custom Tertiary Color"
44 android:defaultValue="@color/md_theme_light_tertiary"
45 app:colorpicker_showAlpha="false" />
46 <com.rarepebble.colorpicker.ColorPreference
47 android:icon="@drawable/ic_palette_24dp"
48 android:key="custom_theme_background_primary"
49 android:title="Custom Background Color"
50 android:defaultValue="@color/md_theme_light_surface"
51 app:colorpicker_showAlpha="false" />
52 <com.rarepebble.colorpicker.ColorPreference
53 android:icon="@drawable/ic_palette_24dp"
54 android:key="custom_dark_theme_primary"
55 android:title="Custom Primary Color"
56 android:defaultValue="@color/md_theme_dark_primary"
57 app:colorpicker_showAlpha="false" />
58 <com.rarepebble.colorpicker.ColorPreference
59 android:icon="@drawable/ic_palette_24dp"
60 android:key="custom_dark_theme_primary_dark"
61 android:title="Custom Secondary Color"
62 android:defaultValue="@color/md_theme_dark_secondary"
63 app:colorpicker_showAlpha="false" />
64 <com.rarepebble.colorpicker.ColorPreference
65 android:icon="@drawable/ic_palette_24dp"
66 android:key="custom_dark_theme_accent"
67 android:title="Custom Tertiary Color"
68 android:defaultValue="@color/md_theme_dark_tertiary"
69 app:colorpicker_showAlpha="false" />
70 <com.rarepebble.colorpicker.ColorPreference
71 android:icon="@drawable/ic_palette_24dp"
72 android:key="custom_dark_theme_background_primary"
73 android:title="Custom Background Color"
74 android:defaultValue="@color/md_theme_dark_surface"
75 app:colorpicker_showAlpha="false" />
76 </PreferenceCategory>>
77 <PreferenceCategory android:title="@string/appearance">
78 <SwitchPreferenceCompat
79 android:defaultValue="@bool/use_green_background"
80 android:icon="@drawable/ic_forum_24dp"
81 android:key="use_green_background"
82 android:summary="@string/pref_use_colorful_bubbles_summary"
83 android:title="@string/pref_use_colorful_bubbles" />
84 <SwitchPreferenceCompat
85 android:defaultValue="@bool/large_font"
86 android:icon="@drawable/ic_format_size_24dp"
87 android:key="large_font"
88 android:summary="@string/pref_large_font_summary"
89 android:title="@string/pref_large_font" />
90 <SwitchPreferenceCompat
91 android:defaultValue="@bool/show_dynamic_tags"
92 android:icon="@drawable/ic_label_24dp"
93 android:key="show_dynamic_tags"
94 android:summary="@string/pref_show_dynamic_tags_summary"
95 android:title="@string/pref_show_dynamic_tags" />
96 </PreferenceCategory>
97 <PreferenceCategory android:title="@string/pref_category_operating_system">
98 <SwitchPreferenceCompat
99 android:defaultValue="@bool/allow_screenshots"
100 android:icon="@drawable/ic_screenshot_24dp"
101 android:key="allow_screenshots"
102 android:summary="@string/pref_allow_screenshots_summary"
103 android:title="@string/pref_allow_screenshots" />
104 </PreferenceCategory>
105 <PreferenceCategory android:title="@string/pref_input_options">
106 <ListPreference
107 android:defaultValue="@string/quick_action"
108 android:dialogTitle="@string/choose_quick_action"
109 android:entries="@array/quick_actions"
110 android:entryValues="@array/quick_action_values"
111 android:icon="@drawable/ic_send_time_extension_24dp"
112 android:key="quick_action"
113 android:summary="@string/pref_quick_action_summary"
114 android:title="@string/pref_quick_action" />
115 <SwitchPreferenceCompat
116 android:defaultValue="@bool/scroll_to_bottom"
117 android:icon="@drawable/ic_vertical_align_bottom_24dp"
118 android:key="scroll_to_bottom"
119 android:summary="@string/pref_scroll_to_bottom_summary"
120 android:title="@string/pref_scroll_to_bottom" />
121 <SwitchPreferenceCompat
122 android:defaultValue="@bool/start_searching"
123 android:icon="@drawable/ic_search_24dp"
124 android:key="start_searching"
125 android:summary="@string/pref_start_search_summary"
126 android:title="@string/pref_start_search" />
127 <SwitchPreferenceCompat
128 android:icon="@drawable/ic_replay_24dp"
129 android:defaultValue="@bool/follow_thread_in_channel"
130 android:key="follow_thread_in_channel"
131 android:summary="@string/pref_follow_thread_in_channel_summary"
132 android:title="@string/pref_follow_thread_in_channel" />
133 <SwitchPreferenceCompat
134 android:icon="@drawable/ic_mood_24dp"
135 android:defaultValue="@bool/message_autocomplete"
136 android:key="message_autocomplete"
137 android:summary="@string/pref_message_autocomplete_summary"
138 android:title="@string/pref_message_autocomplete" />
139 </PreferenceCategory>
140 <PreferenceCategory android:title="@string/pref_keyboard_options">
141 <SwitchPreferenceCompat
142 android:defaultValue="@bool/display_enter_key"
143 android:icon="@drawable/ic_keyboard_return_24dp"
144 android:key="display_enter_key"
145 android:summary="@string/pref_display_enter_key_summary"
146 android:title="@string/pref_display_enter_key" />
147 <SwitchPreferenceCompat
148 android:defaultValue="@bool/enter_is_send"
149 android:icon="@drawable/ic_send_24dp"
150 android:key="enter_is_send"
151 android:summary="@string/pref_enter_is_send_summary"
152 android:title="@string/pref_enter_is_send" />
153 </PreferenceCategory>
154</PreferenceScreen>