Settings: Add illustration to dark mode preference
Signed-off-by: Sipun Ku Mahanta <sipunkumar85@gmail.com> Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
1
res/raw/darkmode.json
Normal file
1
res/raw/darkmode.json
Normal file
File diff suppressed because one or more lines are too long
@@ -17,6 +17,7 @@
|
||||
<PreferenceScreen
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:settings="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:title="@string/dark_ui_mode"
|
||||
settings:keywords="@string/keywords_dark_ui_mode">
|
||||
|
||||
@@ -25,6 +26,10 @@
|
||||
settings:searchable="false"
|
||||
settings:controller="com.android.settings.display.darkmode.DarkModeTopIntroPreferenceController"/>
|
||||
|
||||
<com.android.settingslib.widget.IllustrationPreference
|
||||
android:key="dark_illustration"
|
||||
app:lottie_rawRes="@raw/darkmode"/>
|
||||
|
||||
<com.android.settingslib.widget.MainSwitchPreference
|
||||
android:key="dark_ui_activated"
|
||||
android:title="@string/dark_theme_main_switch_title"
|
||||
|
||||
Reference in New Issue
Block a user