[DISCUSS] General Questions/Problems with Theming

sonnysekhon

Recognized Themer
Aug 15, 2010
4,166
5,479
0
Vancouver
Changing clock color doesn't seem to be the same as it was on the Vibrant
Where did the value change to? It used to be in services.jar\com\android\server\status\StatusBarIcon.smali
In SystemUI.apk/res/layout/status_bar.xml,

change

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />


to

<com.android.systemui.statusbar.Clock android:textColor="#ffYOUR 6 DIGIT COLOR CODE" android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
 

Master™

Senior Member
Sep 24, 2010
3,250
1,230
0
In SystemUI.apk/res/layout/status_bar.xml,

change

<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />


to

<com.android.systemui.statusbar.Clock android:textColor="#ffYOUR 6 DIGIT COLOR CODE" android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />

Ahhh, thanks
 

kenvan19

Senior Member
Dec 7, 2010
3,566
540
0
Two questions:
1) What do you use to edit XMLs (preferably for mac but I have a windows partition too)
2) I see how to change the color of the clock but how would one change the color of the other text on the status bar? (For example a notification, or the Media Scanning text)
 

sonnysekhon

Recognized Themer
Aug 15, 2010
4,166
5,479
0
Vancouver
Two questions:
1) What do you use to edit XMLs (preferably for mac but I have a windows partition too)
2) I see how to change the color of the clock but how would one change the color of the other text on the status bar? (For example a notification, or the Media Scanning text)
1. Not sure about mac. I use Apkmanager for windows.
2. Same place as Clock, look for TickerColor and Dateview.
 

kenvan19

Senior Member
Dec 7, 2010
3,566
540
0
1. Not sure about mac. I use Apkmanager for windows.
2. Same place as Clock, look for TickerColor and Dateview.
Thanks Sonny, I downloaded APKmanager and am getting errors with it...I posted on impalers theming thread with the specific issue. Do you think I need to have the sdk installed to decompile an apk? (I don't have the SDK installed on my windows partition yet but I can if I need to).

Oh and when you say tickercolor and dateview would it be com.android.systemui.statusbar.Tickercolor and com.android.systemui.statusbar.Dateview ?
 
Last edited:

sonnysekhon

Recognized Themer
Aug 15, 2010
4,166
5,479
0
Vancouver
Thanks Sonny, I downloaded APKmanager and am getting errors with it...I posted on impalers theming thread with the specific issue. Do you think I need to have the sdk installed to decompile an apk? (I don't have the SDK installed on my windows partition yet but I can if I need to).
You have to have JDK installed.

Oh and when you say tickercolor and dateview would it be com.android.systemui.statusbar.Tickercolor and com.android.systemui.statusbar.Dateview ?
Yes.
 

kenvan19

Senior Member
Dec 7, 2010
3,566
540
0
Hey Sonny, I'm still have problems decompiling the SystemUI.apk...impaler told me he thinks its dependent on something but since he's not too familiar with gingerbread he doesn't know what...Would you have any idea?
 

sonnysekhon

Recognized Themer
Aug 15, 2010
4,166
5,479
0
Vancouver
Hey Sonny, I'm still have problems decompiling the SystemUI.apk...impaler told me he thinks its dependent on something but since he's not too familiar with gingerbread he doesn't know what...Would you have any idea?
You have to do is install the framework of the ROM you are trying to create a theme for.

java -jar apktool.jar if <PATH_TO_YOUR>/framework-res.apk
 

kenvan19

Senior Member
Dec 7, 2010
3,566
540
0
You have to do is install the framework of the ROM you are trying to create a theme for.

java -jar apktool.jar if <PATH_TO_YOUR>/framework-res.apk
Oh I see...I was using APK manager because I couldn't quite figure out how to use APKtool...Thanks!

Woohoo it decompiled perfectly! Thanks! Now to test this hehe
 
Last edited:

kenvan19

Senior Member
Dec 7, 2010
3,566
540
0
Do I need to resign the APK once I've put in the edited XML? I'm dropping it into the APK via WinRAR so I didn't think I'd have to but no matter I do, when I put the flash the theme with the edited XML the status bar just force closes.

I realized you must have a modified XML in your Frost theme so I decided to put that into the SystemUI.APK but it still is coming up bad. I guess I'll try to sign it and see what happens.
 
Last edited:

Master™

Senior Member
Sep 24, 2010
3,250
1,230
0
Do I need to resign the APK once I've put in the edited XML? I'm dropping it into the APK via WinRAR so I didn't think I'd have to but no matter I do, when I put the flash the theme with the edited XML the status bar just force closes.

I realized you must have a modified XML in your Frost theme so I decided to put that into the SystemUI.APK but it still is coming up bad. I guess I'll try to sign it and see what happens.
Make sure you select yes to keep the old files that you didn't modify.. Then delete the one you did (apk manager..)
 

kenvan19

Senior Member
Dec 7, 2010
3,566
540
0
Make sure you select yes to keep the old files that you didn't modify.. Then delete the one you did (apk manager..)
Thanks, turns out I couldn't just drop the XML into the systemUI, I had to recompile the it with the changed XML. Makes sense I guess. Got it working perfectly! Woohoo! Thank you guys!
 

sonnysekhon

Recognized Themer
Aug 15, 2010
4,166
5,479
0
Vancouver

kenvan19

Senior Member
Dec 7, 2010
3,566
540
0
Hey Sonny, I'm having immense problems with the new statusbar.xml in CM7 after they added the battery percent. No matter what I do, if I edit the file and then try to recompile it just fails. I even tried decompiling then recompiling the one from your Frost but it came up with the same failure plus there were some issues even just decompiling it. I'm at a loss, any words of advice?
 

sonnysekhon

Recognized Themer
Aug 15, 2010
4,166
5,479
0
Vancouver
Hey Sonny, I'm having immense problems with the new statusbar.xml in CM7 after they added the battery percent. No matter what I do, if I edit the file and then try to recompile it just fails. I even tried decompiling then recompiling the one from your Frost but it came up with the same failure plus there were some issues even just decompiling it. I'm at a loss, any words of advice?
Start with a fresh apk, not a themed one, and install the framework again with the java command as it changed with 2.3.3.
 

Master™

Senior Member
Sep 24, 2010
3,250
1,230
0
Does anyone happen to know which .xml is for the orange when you pull down in the settings/web & you are at the end?
I have been looking for it w/ no luck -.-

 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone