From dcb5355233816b3bc6fbb19d6290e32e7652f107 Mon Sep 17 00:00:00 2001 From: ZhanGSKen Date: Fri, 26 Dec 2025 20:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9C=A8=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E6=97=B6=E6=8A=8A=E4=B8=BB=E9=A2=98=E5=9F=BA?= =?UTF-8?q?=E5=87=86=E8=89=B2=E9=85=8D=E7=BD=AE=E4=B8=BA=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E5=9B=BE=E8=83=8C=E6=99=AF=E5=83=8F=E7=B4=A0=E5=BA=95=E8=89=B2?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- powerbell/build.properties | 4 ++-- .../cc/winboll/studio/powerbell/MainActivity.java | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/powerbell/build.properties b/powerbell/build.properties index 822a5db..b286a73 100644 --- a/powerbell/build.properties +++ b/powerbell/build.properties @@ -1,8 +1,8 @@ #Created by .winboll/winboll_app_build.gradle -#Fri Dec 26 20:13:09 HKT 2025 +#Fri Dec 26 12:52:24 GMT 2025 stageCount=36 libraryProject= baseVersion=15.14 publishVersion=15.14.35 -buildCount=0 +buildCount=8 baseBetaVersion=15.14.36 diff --git a/powerbell/src/main/java/cc/winboll/studio/powerbell/MainActivity.java b/powerbell/src/main/java/cc/winboll/studio/powerbell/MainActivity.java index 971e109..1abaaf6 100644 --- a/powerbell/src/main/java/cc/winboll/studio/powerbell/MainActivity.java +++ b/powerbell/src/main/java/cc/winboll/studio/powerbell/MainActivity.java @@ -35,6 +35,7 @@ import cc.winboll.studio.powerbell.utils.BackgroundSourceUtils; import cc.winboll.studio.powerbell.utils.PermissionUtils; import cc.winboll.studio.powerbell.utils.ServiceUtils; import cc.winboll.studio.powerbell.views.MainContentView; +import cc.winboll.studio.powerbell.utils.ImageUtils; /** * 应用核心主活动 @@ -48,6 +49,7 @@ public class MainActivity extends WinBoLLActivity implements MainContentView.OnV public static final String TAG = "MainActivity"; private static final int REQUEST_BACKGROUND_SETTINGS_ACTIVITY = 1001; public static final String EXTRA_ISRELOAD_BACKGROUNDVIEW = "EXTRA_ISRELOAD_BACKGROUNDVIEW"; + public static final String EXTRA_ISRELOAD_ACCENTCOLOR = "EXTRA_ISRELOAD_ACCENTCOLOR"; private static final long DELAY_LOAD_NON_CRITICAL = 500L; // Handler 消息常量 @@ -215,6 +217,10 @@ public class MainActivity extends WinBoLLActivity implements MainContentView.OnV // 主题切换处理 if (AESThemeUtil.onAppThemeItemSelected(this, item)) { recreate(); + Intent mainIntent = new Intent(MainActivity.this, MainActivity.class); + mainIntent.putExtra(MainActivity.EXTRA_ISRELOAD_BACKGROUNDVIEW, true); + mainIntent.putExtra(MainActivity.EXTRA_ISRELOAD_ACCENTCOLOR, true); + startActivity(mainIntent); return true; } // 开发者功能处理 @@ -424,6 +430,13 @@ public class MainActivity extends WinBoLLActivity implements MainContentView.OnV LogUtils.d(TAG, "handleReloadBackgroundParam: Intent 为空"); return; } + + boolean isReloadAccentColor = intent.getBooleanExtra(EXTRA_ISRELOAD_ACCENTCOLOR, false); + if (isReloadAccentColor) { + App.sBackgroundSourceUtils.getCurrentBackgroundBean().setPixelColor(ImageUtils.getColorAccent(this)); + App.sBackgroundSourceUtils.saveSettings(); + } + boolean isReloadBackgroundView = intent.getBooleanExtra(EXTRA_ISRELOAD_BACKGROUNDVIEW, false); if (isReloadBackgroundView) { LogUtils.d(TAG, "handleReloadBackgroundParam: 接收到刷新背景视图指令");