yashsingh1/xdaforums huggingface dataset:
[One (M8) Themes and Apps] rosswhite:
Has anyone has found out how to manually add a weather location on Sense 6? (Without turning location on!) On Sense 5 there was a file to edit in HTC weather provider apk but this no longer exists.
[One (M8) Themes and Apps] Raymond Ebertt:
On the new base, HTC has altered the weather apk removing animation and other things. More than likely that option isn't available anymore. Not sure, but knowing HTC's ways of doing things to make the device more complex, I'm sure they've changed it.
[One (M8) Themes and Apps] Basil3:
99% sure there are sense 6 custom ROMs that allow you to manually set location for weather without location being on. My location is currently off and have lockscreen and widgets showing my city.

Sent from something using Tapatalk
[One (M8) Themes and Apps] Raymond Ebertt:
Apparently not on his Rom and not on mine. Locations isn't a big deal for me anyways.
[One (M8) Themes and Apps] rosswhite:
Thanks for your response, that's what I am after. I remember it was an option on Viper when I used that, but for the One S we only have the sense 5 version so far. Bilal_Liberty has worked wonders getting Sense 6 on our device with Liberty ROM and he is the only Sense dev we have left so I'll have to wait and see if he is planning to update Viper.
[One (M8) Themes and Apps] Headless96:
Quick question guys, in which 1 of these is header bar for Sense apps:

<item name="android:textColorHighlight">#ffffb38a</item>
<item name="android:textColorHighlightInverse">#ffffb38a</item>
<item name="text_selection_opacity_color">#68ffb38a</item>
<item name="htcProgressBarStyle">@style/HTCProgressBarStyle.ThemeOne</item>
<item name="htcSeekBarStyle">@style/HTCSeekBarStyle.ThemeOne</item>
<item name="multiply_color">#ff252525</item>
<item name="overlay_color">#ffffb38a</item>
<item name="htcProgressBarStyleHorizontalFull">@style/HTCProgressBarStyle.Full.ThemeOne</item>
<item name="category_color">#ffff813d</item>
<item name="light_category_color">#ffffb38a</item>
<item name="dark_category_color">#ff212121</item>
<item name="text_selection_color">#ffffb38a</item>
<item name="standard_color">#ff141414</item>

I'm guessing it's category_color but just wanted to make sure. Also fisha21 can you tell me the hex code of the red header for your dark Renovate skins theme please, it's much more easy on the eye

Edit: Found it, its #ffb31b1b :)

Also I've been having a few problems modding SystemUI.apk on the latest (M7) base to get center clock. I think I've been doing it wrong

Does anyone know what line I should be modifying to get this and how? ... I'm guessing this line but I'm not sure what to edit it to:

</LinearLayout>
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="start|center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:paddingStart="4.0dip" />
</LinearLayout>

Appreciate any replies guys :)
[One (M8) Themes and Apps] ViNOK16Bit:
Multiply_color which you can change in each category

Sent from my HTC One_M8 using Xparent Red Tapatalk 2
[One (M8) Themes and Apps] Punka-res.apk:
Playing with sense 6 themes :p:p:p
[One (M8) Themes and Apps] Headless96:
Cheers bro

Another quick noob question, how do you guys change the colours of apps that use category0 (internal)

I seen with prism, you can change it in styles.xml but in styles of browser.apk for example, I can't seem to find any references to themes. Could someone point me in the right direction :)
[One (M8) Themes and Apps] ineedone:
I'm not sure what you want. But you can change colors in styles to category colors by replacing them with : ?com.htc:category_color now it will get the current theme color from com.htc.resources
[One (M8) Themes and Apps] Headless96:
Yeah sorry should've been more specific, I just wanted to change the header colors basically, e.g, for browser.apk
[One (M8) Themes and Apps] ineedone:
If I understand correctly, you probably looking for the bg_urlbar.png
[One (M8) Themes and Apps] Headless96:
Ah right, yeah that's the one. So with other apps like settings, is the colors for the header bar not changed in styles.xml?

