1
0
mirror of https://github.com/areteruhiro/LIME-beta-hiro.git synced 2025-02-11 07:51:37 +09:00

Update NaviColor.java

This commit is contained in:
areteruhiro 2024-11-27 20:59:32 +09:00 committed by GitHub
parent 266f91fdf1
commit aaa19209bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,7 +145,9 @@ private void checkAndChangeBackgroundColor(View view) {
int currentColor = ((ColorDrawable) background).getColor();
// 特定の色と一致する場合に背景色を変更
if (currentColor == Color.parseColor("#111111") || currentColor == Color.parseColor("#1A1A1A")) {
if (currentColor == Color.parseColor("#111111") || "statusBarBackground".equals(resourceName)
|| "navigationBarBackground".equals(resourceName)
|| currentColor == Color.parseColor("#1A1A1A")) {
((ColorDrawable) background).setColor(Color.parseColor("#000000"));
changedResources.add(resourceName); // リソースを変更済みリストに追加