Cherish: Add support for Lockscreen clock fonts

After r16, a commit to cleanup the KeyguardClockSwtich and unify it's structure was merged.
Also, this added a new resource into the frameworks core, which allows us to overlay the custom clock font.
So, we need to overlays now to customize this. This makes me really happy because it removes the ugly method that we were doing years ago.

[nurkeinneid]:
- adapt to our ThemeUtils
- restore original copyright header - crdroid did nothing here

Change-Id: I70590910144141a534b926f884e9f08e4e3af5bc
Signed-off-by: NurKeinNeid <mralexman3000@gmail.com>
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
El Dainosor
2023-01-02 00:22:37 -03:00
committed by Hưng Phan
parent d18df38636
commit fdb58046f4
4 changed files with 295 additions and 0 deletions

View File

@@ -92,6 +92,12 @@
android:title="@string/theme_customization_ui_style_title"
android:summary="@string/theme_customization_ui_style_summary"
android:fragment="com.cherish.settings.fragments.ui.UIStyles"/>
<Preference
android:key="android.theme.customization.lockscreen_clock_font"
android:title="@string/theme_customization_lock_clock_title"
android:summary="@string/theme_customization_lock_clock_summary"
android:fragment="com.cherish.settings.fragments.ui.LockClockFonts"/>
<!-- QS style -->
<com.cherish.settings.preferences.SystemSettingListPreference