I've attached a screenshot to show what bit I'm on about
[One (M8) Themes and Apps] ineedone:
VINOK16bit already gave you the answer, it's multiply_color in prism .apk or com.htc.resources ?

Edit: keep in mind , first theme gets it's colors from colors.xml the others from styles.xml
[One (M8) Themes and Apps] Headless96:
Ah true he did :p .. being awake at 3am does funny things to your head haha

Anyways bro you've been a major help, thanks very much

Absolute last question I swear :p What is the color of this controlled by?

Edit: Found it, it's category_color
[One (M8) Themes and Apps] Punka-res.apk:
HtcContactsDialer.apk Android 4.4.3

Hello everybody !!!!

Did anyone manage to decompile and recompile this app without issue ???
[One (M8) Themes and Apps] Onepagebook:
anyone start doing 2.12 base theme? lol be very careful haha

---------- Post added at 09:52 AM ---------- Previous post was at 09:47 AM ----------

ha, I just discussed this with [MENTION=704359]fisha21[/MENTION] lastnight

you need to change the androidmanifest.xml package name to :

com.htc.contacts

after that you are fine to compile back.. oh and there are many problem you will see haha
[One (M8) Themes and Apps] Punka-res.apk:
Thanks a lot :good::D

========================

[MENTION=3415477]Onepagebook[/MENTION]

I noticed i have to do the same thing in Browser ;)

Is there a lot of apps with that ?
[One (M8) Themes and Apps] Raymond Ebertt:
I thought he was on holidays...... :cool:
[One (M8) Themes and Apps] Onepagebook:
what do you have in the Browser?

I mean the package name..

** just checked. Browser is fine , doesn't have to do anything.
[One (M8) Themes and Apps] Punka-res.apk:
With ARHD 9.1, I had to...

Envoyé depuis mon HTC One
[One (M8) Themes and Apps] fisha21:
There seem to be a few HTC apks that have this issue. Basically what's happening is that decompiling with apktool 2.0.0 breaks the package name in AndroidManifest.xml - so the package name becomes com.htc, and the apk won't recompile. To fix it, you need to find out what the package name should be and correct it in the manifest.

So, with the new HtcContactsDialer.apk in the leaked 4.4.3 base, the package name needs to be changed back from com.htc to com.htc.contacts - once you've done that, the apk should compile ok. If it doesn't, you'll need to check the error log to see what the issue was - but you should see less errors this time. Generally, the correct package name can be found further down in the manifest.xml, but it's not always obvious.

The easiest way to tackle these apks though is to use apktool 1.5.2 for both decompile and recompile. This version decompiles the package name correctly. So far, every apk that I've found to have problems using apktool 2.0.0 has worked flawlessly with 1.5.2.

Also, I've had people ask me about recompiling with one version of apktool, then recompiling with another. We needed to do that way back when apktool was still on version 1.4.x, but I personally haven't had to use different apktool versions on the same apk for at least 2 years, if not 3.

Hope that clears things up a bit :)
[One (M8) Themes and Apps] maurydes:
yup confirm fisha,and confirm no prob with latest apktool vts decompile and recompile correct: Good:
[One (M8) Themes and Apps] artur0588:
How to generate preview theme color? I have add themes but all of theme have same preview color.
[One (M8) Themes and Apps] Punka-res.apk:
You have to add data/data/files/themepreview in your zip (with your themepreview of course)

Envoyé depuis mon HTC One
[One (M8) Themes and Apps] ViNOK16Bit:
Does anyone have an idea where I can change this background "Accounts and folders" on the sliding menu in the HTC Mail.apk? I think the text is in MultipleActivitiesMain.smali but when I change the public id to something black the Mail app FC's. Couldn't find the background. I may be way off looking in that .smali or even it isn't in the smali folder at all. I hope someone here knows.
[One (M8) Themes and Apps] Punka-res.apk:
Yes it's in MultipleActivitiesMain.smali

