Re: [ROM] CM7.1 Port for Optimus S by thekraven 11-12-2011
For the advanced users. Changing color fonts in the status bar.
Feel free to make a new post with this.
Here is the status bar patcher by Zdune with my mods. It will decompile the SystemUI.apk to allow color edits and move the clock if you choose to. (same as the patches I make, but you can edit the colors). Afterwards, It will create a signed and flashable zip onces everything compiles correctly, undo.zip also.
Requirements.
Latest Android SDK installed and enviroment path set.
Notepad++ for edits.
Windows only.
Download:
patcher4windows_by_Z25a.zip
Reference:
Zdune Android - Tweaks
CM7 Theme Patcher v1.6 (Windows users) - xda-developers
Install: Just unzip this package to a folder and work inside it. The run the patcher.bat file.
You can either pull the framework-res.apk and SystemUI.apk out of the CM7 rom zip yourself or pull inside the program.
Once you choose status bar tweaks and a mod (either center clock or transparency), it will decompile the files for you and open up a pop up directory and text file. Here is where you will do the manual edits for color and transparency.
edits1: Transparency: the popup directory is where you find the StatusBarService.smali file to edit for transparency. Open that in notepad++ and find the line to edit found in the popup text file. As stated in the popup text file: It is line 2209 in the latest version. But could vary.Change const/4 v5, 0x2 to const/4 v5, -0x3
edits2: Font color: Look for the status_bar.xml in /temp/res/layout/ and edit the android:textColor="#ffffffff" items for changing the font colors. There are six places to change. Use a hexidecimal color chart to edit the last six f's. For example #FF000000 is black font. , #FFFFFFFF is white font. #50FFFFFF is semi transparent white font.
Now choose option 5 on the menu to build your mods. Then choose 6 to make the flashable zips. And flash in recovery to see your results.
Thanks to Zdune25 for the patcher and Taine0 for status bar xml tweaks.