[q] top bar battery

Discussion in 'MIUI Mods' started by mechanical me, May 1, 2011.

  1. mechanical me

    Nov 17, 2010
    78
    0
    16
    student
    NY
    would it be possible to change the color of the top bar style battery?

    sent from my dong
     
  2. dstephens189

    Mar 16, 2011
    25
    0
    11
    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
     
  3. mberasategi

    May 31, 2011
    2
    0
    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
     
  4. Andy Thomson

    Andy ThomsonStaff Developer

    May 10, 2011
    1,316
    616
    230
    Senior Software Engineer
    Edinburgh, United Kingdom, United Kingdom



    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)
     
  5. americasteam

    May 8, 2011
    2
    0
    11
    Awesome. Thank you!

    Sent from my HTC Desire HD using the miuiandroid.com forum app
     
  6. Fabree

    FabreeMembers

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

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

    Andy ThomsonStaff Developer

    May 10, 2011
    1,316
    616
    230
    Senior Software Engineer
    Edinburgh, United Kingdom, United Kingdom
    It's the StatusBarView.smali file within SystemUI.apk
    There's a HEX code that defines the colour. It's on line 540.
     
  9. Andy Thomson

    Andy ThomsonStaff Developer

    May 10, 2011
    1,316
    616
    230
    Senior Software Engineer
    Edinburgh, United Kingdom, United Kingdom

    That only applies to the Graphical and Percentage battery styles. Not the Top Bar style. That's controlled by code.
     
  10. h_zee13

    h_zee13Members

    Dec 14, 2010
    185
    2
    28
    Can you tell me in which folder of the apk I can find the smali file?
     
  11. Andy Thomson

    Andy ThomsonStaff Developer

    May 10, 2011
    1,316
    616
    230
    Senior Software Engineer
    Edinburgh, United Kingdom, United Kingdom
    SystemUI.apk\smali\com\android\systemui\statusbar\StatusBarView.smali
     
  12. Ruvort

    RuvortMembers

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

Share Our Site