Just have to edit:

invoke-virtual {p0}, Landroid/view/ContextThemeWrapper;->getResources()Landroid/content/res/Resources;

move-result-object v2

const v3, 0x2060009

invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getColor(I)I

In my screen, i changed to dark_shadow_color >> 0x20600ac

[MENTION=704359]fisha21[/MENTION] : Could you add it in post #1 ?

It may helps lot of people ;)
[One (M8) Themes and Apps] Pneuma1985:
Punka do you know what xml controls it? cant we just add an xml tag to the layout that controls the slide out for the header?
[One (M8) Themes and Apps] Punka-res.apk:
Absolutely not...

I've taked a look but I find nothing... :(

Envoyé depuis mon HTC One
[One (M8) Themes and Apps] Pneuma1985:
Yeah same here it has an ID i found it but just adding a background to it is ineffective at least from what i could tell...The expander list does have xml for it its just obscure and not much to it since smali controls most of it..
[One (M8) Themes and Apps] fisha21:
I'm sure it will help people, it certainly helped me! I couldn't find it in xml, never had time to go looking in smali for it, so you saved me the job! Added to OP

I was trying this as well. Looks like its one of the rare things that can only be achieved one way....unless you feel like rewriting xml/smali (which I rarely ever feel like doing) :)
[One (M8) Themes and Apps] Pneuma1985:
I rewrote the smali the app works but as soon as you slide out the slider it crashes... LoL I need help rewriting it from you are mwilky fisha :D I did try... And it did work just didnt work lol at least the app loaded without crashing... but as soon as it would call for the image it crashed as soon as you clicked the 3 line icon.
[One (M8) Themes and Apps] Punka-res.apk:
Anyone know a "how to" guide to add layouts and styles in styles.xml ???? :confused::confused::confused::confused::confused:
[One (M8) Themes and Apps] Pneuma1985:
Umm there are no guides I can teach you I guess though...I've done both its easy. And adding layouts in styles is basically done the same way as it is on regular .xml files except the tag is android:layout=

Example:

<style name="Custom.Style" />

<item name="android:layout">Whatever the layout is</item>

</style>

Pretty sure thats it sorry if i'm wrong slightly i wrote that on my phone.

Your better off using an include though not sure why you'd add a layout into a style but i've seen it done before in examples.

Sent from my M8
[One (M8) Themes and Apps] Punka-res.apk:
In fact, i try to convert keyboard fontcolor to ?category_color bue i'm not sure that i could add it in styles.xml
[One (M8) Themes and Apps] Kiray1982:
If you wanna try to change the color to dynamically category color AND found the solution... PLZ tell me

I tried with ?com.htc:attr/category_color

But didn't work yet

- gesendet mit meinem HTC One M8 -
[One (M8) Themes and Apps] grgsiocl:
i was trying to change the category color in Prism.apk ..but when i decompile i will always get some .9png in drawable_XXX errors, but decompiles fine...when i change some values in xml and recompile and then i will get error like vector graphics is not defined in public_XXX.xml...I was actually looking for to change the blinkfeed color to custom color...could you let me know how you guys are doing in your themes...Thanks in advance!
[One (M8) Themes and Apps] Basil3:
Pretty much everything you need to know is covered in the first couple of posts :good:
[One (M8) Themes and Apps] Punka-res.apk:
This KeyBoard makes me craaaazy :eek::eek::eek::eek:
[One (M8) Themes and Apps] Basil3:
What's the problem with the keyboard? You want it to change with themes or something else? It's the same as theming gallery or prism.
[One (M8) Themes and Apps] Punka-res.apk:
Keyboard is themed, no problem with that !!!

I just want to apply category_colors on the keyboard... but nothing works...
[One (M8) Themes and Apps] Basil3:
Not sure if you just mean having it matching the theme you select in personalize > theme or something else?

