Hey Guys,
Posted this in Q/A without a response and was wondering if you can help. Here is the original:
Hey Guys,
Been editing my personal ROM for a while and was thinking of creating one to put out there. One issue im having though is this:
The text underneath the toggles in the notification bar, where is that located? How do you edit that?
Just to clarify, the text under WIFI, GPS, etc etc in the notification bar, where is that located? In a jar file?
Thanks in advance!
You're gonna get flamed for posting this twice, just a heads up lol.
But yea, what you're looking for should be in the framework and twframework apk's and jar files. I'm not big into making themes myself, I've just read up on them enough to know where things are located. Browse around the themes and apps section and there should be a how-to on editing certain parts of the framework files.
vunuts said:
You're gonna get flamed for posting this twice, just a heads up lol.
But yea, what you're looking for should be in the framework and twframework apk's and jar files. I'm not big into making themes myself, I've just read up on them enough to know where things are located. Browse around the themes and apps section and there should be a how-to on editing certain parts of the framework files.
Click to expand...
Click to collapse
Thanks for the help. Didn't mean to upset anyone i'll take a look.
phoenix2217 said:
The text underneath the toggles in the notification bar, where is that located? How do you edit that?
Just to clarify, the text under WIFI, GPS, etc etc in the notification bar, where is that located? In a jar file?
Thanks in advance!
Click to expand...
Click to collapse
If your looking for the titles below the buttons like Wi-Fi, Bluetooth GPS, etc. then I suggest you look at status_bar_expanded.xml in twframework-res.apk. This will show you the layout of the expanded status bar. You should be able to find the correct assignments there.
You have to decompile the apk in order to edit the xml in readable text, then recompile.
Good luck!
cappysw10 said:
If your looking for the titles below the buttons like Wi-Fi, Bluetooth GPS, etc. then I suggest you look at status_bar_expanded.xml in twframework-res.apk. This will show you the layout of the expanded status bar. You should be able to find the correct assignments there.
You have to decompile the apk in order to edit the xml in readable text, then recompile.
Good luck!
Click to expand...
Click to collapse
Thanks to all who responded Appreciate the help immensely. now to try it out.
cappysw10 said:
status_bar_expanded.xml in twframework-res.apk
Click to expand...
Click to collapse
Yes, that's where they are. That's how I removed them entirely.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
phoenix2217 said:
Thanks to all who responded Appreciate the help immensely. now to try it out.
Click to expand...
Click to collapse
No problem, glad to help. I'm just starting to get into theming myself.
I started out a little less ambitious with Settings.apk, didn't like the widget or the stock strings (don't they know how to code an ampersand?).
MikeyMike01 said:
Yes, that's where they are. That's how I removed them entirely.
Click to expand...
Click to collapse
Yeah, waste of valuable real estate IMO.
cappysw10 said:
No problem, glad to help. I'm just starting to get into theming myself.
I started out a little less ambitious with Settings.apk, didn't like the widget or the stock strings (don't they know how to code an ampersand?).
Click to expand...
Click to collapse
Same here, except started with swype Thanks
Sent from my SGH-I897 using XDA App
Some ROMs seem to have different buttons or in a different order... would it be possible to simply change one of them? I.e. change bluetooth to data? I rarely turn BT on
That should be easy to do but you'd need to know how the other ROM works. Decompile tw_framework-res.apk and view layout/status_bar_expanded.xml
Inside that is...
<LinearLayout androidrientation="vertical" android:id="@id/quickpanel_container"...>
<LinearLayout androidrientation="horizontal"...>
<TextView wifi><TextView BT><TextView GPS><TextView mute><TextView rotation>
</LinearLayout>
Just swap out one with the new one, then add the on and off butons to drawable-hdpi and add IDs for the new icons to values/public.xml and I think that's it.
I'd decompile yours and the one you want something out of and use WinDiff to quickly find all the differences associated with the changes. It's so much easier.
Renaming the one you're not recompiling is OK, just use the original name for the one you're going to recompile.
Related
I've been trying to change some of the text colors in a dark theme I'm working on, but I can't seem to get certain text to become white. The text I'm talking about is the black stuff in the screenshot below. I've used the color changer tool, but it doesn't seem to be able to change these colors. Either that or I'm just not finding the correct option. Can anyone help and point me in the right direction?
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The color changer tool I'm using:
http://forum.xda-developers.com/showthread.php?t=535630&highlight=white+text
mytharak said:
I've been trying to change some of the text colors in a dark theme I'm working on, but I can't seem to get certain text to become white. The text I'm talking about is the black stuff in the screenshot below. I've used the color changer tool, but it doesn't seem to be able to change these colors. Either that or I'm just not finding the correct option. Can anyone help and point me in the right direction?
Screenshot:
The color changer tool I'm using:
http://forum.xda-developers.com/showthread.php?t=535630&highlight=white+text
Click to expand...
Click to collapse
xml edits. Been 100 threads started for this same question. Please feel free to search for one of them.
Ignore the previous post, I am not sure why noobs feel a need to come on here and be a d*** when they have no clue what they are talking about. Search as you like, unless you are going to compile your own ROM from source, this cannot be accomplished through an xml edit. Though these font colors are initially in xml files, after the ROM is compiled they are in .dex files. Search for baksmali.jar, which will decode your .dex files so that you can find the proper file (there is also smali.jar to compile), then search on how to edit the .dex files. This is not easy, but can be done. To be honest, for my theme I found it to be much easier to just change to color around the font.
cloverdale said:
Ignore the previous post, I am not sure why noobs feel a need to come on here and be a d*** when they have no clue what they are talking about. Search as you like, unless you are going to compile your own ROM from source, this cannot be accomplished through an xml edit. Though these font colors are initially in xml files, after the ROM is compiled they are in .dex files. Search for baksmali.jar, which will decode your .dex files so that you can find the proper file (there is also smali.jar to compile), then search on how to edit the .dex files. This is not easy, but can be done. To be honest, for my theme I found it to be much easier to just change to color around the font.
Click to expand...
Click to collapse
or you can take 2 seconds to edit the xml file (2-3 instances of the same string) and put it in your theme tada done. Ive done it a hundred times
mytharak said:
I've been trying to change some of the text colors in a dark theme I'm working on, but I can't seem to get certain text to become white. The text I'm talking about is the black stuff in the screenshot below. I've used the color changer tool, but it doesn't seem to be able to change these colors. Either that or I'm just not finding the correct option. Can anyone help and point me in the right direction?
Screenshot:
The color changer tool I'm using:
http://forum.xda-developers.com/showthread.php?t=535630&highlight=white+text
Click to expand...
Click to collapse
Hey, if ur using cyan's rom then just run colorchange.jar....itll do this and much more
since no one will actually give you a straight answer. to change the text from black to white for those items, then you will need to edit
framework-res.apk/res/layout/status_bar_expanded.xml
framework-res.apk/res/layout/status_bar_latest_event_content.xml
also for market downloads
DownloadProvider.apk/res/layout/status_bar_ongoing_event_progress_bar.xml
change the 6 digits after 08 00 00 1C to FF FF FF to achieve the white text.
Thank you, David, for that not so useless reply.
Should be obvious to anyone who read my first post that I've already done searching and worked with the color changer BEFORE posting.
mytharak said:
Thank you, David, for that not so useless reply.
Should be obvious to anyone who read my first post that I've already done searching and worked with the color changer BEFORE posting.
Click to expand...
Click to collapse
Cm settings. Under user options u can change it also if ur using cm
Hey all, I created a dark themed version of open eclair 1.2.1 baconweave.
This is a full rom so you will need to do a full wipe before flashing.
I created this by pulling some icons from Xrom and editing the classes.dex file.
I did not build this rom so thanks to the open eclair team for an excellent 2.1 rom and I would also like to thank Justanothercrowd for the icons i pulled from his rom.
As this is my first shot at themeing I only changed the framework-res.apk and services.jar. So, this is not a full theme.
If you are already running open eclair 1.2.1 an easy way to apply my changes would be to extract the framework-res.apk and services.jar from my zip and adb push them to the appropriate locations on your mobile.
I will most likely not be updating this as it suits my needs.
I made a couple other changes to this rom.
-removed gallery3d.apk
-fixed bluetooth issue when pairing both handsfree and media audio.
As always I am not responsible for anything that happens to your device....
Download here:
http://www.4shared.com/file/226481604/cb5b6cc8/OpenEclair-DARK.html
Screens:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
oh this looks really sexy. cant wait to try it out O_O
EDIT: it's pretty cool. Love the Notification bar and the downloading down arrow. pretty sweet man. one question;
How did you change the notification bar? I know how to change the png's but not the whole thing to make it look black =(
Macrophage001 said:
How did you change the notification bar? I know how to change the png's but not the whole thing to make it look black =(
Click to expand...
Click to collapse
The only real editing I did was to change the text color to white. The rest was simply replacing the existing PNG's with the ones I pulled from justanothercrowd's Xrom dark ROM.
An easy way to see what PNG's are what is to extract them from the framework-res.apk and view them as thumbnails. I can't remember what other files I edited. When I get home I can retrace my steps and give more info later.
yeah I mean I can do that too. But most of the time when I try to make all the png's on the notification bar black, they just pop up as black squares on a white surface =/
EDIT: I think I found out how. the name of the png that changes the notification bar color is activity_title_bar.9.png right?
Macrophage001 said:
yeah I mean I can do that too. But most of the time when I try to make all the png's on the notification bar black, they just pop up as black squares on a white surface =/
EDIT: I think I found out how. the name of the png that changes the notification bar color is activity_title_bar.9.png right?
Click to expand...
Click to collapse
Ahh I see what you are saying the color of the notification background when you pull the notification bar down. Yes I believe that is the correct PNG.
EDIT: If you are trying to edit what I think you are the correct PNG would be these PNG's
http://forum.xda-developers.com/album.php?albumid=987
Yepp Those are it. Thanks for the help man.
Macrophage001 said:
Yepp Those are it. Thanks for the help man.
Click to expand...
Click to collapse
wrong info he gave you. the tabs he showed you and that you are looking for are known as status_bar_item_background_normal.9, status_bar_item_background_focused.9, and status_bar_item_background_pressed.9.
the activity_title_bar.9, which he thought was the correct png, is actually where it reads the words "Ongoing" and "Notifications" which is the activity_title_bar.9
anyway, hope that helps clarify things for you guys .
Oh ok thanks man almost got everything confused lol
Beautiful,man.
I came from SuperD-dark, and this is a perfect transition
Since you've tweaked it to meet your needs, I'll take it upon myself to do some other graphical tweaks (like smoothing out the notifications graphics. Too "sharp" for my taste).
Hi.
This thread was initially about changing the font colour which I have since achieved, but run in to a couple more issues that I can't seem to figure out. The image I've used for my notification area is set at 80% transparency in photoshop, but when viewed on the phone it's a solid image. I've tried creating a new image but get the same result.
I've used an image from my other theme which shows the transparency on my other theme but not this. I've used an image from another theme which in their screenshot shows transparency, but doesn't in mine. I thought it might be the services.jar, but having used the one from the other theme it's still the same, solid black on my phone, so I'm a little stumped?
I've also changed the stat_notify_sms image in contacts.apk, but it shows the default image when I get a message?
Like I said I'm not a noob, but could do with some pointers or suggestions?
Thanks
this helps you http://forum.xda-developers.com/showpost.php?p=4113483&postcount=2
rori~ said:
this helps you http://forum.xda-developers.com/showpost.php?p=4113483&postcount=2
Click to expand...
Click to collapse
Thanks for the link, but I've still not managed to change it. Look at the image, to add code after the next instance of 00 00 1c puts me on the next line, when I do that I just get boot loops.
Sorted it, finally. I pulled each statusbar file from layout and went through them, so I've sorted the statusbar and the notification area. Could you point me in the direction of the operator text in the notification area?
XperiaX10iUser said:
Sorted it, finally. I pulled each statusbar file from layout and went through them, so I've sorted the statusbar and the notification area. Could you point me in the direction of the operator text in the notification area?
Click to expand...
Click to collapse
should be statusbar_expanded.xml
rori~ said:
should be statusbar_expanded.xml
Click to expand...
Click to collapse
Thanks for the suggestion, but I've been through all the statusbar xml's but still no change.
What am I missing.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
its in: status_bar_expanded.xml
rori~ said:
its in: status_bar_expanded.xml
Click to expand...
Click to collapse
You're right, I couldn't see for looking.
Thanks for the assist!
Need a touch more help, in my eagerness to change the font colour I've changed something but don't know what. The image I've used for the notification backdrop I've set at 80% transparency, but on the phone it's showing as a solid image? which obviously isn't the look I'm after.
Any help as always, will be much appreciated.
XperiaX10iUser said:
Need a touch more help, in my eagerness to change the font colour I've changed something but don't know what. The image I've used for the notification backdrop I've set at 80% transparency, but on the phone it's showing as a solid image? which obviously isn't the look I'm after.
Any help as always, will be much appreciated.
Click to expand...
Click to collapse
you set 80% transp. in photoshop?
rori~ said:
you set 80% transp. in photoshop?
Click to expand...
Click to collapse
Yes, I've done the same thing I've done with other themes but for some reason it's not showing the transparency on the phone this time round...
Hi.
Had to to start from scratch due to Zdzihu releasing a beta2 for the X10, but this time round I'm having new trouble, I've edited the files but my operator text and clock is still showing black text. Can someone take a look at my files, I've checked and double checked but still I've got black text. Any help would be much appreciated.
I've attached my statusbar xmls from layout and my smali files.
Check out this thread-
http://forum.xda-developers.com/showthread.php?t=831715
Hope this helps
dully79 said:
Check out this thread-
http://forum.xda-developers.com/showthread.php?t=831715
Hope this helps
Click to expand...
Click to collapse
Thanks, but the reason I'm asking is because I have already changed my smali file to white, but see no change, where as before I did, and I've changed my files in res/layout too, and while my notifications are white, the carrier remains gray, and can't figure out why it worked before but isn't doing now.
Thanks for the link, but doesn't really help me understand what the problem is now.
XperiaX10iUser said:
Thanks for the link, but doesn't really help me understand what the problem is now.
Click to expand...
Click to collapse
Sorry, i thought point 3 might have helped.
You could try applying the original framework, see if changes apply, then re-applying your mod again.
I resolved a similar issue a few days back with that method, seems it just needed a kick up the arse.
dully79 said:
Sorry, i thought point 3 might have helped.
Click to expand...
Click to collapse
That's why I've uploaded the files hoping some could take a look because I've changed every file like I did before, but the clock and the carrier text refuses to change, and don't really want to start from scratch for a third time.
As far as i know from cooking themes for dell streak, the rom itself needs to be set to allow transparent status bar etc... i presume you're working on the x10? If so to set the rom you're bootloader would have to be unlocked to customise a deoxidised rom, then you can have transparent built into themes. Please correct me if I'm wrong, its info i have read and hopefully will help you too
tina333 said:
As far as i know from cooking themes for dell streak, the rom itself needs to be set to allow transparent status bar etc... i presume you're working on the x10? If so to set the rom you're bootloader would have to be unlocked to customise a deoxidised rom, then you can have transparent built into themes. Please correct me if I'm wrong, its info i have read and hopefully will help you too
Click to expand...
Click to collapse
Hi.
I'm not trying to make the statusbar transparent, I'm trying to make the statusbar font white, but what worked for me before just isn't working now and I can't figure it out. Any one who checks the files I've uploaded can see they have all been edited accordingly but the font colour just wont change.
The rom I'm trying mod is in beta stage 2, and the reason I'm having to start again is because the services.jar has changed from beta 1, and having changed the only instance of 0x100 in StatusBarIcon.smali, nothing is changing, so think I maybe missing something, but need a theming pro to take a look and point out what that might be. I've followed stericsons guide, I've watched TheFXNs vid, I've read dullys link, none of which are of any help with this issue, because I know I've edited what needs editing, but still stuck with black font in the statusbar.
There's a $10 or £5 donation for anyone who helps resolve this as I'm past the point of frustration now.
Take a look here
http://androidforums.com/droid-all-...notification-clock-pull-down-text-colors.html
Its a really good guide and whilst you've hit a brick wall you may find reading a different way might highlight the error
***added reference below***
also http://forum.xda-developers.com/showthread.php?t=908270
I recently have been trying to create a theme for the T-Mobile Theme Chooser that comes with CM7. I pulled the cyanbread apk and extracted it and just began to replace the images with my own, until I came across some indexed images. Basically when I open these in photoshop it turns all the alpha transparencies to opaque.
Original Image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
After import then saved:
Obviously I can't work with this.
Is there a template or something that I can work with? Or an easier way? I'm basically just taking the best parts of a couple themes and putting them together, and editing the colors. I'm not smart enough with xml to write code from scratch.
Thanks.
I use gimp. It has a setting to change the mode from "indexed" to "RBG" or "greyscale".
When I run into those, I open them in pixlr.com (a free image editor that pretty much ignores permissions), save them, then re-open in Photoshop.
iamthebigcheeze said:
When I run into those, I open them in pixlr.com (a free image editor that pretty much ignores permissions), save them, then re-open in Photoshop.
Click to expand...
Click to collapse
Thanks man, helped a ton.
Unfortunantly I keep running into speedbumps, anyone mind helping me here?
I have two themes at the moment, mine and another one. The other one replaces the widget icons in the notification bar. I like those much better than the stock cm7 ones. The problem is is that I can't just drag them and drop them from drawable folder from theirs to mine, as I'm assuming the XML in mine doesn't have any code to tell that image where to go.
How would I go about editing the xml file(s) to add support for theming of these icons? I have never really touched xml before, plus I haven't had any success finding how to edit any of the xml's in the apk.
Leave xml alone just drag and drop
Sent from my GT540 using XDA App
pashinator said:
Leave xml alone just drag and drop
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
Problem is is that the apk I'm using as a template does a ton of stuff I don't want it to, but some stuff I do.
Like it reskins the whole browser and shrinks the pop-up menu when you hold your finger on the home screen. I don't want this, and just deleting the images doesn't solve the problem because I get errors while compiling.
The only thing I really want is the ability to skin notification bar widget icons (toggle wifi, gps, etc). Haven't had much luck finding themes that do.
You still need to resign a theme.apk after replace new png files!
What key do you sign it with?
I've got a couple themes up and running right.now and would be happy to help. Do you use Linux, Mac, or windows? Do you have decompiled Apk's that you're working with or are you editing compiled ones?
With theme *.apk file, I can only replace the existing icons, then use apk manager to sign, i cannot add new icons into it!
You can check out my theme chooser guide here
nhnt11 said:
You can check out my theme chooser guide here
Click to expand...
Click to collapse
+1. I used this guide as well. It's a great help
Hi
I tried editing the lockscreen png files to get something similar to the honeycomb lockscreen. It involves replacing the jog_ png with blank ones. But a couple of things get ruined. The screenshots describe them better. I have no clue how to fix them. Could someone please assist?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How do I get rid of the right jog bar and the green and red button?
That is an incoming call screen. What does it have to do with your lockscreen? Why would you want to get rid of the buttons you need to answer a call?
No. i wasn't clear enough. Let me put it this way. I was tryig to port the honeycomb style lock screen for my froyo rom (optimus one) which involved making the jog bars transparent so that only the icon (lock, unlock, call receive, reject etc) remain.
But after I got it done that way, the lock screen works properly.. as in it shows me the buttons without the jog bar as I wanted. But when i receive a call while the screen is locked, I get whats shown in the screenshot I've already searched the framework-res.apk top to bottom to find those specific icons (the right jog bar as well as the red and green button) so that I can modify them as well.. but i'm not finding them anywhere!
Look in the drawable-finger folders of Phone.apk and Contacts.apk.
I see a lot of .pro files. are they images? How do I edit them?
blueren said:
I see a lot of .pro files. are they images? How do I edit them?
Click to expand...
Click to collapse
I have no idea what a .pro extension is.
bkmo said:
I have no idea what a .pro extension is.
Click to expand...
Click to collapse
some of them open up in 9patch editor :|
Search all .png files in your framework and view them as thumbnails. When you find these images just replace them with the images you want to use.
bizdady said:
Search all .png files in your framework and view them as thumbnails. When you find these images just replace them with the images you want to use.
Click to expand...
Click to collapse
Thanks. I already did that a hundred times over! I believe that they're in the Phone.apk
blueren said:
Thanks. I already did that a hundred times over! I believe that they're in the Phone.apk
Click to expand...
Click to collapse
Oh then your probably gonna have to decompile the apk, replace the pngs then recompile.
now im curious lol If you havent resolved this by the time I get home ill take a look. Im pretty sure you can just replace the images with 7zip and push back with adb.
bizdady said:
Oh then your probably gonna have to decompile the apk, replace the pngs then recompile.
now im curious lol If you havent resolved this by the time I get home ill take a look. Im pretty sure you can just replace the images with 7zip and push back with adb.
Click to expand...
Click to collapse
Bingo! But as I already mentioned, all the pngs are in .pro format. Renaming them to png ruins it