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:
dlwlrma123
2022-04-07 11:19:06 +08:00
committed by Joey
parent 3123a2f7ea
commit 60184d4c87
2 changed files with 6 additions and 0 deletions

1
res/raw/darkmode.json Normal file

File diff suppressed because one or more lines are too long

View File

@@ -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">
@@ -24,6 +25,10 @@
android:key="dark_ui_top_intro"
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"