Edit: you mean things that aren't normally themed, such as the actual keys?
[One (M8) Themes and Apps] Punka-res.apk:
[MENTION=918378]Basil3[/MENTION] Sorry i wasn't clear

I want to make ime letters and numbers as dynamical category_colors like my dialer (screenshots)
[One (M8) Themes and Apps] fisha21:
Yeah, I've never yet managed to change a smali colour reference to a drawable, or vice versa....must be possible, but never been bothered enough to spend the time!

The Android developers website has a lot of useful resources. I usually start with existing styles code, then adapt it using the stuff I read on the Dev site. This page will probably have some useful stuff for you :)

http://developer.android.com/guide/topics/ui/themes.html
[One (M8) Themes and Apps] Punka-res.apk:
A pretty good read for tonight ;)

Thank you :)

Envoyé depuis mon HTC One
[One (M8) Themes and Apps] grgsiocl:
I am trying to modify the blinkfeed color for default category in prism.apk. I could not able to find the code where it needs to be modified. For theme one i followed the instructions of OP and got the result though, but want to change the color of feed background like shown in screenshot (before image loads). I am new to themeing, so someone can advice where both the stuffs can be done...thanks in advance..
[One (M8) Themes and Apps] Punka-res.apk:
You mean backgrounds for theme 2, 3 and 4 ?

Envoyé depuis mon HTC One
[One (M8) Themes and Apps] grgsiocl:
Thanks for the reply bro..

1. I want to change the blinkfeed background of light green(which comes as a default theme for HTC) with darker green along with feed background.

You can see in the above screenshot. I used MIUI orange as a blinkfeed background color, but when the image is not loaded, it is still showing lighter orange, which i want to change.
[One (M8) Themes and Apps] Punka-res.apk:
Dark category color or Light category color but not 100%sure.

You'd could try to mod them and see :)

Envoyé depuis mon HTC One
[One (M8) Themes and Apps] Basil3:
Anyone here been theming the 4.4.3 base? Just been looking at updating weather themes, and a few of the locations have moved around. Anyone know where icons for lockscreen weather are now coming from?

Sent from something using Tapatalk
[One (M8) Themes and Apps] fisha21:
Been doing some 4.4.3 theming just today as it happens. A lot of the lockscreen stuff now comes from HtcNotificationWidget.apk, the weather icons might be from there too.

I've noticed some other issues though...looks like HTC are using proguard to obscure some of their code. Where before I was able to make smali edits to change whether light or dark icons are used, now those smali edits aren't possible - this is in the new Weather.apk. Having to replace the icons instead. You found the same problem?
[One (M8) Themes and Apps] Punka-res.apk:
I had exactly the same problem...

Envoyé depuis mon HTC One
[One (M8) Themes and Apps] Basil3:
Thanks mate.

Yeah, we noticed a while back that HTC were obfuscating some stuff in weather clock widget. Was hoping it was only due to the base being test keys, but seems that it's in the official release. Don't know how much ties into their plans to put stuff on the play store, hasn't the world clock shown up on there recently?

Sent from something using Tapatalk
[One (M8) Themes and Apps] fisha21:
It did indeed. I've noticed the same obfuscation in HtcWeatherClockWidget, which makes me wonder if that will be the next apk to hit Playstore. So far the other Playstored apks seem ok...IME, Gallery etc...but certainly makes you wonder what road they're going down.
[One (M8) Themes and Apps] 2WildFirE:
Same here on m7 4.4.3 and one question is it only for m7 dialer. Apk and contacts. apk are now one apk called contact dialer. Apk

Powered by SkyDragon ROM
[One (M8) Themes and Apps] Punka-res.apk:
Same thing on M8 ;)

=========

Lot of checkbox (in browser settings, mail settings) are from framework insteed com.htc.resources... Separatorfontcolors too :eek:
[One (M8) Themes and Apps] olorolo:
It's in framework/com.htc.android.home.res.apk/res/drawable-sw360dp-xxhdpi
[One (M8) Themes and Apps] Punka-res.apk:
Not in 4.4.3...

