[q] top bar battery


dstephens189

Members
Mar 16, 2011
25
11
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
 

mberasategi

Members
May 31, 2011
2
11
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
 

Andy Thomson

Staff Developer
May 10, 2011
1,316
230
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)
 

Fabree

Members
May 11, 2011
3
11
Hi,
Thanks, I was looking for that since I start using MIUI.
Which file and which code did you change?
 

jcg_vazquez

Members
Nov 22, 2010
105
26
I'm missing something here... battery is moddable by theme manager, simply editing raw folder inside systemui... Is this something different?
 

Andy Thomson

Staff Developer
May 10, 2011
1,316
230
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.
 

Andy Thomson

Staff Developer
May 10, 2011
1,316
230
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.
 

Ruvort

Members
Aug 15, 2011
26
13
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.