From 829ef7878b7eeabce0511da17dd7815b1221d4b1 Mon Sep 17 00:00:00 2001 From: 15dd Date: Sat, 23 Nov 2024 16:42:21 +0800 Subject: [PATCH] v3.3.0 --- .idea/deploymentTargetSelector.xml | 4 +- .idea/kotlinc.xml | 2 +- .idea/misc.xml | 1 - app/build.gradle.kts | 10 +- app/lint-baseline.xml | 15 ++ app/release/app-release.apk | Bin 9883262 -> 9992159 bytes app/release/baselineProfiles/0/app-release.dm | Bin 4926 -> 5465 bytes app/release/baselineProfiles/1/app-release.dm | Bin 4863 -> 5372 bytes app/release/output-metadata.json | 4 +- .../java/com/cyh128/hikari_novel/HikariApp.kt | 22 +-- .../cyh128/hikari_novel/base/BaseActivity.kt | 24 ++- .../hikari_novel/data/model/DarkMode.kt | 7 + .../cyh128/hikari_novel/data/model/Event.kt | 3 + .../data/repository/AppRepository.kt | 7 + .../data/repository/Wenku8Repository.kt | 31 ++-- .../data/source/local/mmkv/AppConfig.kt | 7 + .../hikari_novel/ui/view/main/MainActivity.kt | 10 +- .../main/more/more/setting/SettingActivity.kt | 124 +++++++-------- .../more/more/setting/SettingViewModel.kt | 5 + .../more/setting/ThemeListDialogFragment.kt | 149 ++++++++++++++++++ .../com/cyh128/hikari_novel/util/Constants.kt | 5 + .../cyh128/hikari_novel/util/Extensions.kt | 3 +- .../hikari_novel/util/LanguageHelper.kt | 25 +++ .../cyh128/hikari_novel/util/ThemeHelper.kt | 26 ++- .../com/cyh128/hikari_novel/util/TimeUtil.kt | 8 +- app/src/main/res/drawable/ic_dark_mode.xml | 10 ++ app/src/main/res/layout/activity_setting.xml | 144 +++++++---------- app/src/main/res/layout/view_theme_list.xml | 11 +- app/src/main/res/values-night/colors_nord.xml | 4 +- app/src/main/res/values-night/themes.xml | 3 +- app/src/main/res/values-v23/themes.xml | 1 + app/src/main/res/values-zh-rTW/strings.xml | 5 +- app/src/main/res/values/colors.xml | 15 -- app/src/main/res/values/strings.xml | 5 +- app/src/main/res/values/themes.xml | 4 +- build.gradle.kts | 6 +- 36 files changed, 444 insertions(+), 256 deletions(-) create mode 100644 app/lint-baseline.xml create mode 100644 app/src/main/java/com/cyh128/hikari_novel/data/model/DarkMode.kt create mode 100644 app/src/main/java/com/cyh128/hikari_novel/ui/view/main/more/more/setting/ThemeListDialogFragment.kt create mode 100644 app/src/main/java/com/cyh128/hikari_novel/util/Constants.kt create mode 100644 app/src/main/java/com/cyh128/hikari_novel/util/LanguageHelper.kt create mode 100644 app/src/main/res/drawable/ic_dark_mode.xml diff --git a/.idea/deploymentTargetSelector.xml b/.idea/deploymentTargetSelector.xml index ba8b420..028d753 100644 --- a/.idea/deploymentTargetSelector.xml +++ b/.idea/deploymentTargetSelector.xml @@ -4,10 +4,10 @@