Hi!
I try make my own theme but i have one question... How to edit pngs like textfield_search_selected.9.png in framework-res/res/drawable-mdpi? When I normally edit this file by GIMP in phone this file is very extended...
P.s. Sorry for my bad English http://translator.telewizor.eu ;]
1. Use apktool to decode it.
or:
2. Use different image editor. I think Paint from Windows 7 and Photoshop don't break 9.png files.
I can't use apktool because this .apk doesn't have class.dex file... But i try with photoshop tommorow...
P.s. I tak btw jesteś z polski a odpisujesz po angielsku
http://forum.xda-developers.com/showthread.php?t=605662
Related
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.
Well, i actually cook the ROM MIUI for the SGS I9000 at miui.es and i was having a little fight with themes a few months ago. I allways stop at the same point, its so esay to compile previously decompiled .9.png, but what happens with compiled ones?
So here it's my solution, based on the grat idea of @tommytomatoe and his tool forMac OS X. It's called 9patchPngSuite and it let's you decompile, compile and launch draw9patch without the need of install android SDK.
How it works?
Easy, for every one in miui.es teamwork its not new its similar to other scripts i made, for the rest:
Windows
unzip 9patchPngSuite.zip in your prefered folder and double click on menu.bat
Linux
Unizip 9patchPngSuite.tar.gz in your prefered folder
give execution permissions (usually chmod 777)
type ./menu
Will show us 4 options
****************************
9patchPngSuite
v1 Windows edition
---------------------------------
by kakomalo...
thx @Xxfoc miui.es
and @tommytomatoe xda.com
****************************
1.Decompile *.9.png in Compiled folder (will clean decompiled folder)
2.Launch draw9patch (drag and drop files)
3.Compile RAW *.9.pnd in Decompiled folder (new created in output folder)
4.Info on draw9patch
x.Exit
Select option:
It's no so hard to understand but...
1.Decompile *.9.png in Compiled folder (will clean decompiled folder)
Decompile all .9.png in compiled folder, don't care if it's other kind of png or file, only works with .9.png.
2.Launch draw9patch (drag and drop files)
Launch draw9patch, drag & drop files on it to edit. It's no needed to be installed android SDK tools, it's on tools folder
3.Compile RAW *.9.pnd in Decompiled folder (new created in output folder)
Compile all .9.png in decompiled folder, don't care if it's other kind of png or file, only works with .9.png, and let the new compiled ones in output folder.4.Info on draw9patch
Open thefault browser and goes to http://code.google.com/p/android-apktool/wiki/9PatchImages
You have seen it's no difficult to use, i hope you like it.
Special thanks to @Xxfoc from miui.es for give me the idea, @tommytomatoe for his Mac OS X tool and brut.all for the work.
Download - Windows
Download - Linux
Spanish thread on miui.es or htcmania.com
Thanks for this! Can't wait to try it out when I'm back at my laptop
Sent from my Nexus S 4G using Tapatalk
Thank brutha
Excellent! Thanks.
Thanks i get a error on compile system cannot find file or folder.
ngagephone said:
Thanks i get a error on compile system cannot find file or folder.
Click to expand...
Click to collapse
Im not sure what do you try but, if its an error compiling .9.png make sure you have the descompiled & patched files in "decompiled" folder, before use option 3 in the menu.
Big thanks !
Very fast to edit .9.png now
This is a huge help, thank you.
The download links are down.
From where I could download?
Un saludo
Interested in working links aswell, as that tool sounds like the solution to my current problems
Link not work. ;(
Sent from my GT-S5830 using xda premium
Found a working link here if the author doesn't mind.
EddieFAF said:
Found a working link here if the author doesn't mind.
Click to expand...
Click to collapse
Thanks!!!
Enviado desde mi GT-I9100
Just like to say a big thanks for the 9patchPngSuite - it's saving me loads of time.
I had no problem recompiling edited .9.pngs using xUltimate-d9pc but it was a pain to have to decompile an apk just to edit a couple of .9.pngs
Working link please
Someone, please give working link to download this tool. Thanks!
I use cm7 nightly,i want to custom a theme,
is there everyone who can give me a link? thx a lot~~
Copy the base theme apk file from system app to your pc (you can even use any cm7 rom's theme as base).
Then, on your pc, go to UOT Kitchen to mod it. You'll need to upload the base theme. Wait, pick up your modded theme, put it in system/app or flash the UOT zip from recovery and use theme chooser to select it.
dxppxd said:
Copy the base theme apk file from system app to your pc (you can even use any cm7 rom's theme as base).
Then, on your pc, go to UOT Kitchen to mod it. You'll need to upload the base theme. Wait, pick up your modded theme, put it in system/app or flash the UOT zip from recovery and use theme chooser to select it.
Click to expand...
Click to collapse
thx (-:,but i have a question,Can i upload my own picture?
tymico said:
thx (-:,but i have a question,Can i upload my own picture?
Click to expand...
Click to collapse
You mean the UOT picture? On your pc, use winrar or 7zip to open the theme apk file. Inside res/drawable are the graphics. Locate the UOT graphic, edit it.
Then drag your modified graphic into the winrar or 7zip window where you have the apk openned (if you extract and repackage the contents it gets messed up, thats why you drag and replace).
Same applies for any other graphics edits, as long as you keep the originals' resolution, format, and name.
dxppxd said:
You mean the UOT picture? On your pc, use winrar or 7zip to open the theme apk file. Inside res/drawable are the graphics. Locate the UOT graphic, edit it.
Then drag your modified graphic into the winrar or 7zip window where you have the apk openned (if you extract and repackage the contents it gets messed up, thats why you drag and replace).
Same applies for any other graphics edits, as long as you keep the originals' resolution, format, and name.
Click to expand...
Click to collapse
La tua spiegazione e' bellissimo e molto specificata ,grazie mille! my english is not good ,but i have to say thank you~
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.
Hey!
Found a battery indicator for iOS devices with Cydia and searched for android but i didn't find. So as i know we can change battery indicator in Emui with simple theme. But i don't know how to do.
Anyone can do that or teach me how to do?
I have rooted MHA-L29C432
Sorry if i made a misspell. I am from Turkey so i don't have a very good English. I am also new at here.
I cant post link or photo so u can search on google images by writing this: Zelda inspired hearts battery indicator
Katpiss said:
Hey!
Found a battery indicator for iOS devices with Cydia and searched for android but i didn't find. So as i know we can change battery indicator in Emui with simple theme. But i don't know how to do.
Anyone can do that or teach me how to do?
I have rooted MHA-L29C432
Sorry if i made a misspell. I am from Turkey so i don't have a very good English. I am also new at here.
I cant post link or photo so u can search on google images by writing this: Zelda inspired hearts battery indicator
Click to expand...
Click to collapse
hi...i can teach you...but you need a pc...and a sample theme...you can get the sample theme from play store (pure AOSP) or any theme.
after installing the theme copy the theme to pc...you can find it in hwthemes folder.
use WinRAR to open the .hwt file.
now find (com.android.systemui)
drag it outside the hwt and use WinRAR to open (com.android.systemui)
after that...you need a renaming tool...i use bulk extension changer... extract the res folder and use the above mentioned tool to change all the .xml files to .png
after that...
open your favorite image editing software (Photoshop or any similar software)
make the battery shape that you like.
and save it...
you can use the sample theme for guidance...for percentage and other stuff.
after saving your desired battery shape use the renaming tool to change all the .png files to .xml(Not .XML) and put them where they were before (inside the .hwt file)
Copy the theme and apply it... reboot your phone and voila...
remember... it's not an easy job...you have to do some tinkering to make it look good.
i hope that helps you... enjoy
Sent from my PRA-LA1 using Tapatalk
hamzio7 said:
hi...i can teach you...but you need a pc...and a sample theme...you can get the sample theme from play store (pure AOSP) or any theme.
after installing the theme copy the theme to pc...you can find it in hwthemes folder.
use WinRAR to open the .hwt file.
now find (com.android.systemui)
drag it outside the hwt and use WinRAR to open (com.android.systemui)
after that...you need a renaming tool...i use bulk extension changer... extract the res folder and use the above mentioned tool to change all the .xml files to .png
after that...
open your favorite image editing software (Photoshop or any similar software)
make the battery shape that you like.
and save it...
you can use the sample theme for guidance...for percentage and other stuff.
after saving your desired battery shape use the renaming tool to change all the .png files to .xml(Not .XML) and put them where they were before (inside the .hwt file)
Copy the theme and apply it... reboot your phone and voila...
remember... it's not an easy job...you have to do some tinkering to make it look good.
i hope that helps you... enjoy
Sent from my PRA-LA1 using Tapatalk
Click to expand...
Click to collapse
Thanks mate. Have a great day!
hamzio7 said:
hi...i can teach you...but you need a pc...and a sample theme...you can get the sample theme from play store (pure AOSP) or any theme.
after installing the theme copy the theme to pc...you can find it in hwthemes folder.
use WinRAR to open the .hwt file.
now find (com.android.systemui)
drag it outside the hwt and use WinRAR to open (com.android.systemui)
after that...you need a renaming tool...i use bulk extension changer... extract the res folder and use the above mentioned tool to change all the .xml files to .png
after that...
open your favorite image editing software (Photoshop or any similar software)
make the battery shape that you like.
and save it...
you can use the sample theme for guidance...for percentage and other stuff.
after saving your desired battery shape use the renaming tool to change all the .png files to .xml(Not .XML) and put them where they were before (inside the .hwt file)
Copy the theme and apply it... reboot your phone and voila...
remember... it's not an easy job...you have to do some tinkering to make it look good.
i hope that helps you... enjoy
Click to expand...
Click to collapse
I made it, but there is a problem. It doesn't change when its 5% Ex: %35. Can i make them change at 5%?
yes...i think you didn't save(edit or change) the 5% one. go edit it and put it inside the theme
Sent from my PRA-LA1 using Tapatalk
---------- Post added at 01:53 PM ---------- Previous post was at 01:49 PM ----------
for percentage it goes like this: 5-10-20-30-40-50-60-70-80-90-95-100
you can't edit this or change how it deals with the percentage
Sent from my PRA-LA1 using Tapatalk