I can confirm that lockscreens weather icons are controlled by HtcNotificationWidget
[One (M8) Themes and Apps] olorolo:
I'm sorry but I wasn't able to test it but I just checked and I did theme that app as well so you are correct.
[One (M8) Themes and Apps] fisha21:
Yeah, I noticed this too. I also see that a lot of HTC apps that used to call colours from com.HTC.resources are now using their own internal colours instead. Makes me wonder if HTC are slowly reducing the role of com.HTC.resources in their apps' appearances.

I can see two potential reasons for this.

1. They ultimately aim to get all their apps on playstore. Not only does this allow for quicker updates, but would also allow them to add more themes etc..but they won't be able to do that unless they remove com.HTC.res, or put it on playstore too.

2. They are preparing for Android L. Since Google are becoming more strict about OEMs skinning Android, I wonder if HTC are planning to stick to a more stock system appearance, with HTC style applied only to their apps, not the whole system. In this case, it would make more sense to use fw-res as the base, and have each apk include any non-standard resources, rather than have an htc-specific framework.

Either way, as a themer this fills me with equal parts interest and dread when it comes to theming Android L

Speaking of, it surprises me that no tech sites have commented on how the multi-coloured panels aspect of Material Design seems a direct copy of what HTC did with Sense 6. I've heard it described as bold, solid colour panels that vary between different apps to give each their own identity within a consistent framework...sounds familiar to me...

The lockscreen clock stuff is in there as well now, so had a feeling that's where weather would be. Thanks for confirming :)
[One (M8) Themes and Apps] Behold_this:
Lol, first thing I thought of too.

https://twitter.com/behold_this/status/481856447110991872 ...HTC favorited this tweet as well, maybe they agree, or maybe they had the inside track on material design. I love rumors, Nexus tablet anyone?
[One (M8) Themes and Apps] Punka-res.apk:
Be careful in some apps, don't forget to rename package in Manifest before recompile;

In HtcContactDialer > com.htc.contacts

In Usage > com.htc.usage

In Browser > com.htc.browser

In FM_Radio > com.htc.fm

In HtcSoundRecorder > com.htc.soundrecorder

In Message.apk > com.htc.message

I just had this problem on these apps... There are certainly others...

==============================

I NEED HELP....

I can't decompile Phone.apk... Tried with Apktool 2.0.0 & 1.5.2...

Anyone managed to decompile it without error ?
[One (M8) Themes and Apps] artur0588:
I know. It's working only after Rom flashed and booted. But I need in first boot.
[One (M8) Themes and Apps] Basil3:
Phone fine with 1.5.2, did it yesterday.

Had the same issue of needing some xmls fixed for compile though.
[One (M8) Themes and Apps] Punka-res.apk:
Could you upload your V1.5.2 pleeeaaase ? :)
[One (M8) Themes and Apps] Basil3:
https://www.dropbox.com/s/rsmi3fwbnti7nb8/apktool_1.5.2.jar
[One (M8) Themes and Apps] Punka-res.apk:
Thanks but I have the same error...

======

In 4.4.3 weather.apk

A new way to edit background colors

Go in com/htc/weather/cj.smali

And edit 4 values (0x106000b)
[One (M8) Themes and Apps] maurydes:
Yes Punka I modified the weather background as a prism and it works well, what problem do you have with phone.apk? need to edit the classex.dex? apktool 1.5.2 does not work if I know another way
[One (M8) Themes and Apps] Punka-res.apk:
I edited classes.dex without problem... :)

I have many lines to edit in colors.xml, drawable.xml and styles.xml !!!

But I can't decompile it... ... ...
[One (M8) Themes and Apps] maurydes:
Aaah ok,the only way is apktool sorry cant help you[emoji20]

---------- Post added at 05:51 PM ---------- Previous post was at 05:48 PM ----------

