diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/BatteryStyleManager.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/BatteryStyleManager.java index 1fdb682b1..6fc4dcce7 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/BatteryStyleManager.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/statusbar/BatteryStyleManager.java @@ -309,6 +309,26 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { singleToneColor = (int) param.args[0]; frameColor = (int) param.args[1]; backgroundColor = (int) param.args[2]; + if (mBatteryIcon != null) { + if (mBatteryIcon.getDrawable() instanceof BatteryDrawable mBatteryDrawable) { + mBatteryDrawable.setColors(frameColor, backgroundColor, singleToneColor); + mBatteryDrawable.customizeBatteryDrawable( + mBatteryLayoutReverse, + mScaledPerimeterAlpha, + mScaledFillAlpha, + mCustomBlendColor, + mRainbowFillColor, + mCustomFillColor, + mCustomFillGradColor, + mCustomBlendColor ? mCustomChargingColor : getChargingColor(mCustomChargingColor), + mCustomBlendColor ? mCustomFastChargingColor : getChargingColor(mCustomFastChargingColor), + mCustomPowerSaveColor, + mCustomPowerSaveFillColor, + mChargingIconSwitch + ); + mBatteryIcon.setImageDrawable(mBatteryDrawable); + } + } } }); diff --git a/app/src/main/res/values/ic_launcher_background.xml b/app/src/main/res/values/ic_launcher_background.xml deleted file mode 100644 index 89b9dd310..000000000 --- a/app/src/main/res/values/ic_launcher_background.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - #2F3B49 - \ No newline at end of file