yashsingh1/xdaforums huggingface dataset:
[Android Themes] TorqueWrench001:
Hello @nicholaschum

Thank you for this awesome guide! VTS is am amazing tool. I have learned a great deal from your guide and this thread (5 star thread. wish there were more stars to give). I've customized a number of things on my phone.

I want to change the background image and blue text color for the pop up when you press the menu key from the home screen as shown in the first image below. I've done a lot of digging and tried some changes but no luck. Can you tell me what controls these and where I might find them?

My Phone is OnePlus one, custom rom is lollipop 5.0.2

Thank you

Sean
[Android Themes] nicholaschum:
I believe it's primary or secondary text material dark in framework colors
[Android Themes] srisurya95:
Failed to sync gradle project

Gradle version 1.10 is required.current version is 2.2.1 blah blah blah

This is the error I got when I imported the template into studio

Please help
[Android Themes] nicholaschum:
You will need to get the one directly from Cyanogen's github, as the one in the OP is actually a VTS version
[Android Themes] srisurya95:
Can I get a link?
[Android Themes] nicholaschum:
https://github.com/cyngn/android_packages_themes_Template
[Android Themes] TorqueWrench001:
[MENTION=3605033]nicholaschum[/MENTION] thank you for replying, I will dig back in after work tonight.

I see from your other post you are on vacation, sorry to have bothered you when you are trying to get some vacation time. I will wait awhile if I have any other questions. Enjoy your time.
[Android Themes] srisurya95:
Should I change the min and target SDK version?

In android studio
[Android Themes] Primokorn:
tarketSDK is 21 for LP 5.0 and 22 for 5.1.
[Android Themes] nicholaschum:
Yup, am on vacation atm, so can't really do as much help as I could normally. I'll be back in a week.
[Android Themes] TorqueWrench001:
It was secondary text material dark in framework colors for the text color. Now to find the menu background......
[Android Themes] sengymobile:
Nice guide, always want to make my own themes. Thanks.
[Android Themes] darrelllance:
Awsome guide, very understandable. Do you know how to change the "sun" icon on the brightness slider? I'm struggling to find that.
[Android Themes] simbilli:
Searcg brightness_thumb something in drawable
[Android Themes] bwar85:
Hoping I can get a few answers =)

My phone:

Galaxy S5 G900T

Running latest nightly of AICP 8.0 (uses cm12 theme engine)

So I want to mod the way my phone looks. I dont enjoy any cm12 themes currently available so I thought I'd try to mod an apk from the playstore. Seeing as how I'm not going to do anything with the modded apk except use on my personal phone I deem it OK. I learned it's not as easy as just replacing files since the modded apk installs but is rejected by cm12 theme engine and is deleted. After a logcat I see there are issues with the pngs I modded. Why is the apk rejecting the pngs I edited?

I attached modded apk and logcat if that helps.
[Android Themes] barth2:
^^^ it looks like a problem with your qs background image 9 patch. Try putting the original back to see if it is okay. Then edit the png again and be careful not to touch the black lines at the edges of the png.
[Android Themes] nicholaschum:
Do not modify the 1px black lines on each side of the image, if it is even 1 hex different (e.g. 000001) then it is malformed.
[Android Themes] bwar85:
I think I get it!!! So I didnt notice some images are .png and some are .9.png.. Oops..

So ill have to go back in and fix the .9.pngs. Odds are the black lines got messed up.

Thanks dudes! I cant seem to figure out how to give thanks? Where's the button?

Thanks barth2 and nicholaschum!!!!
[Android Themes] bwar85:
I think I have discovered magic!!!??? So I am replacing normal png images for the quick settings icons and after changing all related pngs in the assets/overlays folder(s) the old quick settings icons still show up? WTF...? So i went back in and there are no ORIGINAL png images anywhere in the apk, just my edited ones. Why are the old ones still showing up?

*edit needed a reboot i guess.. SOLVED
[Android Themes] _moelle:
hey guys... i am struggeling with the material shadows...does anyone know where are these located? -> dropshadow of contactinfo box, fab buttons and searchpanel dropshadow.
[Android Themes] v7:
edited
[Android Themes] bwar85:
Can I PM you a question about a theme I am editing?
[Android Themes] nicholaschum:
Sure why not?
[Android Themes] deepen saha:
HELP

I m a new bee to themeing world

currently i have started building up a theme , i have been facing problem with themeing the settings->mobile networks section :confused:

the other parts of settings.apk have been themed except the settings->mobile networks part

i am confused which file should i edit to theme settings->mobile networks part

:confused::confused:

i am using temaseks rom with cm12 theme engine