The only problem i have is in HTC.contact.dialer....cant recompile it
[One (M8) Themes and Apps] ineedone:
What settings do you all use? I try to decompile and compile with vst, and all seems to go fine, (I didn't any edits to it) but it crashes instantly, when I try to start it.
[One (M8) Themes and Apps] Punka-res.apk:
Just apktool :)

I tried with apktool2.0.0beta9 and apktool1.5.2...

---------- Post added at 07:19 PM ---------- Previous post was at 07:18 PM ----------

It's in manifest, add contacts in packagename (post #730)
[One (M8) Themes and Apps] Mr Hofs:
Hi guys .... does anyone know where the orange bar is controlled ? I don't see a png file anywhere that resembles it, my hunch it's an overlay colour. At least in com.HTC.resources.apk. I'm already started testing/changing stuff to see where i can control it, but if somebody already encountered it and could pinpoint me to it would be awesome ! Orange bar + orange text is a no go :)
[One (M8) Themes and Apps] Punka-res.apk:
I have same thing in my fullcoloured theme ;)
[One (M8) Themes and Apps] OGhoul:
I'd also love to see that get done.
[One (M8) Themes and Apps] ineedone:
A little turtial: Theme controlled fontcolors

Last weekend Me and [MENTION=3636761]PuNkA.YaNoU[/MENTION] , (thanks, my friend for hunting these fontcolors with me! ) released our first themes were (almost) all fonts of htc apps are controlled by theme color.

To give you an impression of what this looks like here are some screenshots.

A little turtial:

This is done by replacing textcolors in styles.xml with ?category_color or ?com.htc:category_color.

for example:

apks that have there own themes in styles.xml:

<style name="list_body_primary_xs" parent="@style/light">
<item name="android:textSize">@dimen/list_body_primary_xs</item>
<item name="android:textColor">@color/light_primaryfont</item>
</style>

change to:

<style name="list_body_primary_xs" parent="@style/light">
<item name="android:textSize">@dimen/list_body_primary_xs</item>
<item name="android:textColor">?category_color</item>
</style>

apks that depend on com.htc.resources:

<style name="list_body_primary_xs" parent="@style/light">
<item name="android:textSize">@dimen/list_body_primary_xs</item>
<item name="android:textColor">@color/light_primaryfont</item>
</style>

change to:

<style name="list_body_primary_xs" parent="@style/light">
<item name="android:textSize">@dimen/list_body_primary_xs</item>
<item name="android:textColor">?com.htc:category_color</item>
</style>

basically, this is all there is to it. though there are some exceptions, in some cases, fonts will always turn to the "default.theme" color, also some fonts result into crashing (some functions of) the app...

these issues are different for various apps. so a little trial and error.

Happy theming!!!

[MENTION=704359]fisha21[/MENTION] might want to add this to OP, thanks

edit: fixed code that got messed up by tapatalk app edit.
[One (M8) Themes and Apps] 2WildFirE:
Thanks a lot for this tut!

Powered by SkyDragon ROM
[One (M8) Themes and Apps] Punka-res.apk:
Now you can underastand how was made our Fullcoloured Themes ;)
[One (M8) Themes and Apps] 2WildFirE:
Yep I do, but it's a lot of work what you both has done.

?

Powered by SkyDragon ROM
[One (M8) Themes and Apps] ineedone:
It took several weeks, but it was really worth it. Even if you just do only some fonts it can be a very nice addition to a theme
[One (M8) Themes and Apps] 2WildFirE:
You guys done a great job!

Powered by SkyDragon ROM
[One (M8) Themes and Apps] Kiray1982:
great, now i have to modify framework-res.apk > 3rd party apps match htc-themes.

thx
[One (M8) Themes and Apps] ineedone:
If you figure that one out , we 'll be happy to know..
[One (M8) Themes and Apps] Punka-res.apk:
I hope somebody will manage to apply that to the Keyboard :)

I tried lot of things in layouts and styles but without good results...
[One (M8) Themes and Apps] 2WildFirE:
+1 here

Powered by SkyDragon ROM