[Q] System font color - Captivate Q&A, Help & Troubleshooting

Does anyone know how to change system font color? It would be awsome if someone could figure it out or knew how to already. Im on Fasty 2.5 if that means anything lol.

you need apk manager to decompile framework-res.apk to get to the
the xmls and you will need notepad++ to edit them.
they are located here: framework-res.apk/res/color/
zzz_tw_primary_text_dark
zzz_tw_primary_text_light
zzz_tw_secondary_text_sub

Thanks i was able to decompile the framework apk. Lest say i wanted to change the color of the font to red. How might i go about doin that. PS ive looked at the do it your self theming stickys and posts but its a little complicated. Thank you so much for taking the time to help.

studacris said:
you need apk manager to decompile framework-res.apk to get to the
the xmls and you will need notepad++ to edit them.
they are located here: framework-res.apk/res/color/
zzz_tw_primary_text_dark
zzz_tw_primary_text_light
zzz_tw_secondary_text_sub
Click to expand...
Click to collapse
I was able to decompile the xmls but with notepad++ I am still getting nothing. I am using Windows 7.

Related

[Q] How to mod framework-res.apk and twframework-res.apk

Hi guys,
Wondering if someone can give me some clear directions how to add battery icons (knowing that the resource IDs of the images are not stored in public.xml - it doesn't exist in samsung's framework-res.apk) and how can I change text colors (basically replace black with white and vice versa) and where should I change these values.
Thanks a lot!
Common themers, I know you know, you just don't wanna share
Joking I would really like to start themeing as well and these are the only 2 issues that I have at the moment.
icezar1 said:
Common themers, I know you know, you just don't wanna share
Joking I would really like to start themeing as well and these are the only 2 issues that I have at the moment.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=724778
Get apk manger.I'm trying to do this too.
Hm, I did, I de-compiled the apk but did not want to compile back. Probably the images are not Draw 9-patch-ed. However, I still need to find out how to change the text color...
icezar1 said:
Hm, I did, I de-compiled the apk but did not want to compile back. Probably the images are not Draw 9-patch-ed. However, I still need to find out how to change the text color...
Click to expand...
Click to collapse
find you find out before keep me updated, and i'll do the same.
icezar1 said:
Hi guys,
Wondering if someone can give me some clear directions how to add battery icons (knowing that the resource IDs of the images are not stored in public.xml - it doesn't exist in samsung's framework-res.apk) and how can I change text colors (basically replace black with white and vice versa) and where should I change these values.
Thanks a lot!
Click to expand...
Click to collapse
You can change the battery icons in the framework-res.apk [look in the res/drawable hdpi/stat_sys_battery_x.png
and to change the text color: I was trying to figure that one out last week....From what I figured out you need to modify:
res/layout/status_bar_latest_event_content.xml
Which is found in your framework-res.apk aswell....Decomplie-edit-recomplie....
Good luck
what program are you using to edit your xml's?
chaosjh said:
what program are you using to edit your xml's?
Click to expand...
Click to collapse
apk_manager_4.9 to decomplie-recomplie. Then use notepad to edit
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
If your just wanting to do simple changes (no .xml edits)
You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.
Then copy/paste the new images over the old ones inside of WinRar.
Close.. and install.
But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say
No way..
OK, just decompiled-added icons from other decompiled framework-recompiled, no xml edits-installed. Look is changed, battery icons now displaying fine but... force closes and restarts the shell in less than 20 secs...
yup try the winrar method - there is no decompiling.. just copies the images into the *.apk
And shouldn't have any FC's if you try that method.
avgjoegeek said:
If your just wanting to do simple changes (no .xml edits)
You can use WinRar to open the framework-res.apk and find the *.png's you want to replace.
Then copy/paste the new images over the old ones inside of WinRar.
Close.. and install.
But thats for quick and dirty changes. For more intricate stuff - animations etc. that require *.xml edits - do what the above folks say
Click to expand...
Click to collapse
Yeah i changed icon with winRar, and all kinds of crazy stuff happed. Loop boots,and Fc
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
Sent from my SAMSUNG-SGH-I897 using XDA App
fritzgerald said:
Have you guys figured out the text color yet? If you haven't let me know what text you're trying to change and I'll write something up in a few hours when I get off work.
Sent from my SAMSUNG-SGH-I897 using XDA App
Click to expand...
Click to collapse
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
dfuse06 said:
i have tried for to days now to get these android faces icon for the battery.I've use winRar and it worked good for a few hours, but when i used cwm to backup my system on reboot it boot loop. I got apk manger and everytime I try to compile the apk there is a error.Oh changing the text color would be cool too!
Click to expand...
Click to collapse
Shoot me a link to the icons you're trying to use. What ROM are you using(name & version). What text are you looking to change? There's not one global change to make all the text different I'll need to know what specifically you're trying to change.
I use the uot kitchen you get the icon on perception 7,but im on 8 now. I'm running perception 7 darknees 2.3 theme, and that is what i'm trying to get the icons on its the battery icon of the android smiley faces it is version j with white numbers. i'm going to look for a link for them.i have the framwork-res.apk with them in it.
When you recompile with APK Manager, a couple of things are very important to do:
1. Hit yes to "system app".
2. Hit yes to restoring the files:
-Open the "keep" folder and delete resources.arsc. Then delete anything you changed (if it's there).
3. Do NOT sign it.
It should work.
PuffinNugz said:
i change icons and stuff in framework by just using 7zip. No need to decompile or sign, or any of that. Super easy. Not sure about changing text color, tho.
Click to expand...
Click to collapse
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
TheEscapist said:
Do you just individually edit each icon? Cause I can't find a way to copy in a folder. I'm pulling the icons from the 2.3 framework, but i just want to copy over the drawable folders for now.
Click to expand...
Click to collapse
I just dragged the images from a particular themes framework and dropped them to the new one all within 7zip.

Theme for volume bar

Hey guys, I need a little help finishing the the pieced together theme I'm putting together for my phone running Axura. I've got everything looking the way I want, except for the volume bars. I want them to be orange, and I know I've had them that way before. Can anybody tell me which files change them, and which theme I can grab the orange files out of to finish mine?
dontshakepandas said:
Hey guys, I need a little help finishing the the pieced together theme I'm putting together for my phone running Axura. I've got everything looking the way I want, except for the volume bars. I want them to be orange, and I know I've had them that way before. Can anybody tell me which files change them, and which theme I can grab the orange files out of to finish mine?
Click to expand...
Click to collapse
I don't know where you'd find the files for the orange bars but the files to edit are framework-res.apk and twframework-res.apk. You'll need to decompile them with APK Manager or apktool since you need to edit XML files in them.
framework-res.apk:
framework-res/res/drawable/progress_horizontal.xml
twframework-res.apk:
twframework-res/res/drawable/tw_progress.xml
twframework-res/res/drawable/tw_progress_horizontal.xml
twframework-res/res/drawable/tw_progress_secondary.xml
Hope this helps.
fritzgerald said:
I don't know where you'd find the files for the orange bars but the files to edit are framework-res.apk and twframework-res.apk. You'll need to decompile them with APK Manager or apktool since you need to edit XML files in them.
framework-res.apk:
framework-res/res/drawable/progress_horizontal.xml
twframework-res.apk:
twframework-res/res/drawable/tw_progress.xml
twframework-res/res/drawable/tw_progress_horizontal.xml
twframework-res/res/drawable/tw_progress_secondary.xml
Hope this helps.
Click to expand...
Click to collapse
Thank you sir. I just swapped the framework-res files from the ones in the minimalistic theme and got what I needed.

Help, any alternative to apktool

Hi can anyone suggest an alternative tool for apktool. It just doesn't work for me. Whatever I do either gives compiling errors or just a bootloop. Thanks guys.
It's nice to know I'm not the only one. Anything past extract optimize and zip is useless for me. I have never had it actually compile an .apk without an error.
I'm having serious problems compiling the framework-res from a CM6.1 based ROM. It decompiles fine, but won't recompile I get hundreds of errors about missing referances.
I only wanna edit a few XML's :sad:
Sent from my HTC Hero using Tapatalk
l0st.prophet said:
I'm having serious problems compiling the framework-res from a CM6.1 based ROM. It decompiles fine, but won't recompile I get hundreds of errors about missing referances. I only wanna edit a few XML's :sad: Sent from my HTC Hero using Tapatalk
Click to expand...
Click to collapse
Which xmls do you want to edit, and what are you wanting to change?
dean.d said:
Which xmls do you want to edit, and what are you wanting to change?
Click to expand...
Click to collapse
Thanks for replying, but I worked it out. I had some dodgy .9.png's that were breaking the compile, so I just had to remove them before compiling.
For anyone else having trouble, check the logs after you decompile to see if there are any messages about .9.pngs. If there are, remove them from the decompiled folder, compile when you are finished, then just add the .9.png's back in afterwards with WinRAR.
I was tryna change the color of the text and the border in the bottom popup menu for my Gingerbread theme
l0st.prophet said:
Thanks for replying, but I worked it out. I had some dodgy .9.png's that were breaking the compile, so I just had to remove them before compiling.
For anyone else having trouble, check the logs after you decompile to see if there are any messages about .9.pngs. If there are, remove them from the decompiled folder, compile when you are finished, then just add the .9.png's back in afterwards with WinRAR.
I was tryna change the color of the text and the border in the bottom popup menu for my Gingerbread theme
Click to expand...
Click to collapse
The reason that happens is the original "dev" who themed the framework did not decompile/modify/recompile. He merely dragged and dropped the modified .9.png
Hence when u decompile, apktool cannot find the necessarry data within resources.arsc to decompile the .9.png and hence when u go to recompile, it complains. Ur safest bet is to always decompile an apk as close to stock as possible.
Where do you place your framework-res.apk I placed mine in the platform tools folder but apktool can not find it

[Q] How to edit softkey images?

How in the world do you edit the softkey images in CM7? I would love to know and I am sure a lot of other people do to. I couldn't find a thread about it.
They are in the systemui.apk IIRC, the easiest way to edit them would be to via a theme chooser theme, you can take a theme you like and decompile it and just swap out the files and then recompile and sign it.
you can use a program like this http://forum.xda-developers.com/showthread.php?t=1053227
or this http://forum.xda-developers.com/showthread.php?t=695701

[Q] OnOffTools background ?

I've decompiled OnOffTools.apk but I don't find the png image of the widgets background in drawable-xhdpi...
Any idea where I can fing this png ?
Thanks in advance.
how does your /res/...folders look?
there should be the pngs...hdpi,mdpi,xhdpi folder and more
i tried it out,i see them
i see there pngs like minimised_plate.png, plate.png, plate_pressed.png and all the icon.png's
see my png file,thats in drawable-xhdpi folder
is it, what you ask for?
edit:
i saw you asked the same in the honami home thread? so i guess you mean the onofftools.apk from that honami.zip?
i decompiled, and there isnt plate.png's...you are right.
is it transparent?
immerblind said:
how does your /res/...folders look?
there should be the pngs...hdpi,mdpi,xhdpi folder and more
i tried it out,i see them
i see there pngs like minimised_plate.png, plate.png, plate_pressed.png and all the icon.png's
see my png file,thats in drawable-xhdpi folder
is it, what you ask for?
edit:
i saw you asked the same in the honami home thread? so i guess you mean the onofftools.apk from that honami.zip?
i decompiled, and there isnt plate.png's...you are right.
is it transparent?
Click to expand...
Click to collapse
Yes, I use the honami onofftools.apk. The widget backgroung is white. There's plate.9.png in /res/drawable/nodpi. I hope it's the good one.
Thanks.
OnOffTools.apk\res\drawable-nodpi\plate.9.png
dully79 said:
OnOffTools.apk\res\drawable-nodpi\plate.9.png
Click to expand...
Click to collapse
Thanks.
I've modified plate.9.png (just applied negative filter on the white part), refashed OnOffTools.apk, but Xperia home FC when I try to add the widgets.
However, since it is a 9 patch png, I've left the image border unchanged...
When you saved the image did you save it as a .9.png and not a standard .png?
It works fine in my UFT zip
dully79 said:
When you saved the image did you save it as a .9.png and not a standard .png?
It works fine in my UFT zip
Click to expand...
Click to collapse
No. I use Gimp 2.8 or PaintShop Pro and they don't propose saving as .9.png...
nreuge said:
No. I use Gimp 2.8 or PaintShop Pro and they don't propose saving as .9.png...
Click to expand...
Click to collapse
A lot of the time photoshop doesn't.
I usually copy out the images im editing to another folder, make my edits and then when saving double click the image in the new folder to pick up the full name including .9
I use a USB stick as my workbench so i can drag and drop without moving and overwriting things unless i want to.
dully79 said:
A lot of the time photoshop doesn't.
I usually copy out the images im editing to another folder, make my edits and then when saving double click the image in the new folder to pick up the full name including .9
I use a USB stick as my workbench so i can drag and drop without moving and overwriting things unless i want to.
Click to expand...
Click to collapse
Yes, I've renamed my new image with .9.png extention and I'm really think that my new .9.png is good. Then, I've use Winrar to replace the png in OnOffTools.apk. Actually, Xperia home FC because my new OnOffTools.apk does not want to install...
I'll try to recompile OnOffTools.apk instead of using Winrar.
oh you not use apktool for decompile and recompile?
i recommend using it. its quiet easy after you setup everything
i normally open the 9.png with photoshop,then i edit and keep the black borders like it was, i not touch frame.just change color or whatever.then i just save it. (same file) its the best to edit the stock files. i think better than replace with others. just my experience
(for example open stock.9.png in drawable folder, then edit it, and override/save the file same place...)
oii,im not sure, was that understandable english?
also at beginning i got errors, only while i painted wrong accidentally some pixels in 9.png files. you sure you not touch the borders?
edit: i read u tried recompiling? have some errors while recompiling?
more edit: i remember something, after recompiling you put META-INF and AndroidManifest.xml from the stock OnOffTools.apk inside your new compiled apk?
nreuge said:
Yes, I've renamed my new image with .9.png extention and I'm really think that my new .9.png is good. Then, I've use Winrar to replace the png in OnOffTools.apk. Actually, Xperia home FC because my new OnOffTools.apk does not want to install...
I'll try to recompile OnOffTools.apk instead of using Winrar.
Click to expand...
Click to collapse
Dont bother messing with apks, use UFT.zip, you can find a link and details in my thread in the theme section(basic theming guide).
immerblind said:
oh you not use apktool for decompile and recompile?
i recommend using it. its quiet easy after you setup everything
i normally open the 9.png with photoshop,then i edit and keep the black borders like it was, i not touch frame.just change color or whatever.then i just save it. (same file) its the best to edit the stock files. i think better than replace with others. just my experience
(for example open stock.9.png in drawable folder, then edit it, and override/save the file same place...)
oii,im not sure, was that understandable english?
also at beginning i got errors, only while i painted wrong accidentally some pixels in 9.png files. you sure you not touch the borders?
edit: i read u tried recompiling? have some errors while recompiling?
Click to expand...
Click to collapse
Sucess!!
Firstly, I didn't succeed in recompliling because my 9.png was wrong. Now, the recompiling is working so the 9.png is ok.
The Winrar method don't seem to work all the time because I've use it with the good 9.png and then after fashing Xperia home FC.
Thanks for your help.
I would also suggest using apkmanager or multitool as they provide an log to check for errors.

Categories

Resources