From e1d581375accdf4181b52afa1af8cae660e85cb7 Mon Sep 17 00:00:00 2001 From: HapeLee <1321903405@qq.com> Date: Tue, 28 Oct 2025 00:43:07 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=8F=E6=98=8E=E4=B8=BB=E9=A2=98=E6=9C=AA?= =?UTF-8?q?=E8=A6=81=E6=B1=82=E8=AE=BE=E7=BD=AE=E8=83=8C=E6=99=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20#158?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../legato/kazusa/lib/prefs/ThemeCardPreference.kt | 4 ++-- .../legato/kazusa/ui/config/ThemeConfigFragment.kt | 12 ++++++------ app/version.properties | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/io/legato/kazusa/lib/prefs/ThemeCardPreference.kt b/app/src/main/java/io/legato/kazusa/lib/prefs/ThemeCardPreference.kt index aaa21a91c..f287a18dc 100644 --- a/app/src/main/java/io/legato/kazusa/lib/prefs/ThemeCardPreference.kt +++ b/app/src/main/java/io/legato/kazusa/lib/prefs/ThemeCardPreference.kt @@ -81,7 +81,7 @@ class ThemeCardPreference(context: Context, attrs: AttributeSet) : Preference(co holder.card.setOnClickListener { if (value != currentValue) { - if (value == "12") { + if (value == "13") { val hasLightBg = !appCtx.getPrefString(PreferKey.bgImage).isNullOrEmpty() val hasDarkBg = !appCtx.getPrefString(PreferKey.bgImageN).isNullOrEmpty() if (!hasLightBg || !hasDarkBg) { @@ -94,7 +94,7 @@ class ThemeCardPreference(context: Context, attrs: AttributeSet) : Preference(co persistString(value) callChangeListener(value) notifyDataSetChanged() - val isDynamicSwitch = (oldValue == "11" || value == "11") + val isDynamicSwitch = (oldValue == "12" || value == "12") Handler(Looper.getMainLooper()).postDelayed({ if (isDynamicSwitch) { context.alert(context.getString(R.string.restart_required_message)) { diff --git a/app/src/main/java/io/legato/kazusa/ui/config/ThemeConfigFragment.kt b/app/src/main/java/io/legato/kazusa/ui/config/ThemeConfigFragment.kt index d5992c7a8..5b09571bf 100644 --- a/app/src/main/java/io/legato/kazusa/ui/config/ThemeConfigFragment.kt +++ b/app/src/main/java/io/legato/kazusa/ui/config/ThemeConfigFragment.kt @@ -121,9 +121,9 @@ class ThemeConfigFragment : PreferenceFragmentCompat(), val customMode = findPreference("customMode") val currentTheme = getPrefString("app_theme") - colorPrimary?.isVisible = currentTheme == "11" - colorImage?.isVisible = currentTheme == "11" - customMode?.isVisible = currentTheme == "11" + colorPrimary?.isVisible = currentTheme == "12" + colorImage?.isVisible = currentTheme == "12" + customMode?.isVisible = currentTheme == "12" themePref?.let { it.setOnPreferenceChangeListener { _, _ -> @@ -132,9 +132,9 @@ class ThemeConfigFragment : PreferenceFragmentCompat(), } themePref?.setOnPreferenceChangeListener { _, newValue -> - colorPrimary?.isVisible = newValue == "11" - colorImage?.isVisible = currentTheme == "11" - customMode?.isVisible = newValue == "11" + colorPrimary?.isVisible = newValue == "12" + colorImage?.isVisible = currentTheme == "12" + customMode?.isVisible = newValue == "12" true } diff --git a/app/version.properties b/app/version.properties index 5de67a7ff..463a031e4 100644 --- a/app/version.properties +++ b/app/version.properties @@ -1,4 +1,4 @@ VERSION_MAJOR=3 -VERSION_MINOR=25 -VERSION_PATCH=15 +VERSION_MINOR=26 +VERSION_PATCH=1 VERSION_SUFFIX= \ No newline at end of file