diff --git a/app/src/main/java/moe/chenxy/miuiextra/hooker/entity/systemui/LinkageAnimCustomer.kt b/app/src/main/java/moe/chenxy/miuiextra/hooker/entity/systemui/LinkageAnimCustomer.kt index 6d17e7c..5f140be 100644 --- a/app/src/main/java/moe/chenxy/miuiextra/hooker/entity/systemui/LinkageAnimCustomer.kt +++ b/app/src/main/java/moe/chenxy/miuiextra/hooker/entity/systemui/LinkageAnimCustomer.kt @@ -95,6 +95,8 @@ object LinkageAnimCustomer : YukiBaseHooker() { val off = MiWallpaperHook.mainPrefs.getInt("screen_off_color_fade_anim_val", 450) val chenAnimLinkage = MiWallpaperHook.mainPrefs.getBoolean("lineage_aod_chen_wallpaper_anim", false) + val wallpaperBlackAlpha = MiWallpaperHook.mainPrefs.getInt("wallpaper_black_alpha", 80) + .toFloat() / 100 initAnim() Log.d("Art_Chen", "ClockBaseAnimation-LinkageAnim: start! toAod $toAod hasNotification $hasNotification") @@ -108,7 +110,7 @@ object LinkageAnimCustomer : YukiBaseHooker() { val stateStyle = XposedHelpers.callStaticMethod("miuix.animation.Folme".toClass(), "useValue", arrayOf("WallpaperParam")) XposedHelpers.callMethod(toAodAnimConfig, "setEase", mWallpaperHideEase) - XposedHelpers.callMethod(stateStyle, "to", arrayOf("wallpaperBlack", if (chenAnimLinkage) 0.8f else 1f, toAodAnimConfig)) + XposedHelpers.callMethod(stateStyle, "to", arrayOf("wallpaperBlack", if (chenAnimLinkage) wallpaperBlackAlpha else 1f, toAodAnimConfig)) } else { XposedHelpers.callMethod(showEase, "setDuration", on.toLong()) val stateStyle = XposedHelpers.callStaticMethod("miuix.animation.Folme".toClass(), "useValue", arrayOf("WallpaperParam")) diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 42fbfc4..43a596d 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -135,4 +135,5 @@ 联动息屏和琛的壁纸动画 警告:长亮AOD时有烧屏风险 启用桌面文字阴影效果 + 壁纸压暗程度"> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 4101bf0..54be09a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -137,4 +137,5 @@ Lineage Aod and Chen Wallpaper Anim WARNING: May cause screen burn if AOD Always mode Enable Home Text Shadow + Wallpaper Darkness"> \ No newline at end of file diff --git a/app/src/main/res/xml/chen_preferences.xml b/app/src/main/res/xml/chen_preferences.xml index e2c0922..5fea985 100644 --- a/app/src/main/res/xml/chen_preferences.xml +++ b/app/src/main/res/xml/chen_preferences.xml @@ -109,6 +109,14 @@ app:title="@string/lineage_aod_wallpaper_anim_title" app:summary="@string/lineage_aod_wallpaper_anim_summary"/> +