[HELP] Theme Code Editing - Nexus 5 Q&A, Help & Troubleshooting

Hi, I want to edit a theme.apk that I'm using. In the screenshots I highlighted what I want to edit.
Screenshot 1: I want to edit the colors of the two kind of highlighted text.
Screenshot 2: I want to find and edit (maybe with Paint) highlighted images.
1:
2:
I tried to extract the APK and I think color codes are in ..\res\values\colors.xml but I don't know which code I have to edit.
This is the file: DOWNLOAD ( VIEW VERSION )
Thank you!

riki075 said:
Hi, I want to edit a theme.apk that I'm using. In the screenshots I highlighted what I want to edit.
Screenshot 1: I want to edit the colors of the two kind of highlighted text.
Screenshot 2: I want to find and edit (maybe with Paint) highlighted images.
1:
2:
I tried to extract the APK and I think color codes are in ..\res\values\colors.xml but I don't know which code I have to edit.
This is the file: DOWNLOAD ( VIEW VERSION )
Thank you!
Click to expand...
Click to collapse
2. QS text color is managed by a style from SystemUI. You won't find anything into colors.xml

Primokorn said:
2. QS text color is managed by a style from SystemUI. You won't find anything into colors.xml
Click to expand...
Click to collapse
But It change when I apply the theme

riki075 said:
But It change when I apply the theme
Click to expand...
Click to collapse
The theme changes the tiles. Nothing weird. The color is just defined into styles.xml and not colors.xml

Primokorn said:
The theme changes the tiles. Nothing weird. The color is just defined into styles.xml and not colors.xml
Click to expand...
Click to collapse
I found "folder_icon_title_text" and "folder_title_text" in colors.xml
Code:
<color name="folder_icon_title_text">#ffffffff</color>
<color name="folder_title_text">#ff33b5e5</color>
#ffffffff is white and 33b5e5 is light blue, but in the screenshot the two colors aren't those. What do you think?

riki075 said:
I found "folder_icon_title_text" and "folder_title_text" in colors.xml
Code:
<color name="folder_icon_title_text">#ffffffff</color>
<color name="folder_title_text">#ff33b5e5</color>
#ffffffff is white and 33b5e5 is light blue, but in the screenshot the two colors aren't those. What do you think?
Click to expand...
Click to collapse
Here is how I change the color if the tile text through systemui:
Code:
<style name="TextAppearance.StatusBar.Expanded.Network.EmergencyOnly" parent="@android:style/TextAppearance" />
<style name="TextAppearance" />
<style name="TextAppearance.QuickSettings" parent="@style/TextAppearance" />
<style name="TextAppearance.QuickSettings.TileView" parent="@style/TextAppearance.QuickSettings">
<item name="android:textSize">12.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">#ff111111</item>
<item name="android:textAllCaps">true</item>
<item name="android:paddingStart">6.0dip</item>
<item name="android:paddingEnd">6.0dip</item>
</style>

Related

[Q] Help! Cant edit app

I can just edit the pngs and the .9.pngs and everything goes fine. I can install and everything works perfectly except the font is too dark on the widget so you cant see it. I am wanting to change the font on the venues widget to white not black. If you look at the styles.xml there are 3 instances that are there and they are as follows:
HTML:
<style name="TextViewStyleVenueActivityTodoHere">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black_end</item>
</style>
<style name="TextViewStyleAddTipTodoActivityBold">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black_end</item>
</style>
<style name="TextViewStyleAddTipTodoActivityNormal">
<item name="android:textSize">14.0dip</item>
<item name="android:textColor">@color/black_end</item>
</style>
I am changing black_end to white. that is all I am changing. Anyone offer any assistance with this? Attached in the zip is the original apk and the pngs (yes I ran the 9patch on the .9.pngs) that I have edited and the styles.xml file is in res/values
The app compiles, signs, and installs fine, but will FC as soon as I try to open it. I also attached the adb log from trying to open the app if anyone can decipher that. lol
Any help would be GREATLY appreciated.

Tutorial How to change setting background

