[q] top bar battery


would it be possible to change the color of the top bar style battery?

sent from my dong

In the mods part look for miui modsbattery percentage or something along those lines. It is possible, just edit it in theme manager..

Sent from my HTC Desire using the miui-dev.com Forums App
 
I would like to change the bar color as well, but I couldn't find the option you mentioned... do I need to install any extra mod to achieve this?

Thanks!

Enviado desde mi HTC Desire usando Tapatalk
 
I would like to change the bar color as well, but I couldn't find the option you mentioned... do I need to install any extra mod to achieve this?

Thanks!

Enviado desde mi HTC Desire usando Tapatalk


Hi

Don't know if anyone is still looking for this MOD? But I've worked out how to do it at last!!!!!

I've attached a link to a zip file that contains four different files. One for Blue, White, Yellow and Green. Just grab the file that corresponds to the colour you want then rename to SystemUI.apk.

The files are from the latest version (1.6.24). I wouldn't risk installing this on any other version.

Instructions :-

adb remount
adb push SystemUI.apk /system/app/
adb reboot

Set Battery Style to Top-Bar. Enjoy your new colour!!

Top Bar Colours


Note. When the battery is low the bar will be Red regardless of which main colour you have..

If you would like a different colour just let me know (Please supply the HEX code for the colour you want)
 
Hi,
Thanks, I was looking for that since I start using MIUI.
Which file and which code did you change?
 
I'm missing something here... battery is moddable by theme manager, simply editing raw folder inside systemui... Is this something different?
 
Hi,
Thanks, I was looking for that since I start using MIUI.
Which file and which code did you change?

It's the StatusBarView.smali file within SystemUI.apk
There's a HEX code that defines the colour. It's on line 540.
 
I'm missing something here... battery is moddable by theme manager, simply editing raw folder inside systemui... Is this something different?


That only applies to the Graphical and Percentage battery styles. Not the Top Bar style. That's controlled by code.
 
Just for anyone who looks at this thread in the future, miui has since moved onto using a .9.png in the systemui.apk to show the top battery bar. This means that theme packs can now include changes to its color.