below i have attached the screenshot of section which i want to theme
[Android Themes] nicholaschum:
For other people, this is in com.android.phone.
[Android Themes] ondrej97:
I cant install framework. Help me ?
[Android Themes] TorqueWrench001:
Make sure you are using latest apktool. There is a new version out. There is a link a couple of pages back. Install in VTS same as listed in OP. Create text file etc..etc.
[Android Themes] nicholaschum:
Also install a CM12.1 based framework, not a custom CM12.1 version. Had this happen on some rom frameworks.
[Android Themes] afah_me:
Help

Excuse me, i want to create theme but i don't know which values to edit/add

com.andoid.settings > change switch color and font color in header setting

com.android.documentsui >change color of statusbar and actionbar like settings in my attachment

com.android.providers.downloads.ui > change color of statusbar and actionbar like settings in my attachment

plis help me..:(

thank's :good::good::good: :)
[Android Themes] nicholaschum:
first one: you have to go into framework/res/values/colors.xml and adjust material_deep_teal_500

second one: if it's not the same as the top, then check drawable xmls in com.android.documentsui, item_root something

thrid: check com.android.documentsui again, since they're linked. check the style and colorPrimary and colorPrimaryDark, if they aren't there, you must define the color of style you want in your framework
[Android Themes] ondrej97:
With newest apktool works. Thanks[emoji4]
[Android Themes] afah_me:
deskclock

i want to theme background of deskclock.apk to grey but when opening always go back to stock color in few second :confused:

how to fix this issue?

thank's again...:good: :good::good:
[Android Themes] deepen saha:
HELP NEEDED in themeing

which values should i change to theme play music

parts to theme are status bar and action bar ?

---------- Post added at 10:12 PM ---------- Previous post was at 09:35 PM ----------

I want to theme the deskclock background but it changes the automatically..

how do i change it

which values and which folder should i refer to ??:confused:
[Android Themes] nicholaschum:
Deskclock you have to do smali edits.
[Android Themes] deepen saha:
thank you

below is the link of my theme [MENTION=3605033]nicholaschum[/MENTION]

http://xdaforums.com/android/themes/cm12-theme-atom-t3101794
[Android Themes] barth2:
Hi Is it possible to make the app bar a gradient? I did something like set style colorPrimary to a drawable which is a xml with a gradient object. But it caused system ui to crash repeatedly. Is this just not possible or am I doing something wrong?

(Yeah I know gradient is so 2010 but I like a tiny hint of gradient to make it not so flat. It's my theme and I'll do what I want to :)
[Android Themes] CN@:
Hey guys.

I got stuck in themeing with android studio and need some help.

It says failed to sync gradle project I thought it must be Android repository so I installed it but again it give this error:No cashed version of com.android.tools.build:gradle:1.2.2 available for offline mode.

Can anybody help me please?
[Android Themes] kushpancake:
I have a question. I just recently switched from a galaxy s5 to a nexus 6 so I am new to cm theme engine... On the Samsung I was able to make flashable zips including pretty much any pngs I wanted to replace. How can I go about changing my signal/data icons on my nexus6?
[Android Themes] syed sajid:
Apktool 2.0.0b9 version

In virtuous ten studio having apktool 2.0.0b9 beta version is available, and error come while decompling the apk. Can you please help me to use virtuous ten studio
[Android Themes] RogueCoyote:
Hey thanks for the great guide! Took a few tries installing the right things but got it all working using VTS. I got to the last step of "Build All, and press Push All." I don't get any errors and it says Task is finished for Transfer all and Push...but nothing get's installed on my phone. I also used your guide to set up ADB since I had not used it before and did the ensure ADB is correctly set up step. Any advice on what i'm doing wrong? Thanks again.

I don't get any notification saying "Failed to install theme" either. Nothing at all happens on the phone.
[Android Themes] nicholaschum:
You should check logcat when you press Push All
[Android Themes] nicholaschum:
Download the latest one here: https://bitbucket.org/iBotPeaches/apktool/downloads
[Android Themes] syed sajid:
As you mentioned I already download the latest apktool 2.0.0rc3 and make the necessary changes, as u mentioned in your post. Can I have to delete the rest one? While adding the single framework in open settings-externall-apktool. Error shows that error while installing framework. Can u help on this also.
[Android Themes] nicholaschum:
Latest is not 2.0.0rc3, it is 2.0.0. This decompiles 5.1.1 apks.
[Android Themes] aksbuzz:
How to theme other apps?

Hey great guide...how to theme whatsapp,instagram,...etc
[Android Themes] nicholaschum:
You have to decompile it first. Then do as I instructed in the OP
[Android Themes] aksbuzz:
Hey i don't have a data cable right now..is there any way to install apk..zip or anything...
[Android Themes] tpayne2345:
Not sure why you'd need a cable for what you're doing

Use a file explorer to get the application apk, email it to yourself or something, use VTS or apktool to decompile it, review the xmls and make your changes
[Android Themes] aksbuzz:
I think i misinterpreted... After making changes how am i suppose to get the modified apk on my phone... I need the location of modified apk..i can't push via adb
[Android Themes] tpayne2345:
Ah, if you're using VTS just open your project in Windows Explorer and the 'base.apk' will be in the Binary folder
[Android Themes] asc1977:
hi at all

i want to start also with theming on themasek cm12.1 but if set up virtous ten studio with framework.res.apk i become error. i do all like guide but didnt work. please any helps
[Android Themes] nicholaschum:
Try using a cleaner framework, usually this happens when I'm using a custom ROM's framework.

Stock CM12.1 should not have these issues

If you haven't already, 2.0.0 final has been released to decompile 5.1.1 apks.

https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.0.jar
[Android Themes] asc1977:
What is cleaner framework?

I tested with cm12 with same settings and it work but i need cm12.1 because must decompile systemui.apk from themasek rom
[Android Themes] nicholaschum:
Update your apktool as I linked above.
[Android Themes] asc1977:
I already have done that. You See at my screenshots i postet
[Android Themes] nicholaschum:
If you can't decompile the framework, it is the problem of the framework.
[Android Themes] asc1977:
You mean file is corrupt?
[Android Themes] nicholaschum:
Either that, or you need a clean framework (pulled fresh from CM12.1 official ROM)
[Android Themes] asc1977:
OK. Now installed cyanogenmod cm12.1 and work.

Problem is temasek Rom. Thanks for help
[Android Themes] tpayne2345:
I think I remember seeing this asked before but I can't find it.. in Settings, how can I get rid of the gradient on the switchbar?
[Android Themes] nicholaschum:
It should be an elevation value for action bar. Play with dimens.xml a little.
[Android Themes] tpayne2345:
Figured it out, it was under Theme.ActionBar in styles

:good:
[Android Themes] syed sajid:
i m not able to decompile the systemUI.apk & framework-res.apk through apktool..i m using a non-rooted oneplus one. Current ROM android 5.0.2 lollipop cyanogen OS
[Android Themes] Primokorn:
There's a dedicated thread for apktool and you should share more information. I'm not sure that's enough information for us to conclude anything...
[Android Themes] dawidececk:
Hey, sorry for question, but my english is not too good.

How i can define apps, what i want to theme? I'm using template apks from this guide and i deleted some of apps from tree (calculator, phone...).

So, i have only Setting, SystemUI, Framework and DocumentsUI in my theme. But, Google+ are themed too. G+ is using framwork as source of colors?

And if I want to fix colors in G+, I need to create a folder for him right?

And second Q: IF i want to public theme (G+, friends, my web...) what do i do/change/rewrite?

Thanks and sorry for repeating, if it is already here.

Have a nice day! David
[Android Themes] nicholaschum:
1. Google+ could be taking some aspects of the style from framework, yes, that's possible.

2. Yes, create a new folder for it to define specific colors for it

3. Change in AndroidManifest.xml the package identifier (com.chummy.jezebel.material.dark) into something your own, then open up the apk's res/values/strings.xml and change the name of the theme and the author.

Then you're fine.
[Android Themes] dawidececk:
Nice, I don't want to be "resaler" or unliked :P

Thanks for the nice guide! Learn a lot of that.
[Android Themes] :
Shadows and dim bgs

I just want to ask. How do i remove dropshadows on/in the notification expanded backgrounds? And also the dimming background when i expand the notificaion bar. Thanks. :D
[Android Themes] Sandy._.12:
Help me Please

Can anybody tell me how to theme the

1. Smart lock section of settings

2. Phone ringtone selector list

3. The screen pinning button in recents

4. Info button (the last one) in notification_guts
[Android Themes] Wårløçk:
Hello Sir, plz help me out of this 2 Bugs.plz

Well, My whole theme is Ready.. But there is a Small Visibility problem that has made me upset. I tried alot,but looks like it needs a Professional dev to solve it.

Actually 2 Problems.

1) First one..