Tutorial How to change setting background In my themes
http://www.mediafire.com/?49f25u9n0y9s75u
1.download the attached zip
2.Right click the zip open it with winrar
3.A new window open in winrar then browse vrtheme/system/framework/framework-res.apk/res/drawable-hdpi
There you will see a background_own.png now replace it with yours image[make sure it is a.png image and name as background_own]
4.Close the winrar copy this zip to your sd card and flash as always
Thanks tarun for the tutorial.
But can you share the tutorial from scratch? Because just replacing the png on a stock framework-res won't work right?
So if you can then can you explain which xml or smali are to edited?
Sent from my GT-I9003 using xda premium
really thanx buddy. It will help me a lot to play more with my phone
exctngdude said:
Thanks tarun for the tutorial.
But can you share the tutorial from scratch? Because just replacing the png on a stock framework-res won't work right?
So if you can then can you explain which xml or smali are to edited?
Sent from my GT-I9003 using xda premium
Click to expand...
Click to collapse
Try this:
1. Decompile framework-res.apk
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_dark</item>
with
<item name="windowBackground">@drawable/mybackground</item>(if u need an image as background)
<item name="windowBackground">@color/white</item>(if u need a color as background)
6. Locate <style name="Theme.Black" parent="@style/Theme">
7. Replace
<item name="colorBackground">@color/black</item>
with
<item name="colorBackground">@color/transparent</item>
8. Replace
<item name="windowBackground">@color/black</item>
with
<item name="windowBackground">@drawable/mybackground</item>(if u need an image as background)
<item name="windowBackground">@color/white</item>(if u need a color as background)
9. Create a 240x400 png to your liking, name it mybackground.png and place it in drawable, drawable-ldpi, drawable-mdpi folder
9. Recompile framework-res.apk
NOTE: U can give any color which is available in res/values/color.xml.
Sent from my GT-I9003 using XDA App
Nice work tarunagg
Thanks a lot. which tools do you recommend to decompile the apk and to edit the.xml?
jaskiratsingh said:
Try this:
1. Decompile framework-res.apk
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_dark</item>
with
<item name="windowBackground">@drawable/mybackground</item>(if u need an image as background)
<item name="windowBackground">@color/white</item>(if u need a color as background)
6. Locate <style name="Theme.Black" parent="@style/Theme">
7. Replace
<item name="colorBackground">@color/black</item>
with
<item name="colorBackground">@color/transparent</item>
8. Replace
<item name="windowBackground">@color/black</item>
with
<item name="windowBackground">@drawable/mybackground</item>(if u need an image as background)
<item name="windowBackground">@color/white</item>(if u need a color as background)
9. Create a 240x400 png to your liking, name it mybackground.png and place it in drawable, drawable-ldpi, drawable-mdpi folder
9. Recompile framework-res.apk
NOTE: U can give any color which is available in res/values/color.xml.
Sent from my GT-I9003 using XDA App
Click to expand...
Click to collapse
Uan_ar said:
Thanks a lot. which tools do you recommend to decompile the apk and to edit the.xml?
Click to expand...
Click to collapse
Use apk manager to decompile
And notepad++ to edit files
send from gt-i9003 using android keyboard
tarunagg said:
Tutorial How to change setting background In my themes
http://www.mediafire.com/?49f25u9n0y9s75u
1.download the attached zip
2.Right click the zip open it with winrar
3.A new window open in winrar then browse vrtheme/system/framework/framework-res.apk/res/drawable-hdpi
There you will see a background_own.png now replace it with yours image[make sure it is a.png image and name as background_own]
4.Close the winrar copy this zip to your sd card and flash as always
Click to expand...
Click to collapse
how about other theme? beside urs.
Followed the steps but i cant change the background...
Thank you very much!! I did everything but didn't work for me...
1. Download .rar
2. Open vrtheme/system/framework/framework-res.apk/res/drawable-hdpi and replace that png with another one with the same size and with the same name
3. Flash in CWM
An advice, you could edit the updater-script, because when u are flashing it, it says "get prepared for ICS world" lol.
luiseteyo said:
Thank you very much!! I did everything but didn't work for me...
1. Download .rar
2. Open vrtheme/system/framework/framework-res.apk/res/drawable-hdpi and replace that png with another one with the same size and with the same name
3. Flash in CWM
An advice, you could edit the updater-script, because when u are flashing it, it says "get prepared for ICS world" lol.
Click to expand...
Click to collapse
i always do same thing. It worked perfectly for me.
really thanx buddy. It will help me a lot to play more with my phone
does it work on xxkpu
Dear Tarunagg,
How i want changed font colour if i used this background
Sent from my GT-I9100G using XDA
Dear Tarunagg,
How i want changed font colour if i used this background
Sent from my GT-I9100G using XDA
Thanks! Worked for me!
Sent From My Galaxy SL
brothers if you can help me to change the color of progress ram in setting.apk base jelly bean unofficial 4.2.2

