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: 接收到刷新背景视图指令");