Battery Saver Turn OFF Text: (visibility problem)

If i long press on it i can read the Text, but its in Black Text:

How i actually want to make it look like: (example)

2) second problem.

On clicking Add New Contact, This is a.usual screen we see.. But Text on it is very much disgusting..

I request u to kindly tell me the COLOR String names that i have to change..also tell me.where r they actually located ?

I mean into Res/Values of Common Folder or of Android folder.. Or Their Individual App Folders..

Any Other Suggestion u want to Suggest :) ?

I'll See towards it that u get Best Credits on my Thread :) Thanks in Advance.

Sent via OnePlus One.
[Android Themes] nicholaschum:
1. Should be in SystemUI/res/values/styles.xml

<style name="TextAppearance.Material.Notification.Parenthetical" parent="@android:style/TextAppearance.Material.Notification">
<item name="android:textStyle">italic</item>
<item name="android:textColor">@android:color/white</item>
</style>

2. Should be secondary_text_color in Contacts/res/values/colors.xml
[Android Themes] Wårløçk:
I'll Try and Report u immediately . thanks Sir to reply :)

sent via OnePlus One
[Android Themes] Wårløçk:
:( Oops.. I tried it. .didn work.. Any other place where it needs to b edited?? :confused: :confused:

sent via OnePlus One
[Android Themes] nicholaschum:
Which one didn't work?
[Android Themes] PunchUp:
First one is in the framework rather than SystemUI, isn't it?
[Android Themes] nicholaschum:
Yeah it could be. System UI I believe was my black on black fix for ambient display.
[Android Themes] Wårløçk:
Sir, the first one..

sent via OnePlus One

---------- Post added at 11:57 PM ---------- Previous post was at 11:55 PM ----------

Where does this Code make changes in text .. Which part?

<style name="TextAppearance.StatusBar.Expanded.UserSwitcher" parent="@style/TextAppearance.StatusBar.Expanded">

<item name="android:textSize">16.0sp</item>

<item name="android:textStyle">normal</item>

<item name="android:textColor">#fff</item>

</style>

sent via OnePlus One

---------- Post added 3rd July 2015 at 12:02 AM ---------- Previous post was 2nd July 2015 at 11:57 PM ----------

Can u give me the exact code To deal with? Its over 2 days m trying to fix it.n m really frustrated with it..

the second bug is fixed, but the first one is just a headache now :(

sent via OnePlus One
[Android Themes] nicholaschum:
<item name="android:textColor">#fff</item>

This changes text color....but that's not the correct style I mentioned, unless you're trying different things.

I'll paste my framework code in a bit, I am out right now.
[Android Themes] Wårløçk:
Sure..m waiting

sent via OnePlus One
[Android Themes] nicholaschum:
<style name="TextAppearance.Material.Notification" parent="@android:style/TextAppearance.Material.Notification">
<item name="android:textColor">@color/secondary_text_default_material_dark</item>
</style>
<style name="TextAppearance.Material.Notification.Info" parent="@android:style/TextAppearance.Material.Notification.Info">
<item name="android:textColor">@android:color/white</item>
</style>
<style name="TextAppearance.Material.Notification.Line2" parent="@android:style/TextAppearance.Material.Notification.Line2">
<item name="android:textColor">@android:color/white</item>
</style>
<style name="TextAppearance.Material.Notification.Time" parent="@android:style/TextAppearance.Material.Notification.Time">
<item name="android:textColor">@android:color/white</item>
</style>
<style name="TextAppearance.Material.Notification.Title" parent="@android:style/TextAppearance.Material.Notification.Title">
<item name="android:textColor">@android:color/white</item>
</style>

Try this out in framework.
[Android Themes] nicholaschum:
How about your common colors?
[Android Themes] Wårløçk:
Shall i post Color Code?

sent via OnePlus One

---------- Post added at 02:10 AM ---------- Previous post was at 01:42 AM ----------

Sir, I m releasing my Theme Tomorrow, I have Done many changes and one thing i can say is that u r very kind m helpful.

M grateful to ur kindness.

Well m releasing my theme within 24hours and i would Tag u in credits so that u get the Update on the Thread n u could Guide me Well ahead in that BLACK ON BLACK BUG.

REST IS ALMOST DONE.. ThankYou :)

sent via OnePlus One
[Android Themes] nicholaschum:
You can contact me on Hangouts - chummydevteam@gmail.com
[Android Themes] Wårløçk:
Roger That! Thanks :)