[Q][HARD] App XML Font Color Editing

Hey guys I am trying to edit the mms.apk so that all the text color is cyan. I have NinjaMorph but I don't know which xml file the text part is in. My question is where the xml file is so i can edit it.
The drawables.xml has the following values:
Code:
<item type="drawable" name="text_color">#ffffffff</item>
<item type="drawable" name="text_color_red">#ffff0000</item>
<item type="drawable" name="text_color_black">#ff000000</item>
<item type="drawable" name="text_color_offwhite">#55ffffff</item>
<item type="drawable" name="text_color_green">#ff00ff00</item>
Have you tried those?
wewoapsiak said:
The drawables.xml has the following values:
Code:
<item type="drawable" name="text_color">#ffffffff</item>
<item type="drawable" name="text_color_red">#ffff0000</item>
<item type="drawable" name="text_color_black">#ff000000</item>
<item type="drawable" name="text_color_offwhite">#55ffffff</item>
<item type="drawable" name="text_color_green">#ff00ff00</item>
Have you tried those?
Click to expand...
Click to collapse
Where is that xml file in the .apk?
Mms.apk\res\values
You have to decompile the apk for values subfolder to be viewable. When compiled this along with a bunch of other stuff gets "hidden" and lumped into the resources.arsc file.
wewoapsiak said:
Mms.apk\res\values
You have to decompile the apk for values subfolder to be viewable. When compiled this along with a bunch of other stuff gets "hidden" and lumped into the resources.arsc file.
Click to expand...
Click to collapse
Stupid me forgot to decompile
wewoapsiak said:
The drawables.xml has the following values:
Code:
<item type="drawable" name="text_color">#ffffffff</item>
<item type="drawable" name="text_color_red">#ffff0000</item>
<item type="drawable" name="text_color_black">#ff000000</item>
<item type="drawable" name="text_color_offwhite">#55ffffff</item>
<item type="drawable" name="text_color_green">#ff00ff00</item>
Have you tried those?
Click to expand...
Click to collapse
Just making sure but I edit all of the text colors to the cyan code (#00FFFF) to make all text a cyan text color right?
You have to add transparency (alpha) code to the beginning of the setting. Cyan would be:
#ff00ffff
I've never messed with the mms.apk, but I think these should be the values you need to change.
wewoapsiak said:
You have to add transparency (alpha) code to the beginning of the setting. Cyan would be:
#ff00ffff
I've never messed with the mms.apk, but I think these should be the values you need to change.
Click to expand...
Click to collapse
But do I edit every text code in the xml to #ff00ffff?
Yeah I got nothing on which one to change. Just keep trying until you get what you want.
Woah I can't compile my apk with APK Manager, Im getting an error. Any help?
thor6577 said:
Woah I can't compile my apk with APK Manager, Im getting an error. Any help?
Click to expand...
Click to collapse
What error? I just changed all the values I listed above then recompiled perfectly. Selected yes for system apk, then yes for the error question, deleted the resources.arsc, then continued.
Also the styles.xml has the following value that might help you if the above ones don't
<item name="android:textColor">?android:textColorPrimary</item>
You could try changing the ?android....Primary to the code for your color.
wewoapsiak said:
What error? I just changed all the values I listed above then recompiled perfectly. Selected yes for system apk, then yes for the error question, deleted the resources.arsc, then continued.
Also the styles.xml has the following value that might help you if the above ones don't
<item name="android:textColor">?android:textColorPrimary</item>
You could try changing the ?android....Primary to the code for your color.
Click to expand...
Click to collapse
What did you use to recompile?
Sent from my phone
I use APK Manager 4.9 for decompiling/recompiling. Editpad Lite for editing xml files.
I will try that version. I think I was using 5.2, but its a little glitchy. How large was your compiled apk after the delete of resources file? Mine is only 554 KB and im not sure if that is large enough.
hy
what exactly line in the drawable to change the color of text font i want to change it to yellow thnx

[GUIDE][MOD] How to change settings background image on Jellybean 4.2.x

This is how you can change all the system backgrounds plain colors (settings, contacts, etc) to an actual image instead of a color
The how to:
1. Decompile the framework-res.apk using Android Multitool
2. navigate to the res>styles>styles.xml and with notepad++ locate <style name="Theme"> and edit these lines:
change:
Code:
<item name="colorBackground">@color/background_dark</item>
to this
Code:
<item name="colorBackground">@color/transparent</item>
then change:
Code:
<item name="windowBackground">@drawable/screen_background_dark</item>
to this one to use a png for the background:
Code:
<item name="windowBackground">@drawable/backgroundftw</item>
3. Locate <style name="Theme.Black" parent="@style/Theme">
and change this line:
Code:
<item name="colorBackground">@color/black</item>
to this:
Code:
<item name="colorBackground">@color/transparent</item>
then change:
Code:
<item name="windowBackground">@color/black</item>
to this for the png image:
Code:
<item name="windowBackground">@drawable/backgroundftw</item>
4. Use a 512x512 png , name it "backgroundftw" and place it in drawable-nodpi folder
5. Recompile the framework-res.apk and replace it with the old framework-res.apk in system/framework
6. Enjoy
Things required for this tutorial:
1. Android Miltitool to decompile and replace image
2. notepad++ for the coding
3. Your brain
4. You have to know where to obtain the framework-res.apk from on your phone. Just go to system/framework using root explorer
5. Make a backup of ur ROM or a flashable of your old framework-res.apk just incase if you make a mistake while coding. So that you dont encounter a bootloop
6. Find a video on youtube to learn how to compile and decompile your framework-res.apk
Difficulty for this tutorial: medium
For images CLICK HERE
good but wrong way bro......
ur steps are correct but method is wrong....
u cannot obtain styles.xml or find value folder with 7 zip....
u need apktool for that....
n just adding images or edited styles.xml ...to framework-res.apk
bootloops n fcs.....
i
Avenger4droid said:
good but wrong way bro......
ur steps are correct but method is wrong....
u cannot obtain styles.xml or find value folder with 7 zip....
u need apktool for that....
n just adding images or edited styles.xml ...to framework-res.apk
bootloops n fcs.....
i
Click to expand...
Click to collapse
Will update the thread tomorrow
nathanjp said:
will update the thread tomorrow
Click to expand...
Click to collapse
update the thread then i will try for sure don't want bootloop
upload video bro
awesome workk bro but if u upload a video step by step then its very useful to every one or if not possible then plzz upload a image bro
Thread updated try it now
gaurav247star said:
update the thread then i will try for sure don't want bootloop
Click to expand...
Click to collapse
Bro i updated the thread a couple days ago. Try it now
great work and helpful guide
nathanjp said:
This is how you can change all the system backgrounds plain colors (settings, contacts, etc) to an actual image instead of a color
The how to:
1. Decompile the framework-res.apk using Android Multitool
2. navigate to the res>lstyles>styles.xml and with notepad++ locate <style name="Theme"> and edit these lines:
change:
Code:
<item name="colorBackground">@color/background_dark</item>
to this
Code:
<item name="colorBackground">@color/transparent</item>
then change:
Code:
<item name="windowBackground">@drawable/screen_background_dark</item>
to this one to use a png for the background:
Code:
<item name="windowBackground">@drawable/backgroundftw</item>
3. Locate <style name="Theme.Black" parent="@style/Theme">
and change this line:
Code:
<item name="colorBackground">@color/black</item>
to this:
Code:
<item name="colorBackground">@color/transparent</item>
then change:
Code:
<item name="windowBackground">@color/black</item>
to this for the png image:
Code:
<item name="windowBackground">@drawable/backgroundftw</item>
4. Use a 512x512 png , name it "backgroundftw" and place it in drawable-nodpi folder
5. Recompile the framework-res.apk and replace it with the old framework-res.apk in system/framework
6. Enjoy
Things required for this tutorial:
1. Android Miltitool to decompile and replace image
2. notepad++ for the coding
3. Your brain
4. You have to know where to obtain the framework-res.apk from on your phone. Just go to system/framework using root explorer
5. Make a backup of ur ROM or a flashable of your old framework-res.apk just incase if you make a mistake while coding. So that you dont encounter a bootloop
6. Find a video on youtube to learn how to compile and decompile your framework-res.apk
Difficulty for this tutorial: medium
Click to expand...
Click to collapse
Good work keep it up
djrkb24 said:
Good work keep it up
Click to expand...
Click to collapse
Have u tried the tutorial??
Guys do post your screenshots if you have tried out the tutorial
Will post a newer and simpler tutorial to make it easy for u guys. All you have to do is replace the image in this. Flash able zip will so be available
Hit the thanks button if you guys would like that
nathanjp said:
Will post a newer and simpler tutorial to make it easy for u guys. All you have to do is replace the image in this. Flash able zip will so be available
Hit the thanks button if you guys would like that
Click to expand...
Click to collapse
Isn't the settings background located in /res/drawable/background_holo_dark.xml?
DonDizzurp said:
Isn't the settings background located in /res/drawable/background_holo_dark.xml?
Click to expand...
Click to collapse
Nope you dont wanna edit that
nathanjp said:
Nope you dont wanna edit that
Click to expand...
Click to collapse
That's what I edited in order to remove the gradient and get an all black background. I did the styles.xml mod to get the wallpaper working though.
Its A Brilliant Guide Brother..Thanks..!
Thunder_Droid said:
Its A Brilliant Guide Brother..Thanks..!
Click to expand...
Click to collapse
Thanks bro.
work..thank you bro
could any1 let me know that how to make background transpearent
Copied Post GARBAGE

[GUIDE] Easy Way to Hide signal

Hello every one, This is easy way how to hide signal, why hide signal ?? because some people want to hide one off signal, so i share what i can
Steps ::
Decompile your SystemUI
[*]Navigate to res/drawable-hdpi
Delete some signal's png, free, it's up to you (ex :: green signal). So delete ::
Code:
stat_sys_gemini_signal_1_green.png
stat_sys_gemini_signal_2_green.png
stat_sys_gemini_signal_3_green.png
stat_sys_gemini_signal_4_green.png
Navigate to values/drawables and then add this at the bottom
Code:
<item type="drawable" name="stat_sys_gemini_signal_1_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_2_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_3_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_4_green">#00000000</item>
Recompile your SystemUI, Done
So the question :: How to hide signal ??
Go to Settings/Sim Management, and then choose the first or the second sim to the green indicator, look at to your statusbar, your signal will be hidden
Don't say thanks if i help you, but press it :good:​
Nice Exploration
bagustinov said:
Hello every one, This is easy way how to hide signal, why hide signal ?? because some people want to hide one off signal, so i share what i can
Steps ::
Decompile your SystemUI
[*]Navigate to res/drawable-hdpi
Delete some signal's png, free, it's up to you (ex :: green signal). So delete ::
Code:
stat_sys_gemini_signal_1_green.png
stat_sys_gemini_signal_2_green.png
stat_sys_gemini_signal_3_green.png
stat_sys_gemini_signal_4_green.png
Navigate to values/drawables and then add this at the bottom
Code:
<item type="drawable" name="stat_sys_gemini_signal_1_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_2_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_3_green">#00000000</item>
<item type="drawable" name="stat_sys_gemini_signal_4_green">#00000000</item>
Recompile your SystemUI, Done
So the question :: How to hide signal ??
Go to Settings/Sim Management, and then choose the first or the second sim to the green indicator, look at to your statusbar, your signal will be hidden
Don't say thanks if i help you, but press it :good:​
Click to expand...
Click to collapse
kEEp it Up Bro!
good
i ve been searching for this for a long time
saalikrao said:
kEEp it Up Bro!
Click to expand...
Click to collapse
Thanks bro
sharath7610 said:
i ve been searching for this for a long time
Click to expand...
Click to collapse
Haha you get it now :laugh:
wow..very very easy thank bro

Categories

Resources