sent via OnePlus One
[Android Themes] afah_me:
Help

I already changed all style holo to style material

but holo statusbar not tinted (still black color when using apps) :confused:

thank's..
[Android Themes] nicholaschum:
It also depends on the app. Some apps force a fake holo look.
[Android Themes] Wårløçk:
Sir, plz Reply me on Hangouts..i really really need Your Help on Your dm_cm12te_gamma_conversion_18022015-0351.apk template.. Plz read my msg on your Hangouts. :(

sent via OnePlus One
[Android Themes] Jumba:
Hi again, I have two questions which hopefully someone can answer.

They relate to the Quick Settings Pulldown. First question is, does anyone know how I can get rid of the shadow behind the pulldown? You can see what I mean in the following image. There's something behind it...

Second question, does anyone know what controls the background colour of the top of the notification pulldown? No matter what I try, it's always a semi-transparent black. see the image below for what I mean...

Thanks
[Android Themes] vijer:
There is at least one thing you should add to the guide.

The Auto detect of the java binary does not work in VTS, it thinks the binary is 32 bit which in my case it is 64 bit so it is not in Program Files (x86). The uninformative error that VTS gives "Error while importing framework-res" is because VTS cannot find the Java binary so you have to edit the setting.

Also, if you added "style" themes to your template that would be helpful too.

Thanks.
[Android Themes] syedobaid555:
Hey pal !!! please help me.. My phone runs Cm 12.1 17th July Nightly. I have a Condor [Moto E 1st gen XT-1022]. I frequently get the notifications saying "Failed to install theme" ! ! !

I'm a Huge fan of your themes and I also have Xposed running on my device. Has it got something to do with This issue ?? Please Help me man !!! I seriously need your themes !!!
[Android Themes] ronakchavan:
Hey Im getting "libpng warning: iCCP: Not recognizing known sRGB profile that has been edited" error. But the theme installs fine on my phone but when I gave that apk to my friends to test on their phone's it wont even install.
[Android Themes] Primokorn:
.9.png files aren't correctly defined IMO. Check how to edit them (black lines ff000000 of 1px).
[Android Themes] ronakchavan:
Ok those errors are gone now but still the apk installs in my phone but not on any other devices :(
[Android Themes] Primokorn:
Have a look at the comment #25 here

other thread
[Android Themes] ronakchavan:
I have already fixed the issue of the .9.png, now i dont get any errors. But the issue of the theme not installing on any other phone exists.

Here's the link of my apk Drive
[Android Themes] kushpancake:
Does anybody know how I can possibly add an icon to my statusbar? I don't necessarily need it to function... I just want to put a png up there on the far left side. I'm using a nexus 6 running DU 5.1.1 CM TE.

thanks in advance!
[Android Themes] Primokorn:
Record a new log on your devices (no issue on my Nexus 5). Do they have the same Android version?
[Android Themes] ronakchavan:
Those people are using oneplus one with stock cm12

Sent from Gotham
[Android Themes] BlightGod:
Thnx

:good::good:
[Android Themes] vijer:
How do you change the icons and colors of the Settings screens?

Thanks,
[Android Themes] PunchUp:
It's a combination of many things.

For icons, you can either alter the xml files in drawable folder or make custom png icons.

For colors, you need to edit the appropriate attributes in colors.xml and styles.xml

Take a look inside the template
[Android Themes] vijer:
Using Virtuous Ten Studio, when I import an apk it has a different structure than the one I see if I extract the apk with Winrar. In the extracted directory there is an Overlay directory with a com.android.systemui directory, but in VTS there is an Overlay directory and several com.android directories and none of them have the icons in the res directory. Is there a better environment than VTS or am I going about this wrong?

Thanks
[Android Themes] PunchUp:
Everything you need to do with theming is in the overlay folder. For settings, look inside com.android.settings folder.
[Android Themes] vijer:
I understand that, but in VTS there isn't a folder com.android.settings just many com.android folders. Also, there aren't any references to the png files, just an xml file wiht the same name in res. Is that all I need to do, make a png and name it the same as the xml file? For example ic_qs_wifi_full_3.png and ic_qs_wifi_full_3.xml
[Android Themes] SourceT:
Hi, Nicholas. This is Zachary Tien from China.

Hi, Nicholas.

This is Zachary Tien from China. I've been used cm12 theme for a long time and now I am trying to make my own theme. But the problem is I could not code and my english is not so good. So, it is really hard for me to learn this tutorial.

I don't know if I can get some of your help. If it does, I'll really appreciate.

Below is my design, I hope you can check it out and give me some advise. Thank you.

https://www.behance.net/gallery/28085067/CM12-rom-theme-Purple-Jellyfish
[Android Themes] nicholaschum:
Welcome to the party!

Just wondering... Wheres your design? You said it was below?
[Android Themes] _moelle:
Dimens -> elevation or shadow to 0 /systemui.dimens.xml

systemui secondary color / colors.xml
[Android Themes] kushpancake:
Anyone. Anyone help me?????