Question for themers...how do I change... - Hero CDMA Themes and Apps

So...I'm working on the next version of my Thearmo Theme, but I can't seem to find out how to change the green highlights that pop up around an icon when you long press it to move it around on your home screen. (See screen shot for reference) View attachment 329527 (except that one has blue highlights).
I have edited all the pngs already, so I think it must be in one of the .xml files.
Does anybody know where it is and how to change it? (I want to change it from green to blue). Any help is appreciated! Thanks!
(Resolved: It's in the rosie arsc file)
Another question 5/30:
How do I change the colors of the highlights in the HTC dialer when it is suggesting a person? When you dial a few numbers, it highlights any person with those numbers or letters in their contact info...where is this file located? I searched the xmls in the phone apk and the htc dialer apk, but couldn't find any green.
Does anyone know where to find these?

really? no one knows?

alexthearmo said:
So...I'm working on the next version of my Thearmo Theme, but I can't seem to find out how to change the green highlights that pop up around an icon when you long press it to move it around on your home screen. (See screen shot for reference) View attachment 329527 (except that one has blue highlights).
I have edited all the pngs already, so I think it must be in one of the .xml files.
Does anybody know where it is and how to change it? (I want to change it from green to blue). Any help is appreciated! Thanks!
Click to expand...
Click to collapse
it's colors.xml in /res/values/ in Rosie.apk. The value you need to change is 'cell_layout_drop_cell_color'.

tristan202 said:
it's colors.xml in /res/values/ in Rosie.apk. The value you need to change is 'cell_layout_drop_cell_color'.
Click to expand...
Click to collapse
you're a genius! Thanks so much! How did you find that? I'd have never have found that.

alexthearmo said:
you're a genius! Thanks so much! How did you find that? I'd have never have found that.
Click to expand...
Click to collapse
I found it by trial and error when I did my theme. It was quite annoying that it kept being green when everything else was blue.
You wouldn't by any chance know how to change the color of the green line in the pattern unlock, do you? The one that appears when drawing the pattern.

tristan202 said:
I found it by trial and error when I did my theme. It was quite annoying that it kept being green when everything else was blue.
You wouldn't by any chance know how to change the color of the green line in the pattern unlock, do you? The one that appears when drawing the pattern.
Click to expand...
Click to collapse
No, I'm sorry...I've never edited the old vanilla lockscreen. I even did a search for you and couldn't find any that used a different color besides green.
Do you have a gchat or anything like that? I might need your help with editing xml files. I've never done it before, and after some reading, it seems like it's way over my head.

alexthearmo said:
No, I'm sorry...I've never edited the old vanilla lockscreen. I even did a search for you and couldn't find any that used a different color besides green.
Do you have a gchat or anything like that? I might need your help with editing xml files. I've never done it before, and after some reading, it seems like it's way over my head.
Click to expand...
Click to collapse
U can gtalk me [email protected] ill teach u its not too hard

Papa Smurf151 said:
U can gtalk me [email protected] ill teach u its not too hard
Click to expand...
Click to collapse
Sweet! Thanks cbarlan! I'll get in touch with u tomorrow!

alexthearmo said:
Sweet! Thanks cbarlan! I'll get in touch with u tomorrow!
Click to expand...
Click to collapse
can do. just know that im free tonight and tommorow is friday night and im not usually home that night

tristan202 said:
You wouldn't by any chance know how to change the color of the green line in the pattern unlock, do you? The one that appears when drawing the pattern.
Click to expand...
Click to collapse
I love a challenge
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

JsChiSurf said:
I love a challenge
Click to expand...
Click to collapse
care to share the name of the xml my good man

JsChiSurf said:
I love a challenge
Click to expand...
Click to collapse
Jschisurf, you are a freak...in the best way possible! How the heck are you so fast and efficient?

here this will help with xml editing.

alexthearmo said:
Jschisurf, you are a freak...in the best way possible! How the heck are you so fast and efficient?
Click to expand...
Click to collapse
Lol, right place at the right time.
To be fair, I'm pretty familiar with a lot of the code surrounding lockscreens, etc, and as such, when I just saw this post, I went digging. I've viewed the XML for the PatternUnlock before, and knew from this that the specifics for the PatternUnlock are NOT in XML at all, since, when I saw the XML I could see that the PatternUnlock is an internal Android widget.
What this tells you is that the color is "likely" controlled in the smali code, and since widgets are written into the framework.jar file, this is where I went looking.
Sure enough, after decompiling, if you look at the file LockPatternView.smali, you will see references to:
CORRECT_COLOR
WRONG_COLOR
set to their respective values, and as usual, represented by a bitwise shifted color value.
If you then search out and replace the values you see these 2 variables set to throughout the file to your desired bitwise shifted colors, recompile, and drop back onto your phone, you will be good to go.

@jsChiSurf - You are a genius.
Unfortunately, I'm just learning all this stuff, and I still haven't had any success at changing the long press icon highlights to blue. Thanks to cbarlan, today I learned how to work with xml files...but I don't know how to decompile stuff yet. I heard that the apk tools thing is where it's at, but I don't know how to work with it. Too much to learn...not enough time.

alexthearmo said:
...and I still haven't had any success at changing the long press icon highlights to blue...
Click to expand...
Click to collapse
When / if you see someone reference XML as part of, for example, the '/res/values' folder, ultimately, this means it gets compiled into the 'resources.arsc' file in the root of the apk.
Therefore, if we know the default is green, if you pull open the 'resources.arsc' file in a hex-editor, and search for green in the hex (in reverse BGRA), you would search for:
1C 00 FF 00 FF
If you want it to be blue, switch it to:
1C FF 00 00 FF
Save the file, drop it back into the apk, and you are good to go.
Reference:

JsChiSurf said:
When / if you see someone reference XML as part of, for example, the '/res/values' folder, ultimately, this means it gets compiled into the 'resources.arsc' file in the root of the apk.
Therefore, if we know the default is green, if you pull open the 'resources.arsc' file in a hex-editor, and search for green in the hex (in reverse BGRA), you would search for:
1C 00 FF 00 FF
If you want it to be blue, switch it to:
1C FF 00 00
Click to expand...
Click to collapse
Wait...I don't have to decompile the arsc file? I can just open it in the hex editor as if it is an xml file? So I don't even need to use apk tools?

ok. I found the green in the arsc file. This is the blue i want : 00CED1 (it's actually dark turquoise)....but which numbers do I replace? The green is 1C FF 00 FF 00, but the blue is only 6 digits...so how do I replace 6 for 8? Where do they go in the Hex editor? THanks for your help!

alexthearmo said:
Wait...I don't have to decompile the arsc file? I can just open it in the hex editor as if it is an xml file? So I don't even need to use apk tools?
Click to expand...
Click to collapse
Not unless you prefer extra unecessary work . You can open it as if it is an XML, because that's what it is .

alexthearmo said:
ok. I found the green in the arsc file. This is the blue i want : 00CED1 (it's actually dark turquoise)....but which numbers do I replace? The green is 1C FF 00 FF 00, but the blue is only 6 digits...so how do I replace 6 for 8? Where do they go in the Hex editor? THanks for your help!
Click to expand...
Click to collapse
You're going to leave the right-most & left-most values the same.
So (and your reference above is off just a bit), as the default value for green is:
1C 00 FF 00 FF
Which would be switched to:
1C D1 CE 00 FF
That's it! A 10 second change and you are done.

Related

Battery Icons as a Percentage - A Community Collaboration

Hello there
I have been working on creating a theme for the G1 (Ghost Black) for a while now.
In the process of doing this, I became extremely interested/motivated to remove the standard battery icons (100, 80, 60, 40, 15 and 4) and replace them with 100 individual icons, each holding a percentage. This allows us to read our battery levels from the status bar, and while a better way of doing this most likely exists, this will(should?) Work for now.
Here's my issue. I have created the 100 icons, as well as the code needed for the corresponding stat_sys_battery.xml needed for this to work. All of which are located in the framework-res.apk (and in the source code, base/core/res/res). Now, I don't have access to a linux/mac machine for the next week or more...
So, is there anyone out there willing to try to recompile framework-res with a modified stat_sys_battery.xml? I believe that the xml is all we will need, so the stability of the apk itself is of little importance
I already have the images made, as well as the code needed for the xml, so its just a matter of copy and paste.
If ANYONE here has the time to help me, id really appreciate it, and it would be a great tool for everyone in the community.
The XML file and Battery Icons are attached.
Thanks in advance
-Scott
I just tried to compile it, and I can't because I don't have the pngs of 0-100. Upload those as well. Linux can't compile it without the correct resources.
toxtrepla said:
Hello there
I have been working on creating a theme for the G1 (Ghost Black) for a while now.
In the process of doing this, I became extremely interested/motivated to remove the standard battery icons (100, 80, 60, 40, 15 and 4) and replace them with 100 individual icons, each holding a percentage. This allows us to read our battery levels from the status bar, and while a better way of doing this most likely exists, this will(should?) Work for now.
Here's my issue. I have created the 100 icons, as well as the code needed for the corresponding stat_sys_battery.xml needed for this to work. All of which are located in the framework-res.apk (and in the source code, base/core/res/res). Now, I don't have access to a linux/mac machine for the next week or more...
So, is there anyone out there willing to try to recompile framework-res with a modified stat_sys_battery.xml? I believe that the xml is all we will need, so the stability of the apk itself is of little importance
I already have the images made, as well as the code needed for the xml, so its just a matter of copy and paste.
If ANYONE here has the time to help me, id really appreciate it, and it would be a great tool for everyone in the community.
The XML file is attached.
Thanks in advance
-Scott
Click to expand...
Click to collapse
I replaced my icons with 100, 80 , 60, 40, 20, and 10 displayed on the battery (Shown below). =] Im going to try to create 100 images from 100 to 0 to see if it works. It might take me a while tho lol
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
But here is the recompiled and signed framework-res.apk pulled from JF 1.41 RC30
andonnguyen said:
I replaced my icons with 100, 80 , 60, 40, 20, and 10 displayed on the battery (Shown below). =] Im going to try to create 100 images from 100 to 0 to see if it works. It might take me a while tho lol
But here is the recompiled and signed framework-res.apk pulled from JF 1.41 RC30
Click to expand...
Click to collapse
trust me when I say that this sadly will not work. I have been working on these xmls forever now and it can't be done with the t-mobile versions because we don't have the source to their builds. Anyways, you wouldn't need 100 images. Android is capable of displaying a real time percentage just like it does on the screenlock. with 100 images you are going to probably decrease battery life as Android will constantly be changing the battery icon as the battery drops.
Just my .02, however, it may be possible, I dunno never tried that specific xml. *shrug*
Stericson
wouldn't it be easier to get the charging percentage, on the lock screen, to permenantly show? i know thats not quite what you had in mind but it would be very useful
excuse me for asking but what is that wallpaper! its great.
jawnsixteen said:
excuse me for asking but what is that wallpaper! its great.
Click to expand...
Click to collapse
Haha, some random grass wallpaper I found. I modified my theme so the tray handle would be transparent so any wall paper would have more real estate without a big grey square blocking some of the image at the bottom.
Stericson said:
trust me when I say that this sadly will not work. I have been working on these xmls forever now and it can't be done with the t-mobile versions because we don't have the source to their builds. Anyways, you wouldn't need 100 images. Android is capable of displaying a real time percentage just like it does on the screenlock. with 100 images you are going to probably decrease battery life as Android will constantly be changing the battery icon as the battery drops.
Just my .02, however, it may be possible, I dunno never tried that specific xml. *shrug*
Stericson
Click to expand...
Click to collapse
Can you try it stericson, to tell us if it works? =]
I would love to have this on my g1. Is it also color coded with %?
Phromik said:
I just tried to compile it, and I can't because I don't have the pngs of 0-100. Upload those as well. Linux can't compile it without the correct resources.
Click to expand...
Click to collapse
i will post up a zip of the icons when i get home from school tonight. thanks for trying this with me.
obviously, i am not positive this will work, but I am certainly hopeful it will. also, i am sure there are more efficient ways of doing this, however i do not know what they are, so for now, this is all i am able to try.
There's probably more you'd have to edit to get it working, but who knows, maybe android can recognize it just from the code you put there. We'll see.
@andonnguyen: No offense, but toxtrepla was talking about compiling it from source code, not just sticking it into a framework-res.apk. It has to be one compiled with android's source to encrypt it properly.
Phromik said:
There's probably more you'd have to edit to get it working, but who knows, maybe android can recognize it just from the code you put there. We'll see.
@andonnguyen: No offense, but toxtrepla was talking about compiling it from source code, not just sticking it into a framework-res.apk. It has to be one compiled with android's source to encrypt it properly.
Click to expand...
Click to collapse
Oh haha, I must have read his request wrong =[ Tnx Phromik.
I made something similar a while back for the Hermes, it took 100 images and worked out great and eventually with some tweaks became the default battery meter for all aftermarket ROMs. I would love to figure out how to impliment this into the Dream since it looks really sharp showing all the percentages.
For Phromik or anyone else who wants to try to help, I posted the zip of battery icons in the first post.
Good news: Here is a zip of the files compiled in ubuntu.
http://www.mediafire.com/?5dxummrf2uq
Bad news: I flashed it to my phone, and when it's plugged in, it's fine, but I unplugged it to see the icons, and my G1 crashed. Then got stuck on in infinite reboot on the android screen. You're free to try it yourself if you'd like.
Hmm, android probably got confused because it was looking for another set of icons, which show that the phone is charging. I.E.- the battery with a little lightning bolt or whatever. When you plug the phone in, android starts displaying an animation of the battery charging. These files are called stat_sys_charge_anim1, stat_sys_charge_anim2, etc... They are in the framework APK. Maybe incorporating this animation sequence into the code would give it something to do when plugged in, and prevent the freezing.
It's not for the fact that it was plugged in or not, it's just that when it tried to load the pngs of the not-plugged in icons (the numbers) then it crashes. It's not because I unplugged it or not.
I was trying this earlier on in the month, if you compile 1.5 from source with modified xml's and the extra images it works fine, but once cupcake is out and we can compile from source for our builds then surely it would be better to display 10% incremental battery icons with the percentage overlayed?
I tried the stat battery sys and the xml file all together in framework apk installed n my g1 using update.zip it installed successfully
but the charging icons were displayed but the 1 - 100 icons were not when i remove the charging it shows the battery area as blank...
the xml file needs to be coaded properly as when i tried to edit (rightclick edit) the original xml it was human un-readable & when i tried to edit your xml it was human readable
how to edit the original xml by which xml editor or is there any way to read it using eclipse ??
You have to have android source code. And when you compile the source code in linux/mac, it encodes it into it's human-unreadable code.

[Morph or Flash] Pervert Power [03-29]

Credits
Stericson for metamorph and Mikey1022 (yeah, the moderator) for the idea of this.
Screen Shot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What is this?
This is a morph that will make the unlock images transparent.
Why?
Personally, I think the lockscreen looks cleaner without the little tabs on the side or if you follow Mikey's way of thinking that if someone doesn't know how to unlock your phone, then they can't see what is on it (or something to that effect).
No, not that why. Why the name!?!
I have a twisted sense of humor, and the name makes me lol.
Download(s)
Morph
-Recommended Version to use since it will not overwrite any theme/mod previously done to framework-res.apk-
-Apply with MetaMorph-
http://android-theme-minus.googlecode.com/files/Pervert_Power.zip
Update.zip Format
-Should only be used with stock ROMs since it will overwrite everything in framework-res.apk with stock images except for the images in the morph above. Also, it will take more time for me to remember to update the update.zip's. This should only be used if you can't get metamorph working or don't want to use it.
CyanogenMod 5.0.5.3
http://android-theme-minus.googlecode.com/files/Pervert_Power_5.0.5.3.zip
Enomther 1.8.1
http://android-theme-minus.googlecode.com/files/Pervert_Power_1.8.1.zip
MoDaCo 2.1
http://android-theme-minus.googlecode.com/files/Pervert_Power_2.1.zip
Disclaimer
I do not admit to being able to protect the horribly perverted things you keep on your phone. Mainly this is just to give you that false sense of security and feeling that you can leave your phone on a table for five seconds while you look in another direction without intense fear of someone finding out all your horrible secrets. Also, if this wrecks either your phone or your life or some odd possibility of a combination of the two, then I take no responsibility, but please do share with the rest of us because I do enjoy a good laugh.
very nice bro.
I have been using transparent jog dials with the buttons. I also think it looks clean, and really shows off the live wallpapers.
Question: Do you think it's possible to make the jog dials, transparent, but with like wire frame outlines?
eViL D: said:
very nice bro.
I have been using transparent jog dials with the buttons. I also think it looks clean, and really shows off the live wallpapers.
Question: Do you think it's possible to make the jog dials, transparent, but with like wire frame outlines?
Click to expand...
Click to collapse
Should be easy enough since it is just images. I can try and play around with it some tomorrow (or well I guess it would be today, but I don't consider it a new day until I wake up).
Getting an error
The theme you selected is invalid because the theme control file could not be read and may be missing
Click to expand...
Click to collapse
Nevermind... user error... it was caused by me renaming the .zip file... Sorry, first time MetaMorph user here
I like it
cool transparent.... even now someone still doesnt know how to unlock it...
Used to do this with my iPhone and even iPhone users couldn't unlock it lol!
I might make just the unlock transparent and have the Sound On/Off slider visible if that's possable..
Thank you buddy
Nice work again. Thanks
hey pervert does this hack leave the green and red colors so when i try to slide unlock i can see where the buttons would be?
Dont want to install it to find not and have to restore rom and redo everything thanks.
Look at the screenshot, that's how your LOCKSCREEN will look prior to sliding/unlock your phone
lgkahn said:
hey pervert does this hack leave the green and red colors so when i try to slide unlock i can see where the buttons would be?
Dont want to install it to find not and have to restore rom and redo everything thanks.
Click to expand...
Click to collapse
No it doesn't. I love it!
lgkahn said:
hey pervert does this hack leave the green and red colors so when i try to slide unlock i can see where the buttons would be?
Dont want to install it to find not and have to restore rom and redo everything thanks.
Click to expand...
Click to collapse
..........
This is good stuff. I like the little bit of haptic that lets you know you're on base to unlock without having to see anything. Now to make all of the icons transparent too. I know my layout damnit.
I did some more digging and not exactly sure what your hack is doing .. i got ahold of my framework-res.apk and extracted the .pngs
at least to me it appears that to give an non shown lock screen i would only need to make
indicator_code_lock_point_area_default.png
and jog_dial_dimple_dim.png
transparent..
but you did not change either of these icons (what am i missing)
thanks
This seems awesome man. Wish I could use it. . . I always seem to have metamorph issues.
Didn't think it would be this popular lol.
lgkahn said:
I did some more digging and not exactly sure what your hack is doing .. i got ahold of my framework-res.apk and extracted the .pngs
at least to me it appears that to give an non shown lock screen i would only need to make
indicator_code_lock_point_area_default.png
and jog_dial_dimple_dim.png
transparent..
but you did not change either of these icons (what am i missing)
thanks
Click to expand...
Click to collapse
The indicator_code_xxxxxx.png images are for if you have a unlock code set. Otherwise, you will not see them. The jog_dial_xxxxx.png images are for the lockscreen images for when 2.0 first came out and there was an arc to unlock instead of the tab on the side.
If you want to leave the buttons and the little dots that appear when you drag the tabs then open the morph with 7-zip/winrar (or something else where you don't have to un-zip it to access it) and delete the following from it.
Buttons:
ic_jog_dial_sound_off.png
ic_jog_dial_sound_on.png
ic_jog_dial_unlock.png
Dots:
jog_tab_target_yellow.png
jog_tab_target_red.png
jog_tab_target_green.png
jog_tab_target_gray.png
@anyone_who_may_read_this_with_source/xml_knowledge:
What .xml or .java file would I need to modify to get rid of the unlock/sound on/sound off text when sliding it across. I don't think it is an .xml because I looked through those on github and none I saw made a reference to any specific text (and I edited them first to no avail lol)?
david1171 said:
Didn't think it would be this popular lol.
The indicator_code_xxxxxx.png images are for if you have a unlock code set. Otherwise, you will not see them. The jog_dial_xxxxx.png images are for the lockscreen images for when 2.0 first came out and there was an arc to unlock instead of the tab on the side.
If you want to leave the buttons and the little dots that appear when you drag the tabs then open the morph with 7-zip/winrar (or something else where you don't have to un-zip it to access it) and delete the following from it.
Buttons:
ic_jog_dial_sound_off.png
ic_jog_dial_sound_on.png
ic_jog_dial_unlock.png
Dots:
jog_tab_target_yellow.png
jog_tab_target_red.png
jog_tab_target_green.png
jog_tab_target_gray.png
@anyone_who_may_read_this_with_source/xml_knowledge:
What .xml or .java file would I need to modify to get rid of the unlock/sound on/sound off text when sliding it across. I don't think it is an .xml because I looked through those on github and none I saw made a reference to any specific text (and I edited them first to no avail lol)?
Click to expand...
Click to collapse
did you try res/drawable? specifically, jog_tab_bar_right_sound_off.xml & jog_tab_bar_right_sound_on.xml
Mi|enko said:
This seems awesome man. Wish I could use it. . . I always seem to have metamorph issues.
Click to expand...
Click to collapse
I added flashable versions, but if you have a theme or anything applied, then it will overwrite framework-res.apk and do away with a majority of that theme.
eViL D: said:
did you try res/drawable?
Click to expand...
Click to collapse
I glanced at it in hex, but didn't think to look at source since I was about to go to sleep when I posted this. Thanks for reminding me, I'll go look now and see if I can find anything.
ok thanks for the info.
i am trying to do something different..
ie have a transparent lock screen when you have the lock code.. ie no 3 rows of dots on the screen etc.., but leave alll the crap when you actually slide to unlock.
so i change the two files i mentioned
ie
C:\none\hack>unzip -v clear_lock.zip
Archive: clear_lock.zip
Length Method Size Ratio Date Time CRC-32 Name ("^" ==> case
------ ------ ---- ----- ---- ---- ------ ---- conversion)
0 Stored 0 0% 11-21-09 02:06 00000000 ^.nomedia
0 Stored 0 0% 03-28-10 23:35 00000000 ^framework-res/res/
0 Stored 0 0% 03-28-10 23:42 00000000 ^framework-res/res/draw
able-hdpi/
69 Stored 69 0% 03-27-10 23:28 c8f96bb2 clear_lock.thm
432 Stored 432 0% 03-29-10 11:33 66255acb framework-res/res/draw
able-hdpi/indicator_code_lock_point_area_default.png
2934 Stored 2934 0% 03-28-10 23:37 0e638afe framework-res/res/draw
able-hdpi/jog_dial_dimple_dim.png
------ ------ --- -------
and it semi works.. the locked screen has the black areas around the dots gone ie *the code lock paint file" but for some reason the center is still there which should be transparent in the jog dial dimple dim file..
anyone care to look at it and see if you can find the problem.
i am applying the patch to cyanogen 5.0.5.3 with metamorph
thanks in advance
I downloaded and tried installing the Morph and would not install i get an error saying "The theme you selected was invalid because the theme control file could not be read or may be missing" Its been awhile since i've used morph but i just downloaded the file to the root of my sd and ran morph to apply it.

HTC Dialer smart dial highlight color

Well, here we go again. What I want is to change the color of the green highlight when typing in the dialer. You know, the green highlight over the contacts. I have been looking through all xml's and smali files in HtcDialer.apk, but didn't find anything obvious.
Anyone?
tristan202 said:
Well, here we go again. What I want is to change the color of the green highlight when typing in the dialer. You know, the green highlight over the contacts. I have been looking through all xml's and smali files in HtcDialer.apk, but didn't find anything obvious.
Anyone?
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
JsChiSurf said:
Click to expand...
Click to collapse
You are just plain nasty.
I think its text selection xml in com.HTC.resources.aol. right?
alexthearmo said:
I think its text selection xml in com.HTC.resources.aol. right?
Click to expand...
Click to collapse
Strike 1 .
Hint: You don't have to leave the HtcDialer.apk...
Im not at my comp so I can't dig thru the aol. Wanna just tell us so I can do it later? Pretty please?
alexthearmo said:
Im not at my comp so I can't dig thru the aol. Wanna just tell us so I can do it later? Pretty please?
Click to expand...
Click to collapse
No. 10char booyah!
I'd really like to know the secret there. Just point me in the right direction. Like the name of a smali or such.
No secrets, it was pretty simple, and right under your nose the whole time, just not obvious given the naming in the XML.
If you look at 'res\values\colors.xml' in HtcDialer.apk, you will see:
color_search_highlight_white
color_search_highlight_black
__search_highlight_white
__search_highlight_black
While "search" and "highlight" seem correct, as soon as you see "black" and "white", you'd likely think that can't be it, the color I'm looking for is green-ish.
However, if you look at the RGB values set, for ALL of these entities, they're the SAME!
#ff7fb118
Well, certainly, black and white can't have the same RGB value, and I could tell by looking at the value set, just by the numbers, that it is a darker color, that is neither white or black.
So, I plugged the values into the color picker in Photoshop, and lo-and-behold, it was "green-ish". So I changed them, in the above example, to red, and it worked.
So there you have it. Just change these values referenced above to the color you want, and you are off to the races.
JsChiSurf said:
No secrets, it was pretty simple, and right under your nose the whole time, just not obvious given the naming in the XML.
If you look at 'res\values\colors.xml' in HtcDialer.apk, you will see:
color_search_highlight_white
color_search_highlight_black
__search_highlight_white
__search_highlight_black
While "search" and "highlight" seem correct, as soon as you see "black" and "white", you'd likely think that can't be it, the color I'm looking for is green-ish.
However, if you look at the RGB values set, for ALL of these entities, they're the SAME!
#ff7fb118
Well, certainly, black and white can't have the same RGB value, and I could tell by looking at the value set, just by the numbers, that it is a darker color.
So, I plugged the values into the color picker in Photoshop, and lo-and-behold, it was "green-ish". So I changed them, in the above example, to red, and it worked.
So there you have it. Just change these values referenced above to the color you want, and you are off to the races.
Click to expand...
Click to collapse
THANK YOU!!! I'd have never have found that. I looked and looked...you are just way more logical and experienced than I...and you dug a little deeper. For that I am indebted! I am now your indentured servant.
alexthearmo said:
THANK YOU!!! I'd have never have found that. I looked and looked...you are just way more logical and experienced than I...and you dug a little deeper. For that I am indebted! I am now your indentured servant.
Click to expand...
Click to collapse
my dialer apk doesn't have that same structure.....hmm what am i not doing right?
I've got no colors.xml in mine. apktool threw some error when decompiling, but I didn't take notice of it.
EDIT: APK Manager took care of it. Now I got it fully decompiled. Thanks again JsChiSurf.
tristan202 said:
I've got no colors.xml in mine. apktool threw some error when decompiling, but I didn't take notice of it.
EDIT: APK Manager took care of it. Now I got it fully decompiled. Thanks again JsChiSurf.
Click to expand...
Click to collapse
I was getting the same error. May I ask where you found/got APK Manager?
ccapasso said:
I was getting the same error. May I ask where you found/got APK Manager?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?p=6707033
Or you can just open up the arsc file in HxD and search for the color code that JsChiSurf found, and replace it with the color code you want. That's what I plan on doing. No need to decompile...at least...i think not.
Or you can just open up the arsc file in HxD and search for the color code that JsChiSurf found, and replace it with the color code you want. That's what I plan on doing. No need to decompile...at least...i think not.
Click to expand...
Click to collapse
Nicely done grasshopper.
-------------------------------------
Sent via the XDA Tapatalk App
JsChiSurf said:
Nicely done grasshopper.
Click to expand...
Click to collapse
I'm learning from my master.
alexthearmo said:
http://forum.xda-developers.com/showthread.php?p=6707033
Or you can just open up the arsc file in HxD and search for the color code that JsChiSurf found, and replace it with the color code you want. That's what I plan on doing. No need to decompile...at least...i think not.
Click to expand...
Click to collapse
Looks like apk manager worked as I found the string.
I did try and find the color code in resources.arsc but didn't see anything there. Was probably doing something wrong, but still curious what.
ccapasso said:
Looks like apk manager worked as I found the string.
I did try and find the color code in resources.arsc but didn't see anything there. Was probably doing something wrong, but still curious what.
Click to expand...
Click to collapse
When searching for code in xml files you need to switch the order of your code. Don't just flip the code... but swap the order of the pairs. Like this:
Was: A1 B1 C1 D1
search for: D1 C1 B1 D1

[MOD] Semi-Transparent App Drawer / Shortcuts Background (Rosie)

As I continue to "move-in" to my EVO, I'm porting over the various mods that I made for my Hero that I miss, and the mod referenced here is one of them. It is a small change that simply changes the stock opaque black background on the app drawer / shortcuts screen to a semi-transparent background instead, allowing your home screen wallpaper to show through.
You may or may not have a need for it, but since I re-created it for my EVO, I figured I'd share.
There are 2 MetaMorph's linked below. Since the hex edits I made are to the same file for another small mod I posted for removing the text from the home screen icons, one version applies the app drawer partial transparency only, while the other applies BOTH the app drawer transparency AND removes the icon text on the home screen.
Reference:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Apply App Drawer Partial Transparency <--- Apply using the latest MetaMorph Application
Apply App Drawer Partial Transparency & Remove Icon Text on Home Screen <--- Apply using the latest MetaMorph
Note: When modifying Rosie.apk with MetaMorph any of your existing widgets on all of your screens will likely get reset and need to be re-added.
Also, for some reason on the EVO, Rosie does not appear to like to be edited via MetaMorph, and as such, after applying the MetaMorph, you phone may freeze, requiring a battery pull or issuing a reboot via adb. All will have applied fine after reboot.
The above linked mods apply a transparency with "gray" as the starting point background color. If you prefer black as the partial transparency, see Here for black WITHOUT icon text, or see Here for black WITH icon text.
nice!!!
thank a lot and welcome to the Evo fam....
keep up the good work
yo you are doing some great work, but can you write a step by step instructions?
thanx
Thanks.
Sent from my PC36100 using XDA App
@jschisurf
So is there any way to just change the background like the wallpaper of choice without metamorph.
xxbabiboi228xx said:
So is there any way to just change the background like the wallpaper of choice without metamorph.
Click to expand...
Click to collapse
The wallpaper that shows through when applying this is the wallpaper you are using on your phone already.
If for whatever reason you don't want to run MetaMorph, you can download the zip and manually pull the file and insert into your Rosie.apk in the same position.
JsChiSurf said:
The wallpaper that shows through when applying this is the wallpaper you are using on your phone already.
If for whatever reason you don't want to run MetaMorph, you can download the zip and manually pull the file and insert into your Rosie.apk in the same position.
Click to expand...
Click to collapse
K thanks for the info
@JsChiSurf
ok it worked like you said not using metamorph.Its see threw but kinda white looking is there anyway to make it clearer.I took the resource.arse and replaced the other on in the rosie.apk
xxbabiboi228xx said:
ok it worked like you said not using metamorph.Its see threw but kinda white looking is there anyway to make it clearer.I took the resource.arse and replaced the other on in the rosie.apk
Click to expand...
Click to collapse
You can hex edit the values I changed in the resources.arsc file. There are 2 instances, currently set to a value of:
1C BA BA BB 7F
The last value being the level of transparency: 7F
Which is essentially 50% transparency, i.e. 255/7=127 converted to hex=7F.
So, you can increase the transparency by modifying this hex value, and change the "base" color by modifying the remaining value from right to left.
If you go too transparent, it is difficult to discern what in on the screen versus behind it, which wouldn't be good.
So your saying the more % you make it the less you will be able to see the background correct ?
xxbabiboi228xx said:
So your saying the more % you make it the less you will be able to see the background correct ?
Click to expand...
Click to collapse
That is correct.
would you happen to know if this hex edit will also work on the app drawer for launcherpro+?
i'm going to give it a try when I get home tonight...
what would be the hex code for making it 25% transparent grey?
thanks
Max_Pain said:
would you happen to know if this hex edit will also work on the app drawer for launcherpro+?
i'm going to give it a try when I get home tonight...
what would be the hex code for making it 25% transparent grey?
thanks
Click to expand...
Click to collapse
Won't work. This is specifically for Rosie.apk, which launcherpro replaces all together.
awesome, works great as always man, anychance your working on the transparent htc clock/weather widget?
rexant1 said:
awesome, works great as always man, anychance your working on the transparent htc clock/weather widget?
Click to expand...
Click to collapse
Thanks.
I'm so new to the EVO that I'm still trying to figure out what has / has not been done yet, at least from similar / favorite mods many of us former Hero owners had.
Trying to put together a list of wants / needs, starting with porting over various mods that I ran on my own phone first.
thats cool man, no rush, i too am still new to my evo, just got 3 days ago and already miss your mods that i had on my hero lol. Appreciate all the hard work you do
65% Black = 166 = A6, so 1C 00 00 00 A6
SteelH said:
Now all I gotta do is figure out hex code for 65% black like this....
65% = 166 = A6
Now just black and I'll be good to go.
1C BA BA BB 7F - 7F is % transparency, why are there 4 other hex codes? I keep finding hex color code charts but they only have 3 hex codes.. i.e: 1C BA BA
If I look up BA BB BB it looks like a gray color, perhaps that 1C isn't part of the color?
Click to expand...
Click to collapse
1C in the hex code gets you essentially to the "#" for the hex value.
You should be able to change to:
1C 00 00 00 A6
To get close to what you are looking for, with the '00 00 00' being full on black, at the transparency level you want 'A6'.
JsChiSurf said:
1C in the hex code gets you essentially to the "#" for the hex value.
You should be able to change to:
1C 00 00 00 A6
To get close to what you are looking for, with the '00 00 00' being full on black, at the transparency level you want 'A6'.
Click to expand...
Click to collapse
Yeah, I need to go less than 65% on the black with my wallpaper LOL.
You probably want .35 of 255 versus .65.
Sent from my HTC Hero

[theme] (Kratos) Black JobManager + Settings ++

Just a black version jobmanager.apk (Taskmanager).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The HELP section remains white.
BACKUP your current jobmanager.apk before proseeding!
Flash via recovery OR extract jobmanager.apk from zip and overwrite to /system/app/ ++ set owner and permissions.
Download
------
Should have done this earlier, sorry mate.
sohrab1985 finished up the submenu's in the manage application section -post18-
-----
Also upped a modified service.jar which removes the USB Debugging message in the quickpannel..
Download
Enjoy
biopsin said:
Just a black version jobmanager.apk (Taskmanager).
The HELP section remains white.
OBS! BACKUP your current jobmanager.apk before proseeding!
Flash via recovery OR extract jobmanager.apk from zip and overwrite to /system/app/ ++ set owner and permissions.
Enjoy
Click to expand...
Click to collapse
Good job, mate.
I have a question, have tried changing the color of "Mange Application" part in the "Settings" to black?
I see what u mean... no joy ..cant find the parent.
biopsin said:
I see what u mean... no joy ..cant find the parent.
Click to expand...
Click to collapse
I know where it is, its the same one for Battery Usage, but there is just one problem. I'll tell you later, I have a class now.
Nice, lets crack this nutt
Noticed Nexus S have a black version of Manage applications/battery use/Running services/Mem usage
..so guess im on a Rom hunt for now
In Settings/res/value/style.xml change:
<style name="NoTitleWhiteStyle" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:listViewStyle">@android:style/Widget.ListView.White</item>
to
<style name="NoTitleWhiteStyle" parent="@android:style/Theme.Black">
<item name="android:listViewStyle">@android:style/Widget.ListView</item>
You can see the problem in the pictures.
sohrab1985 said:
You can see the problem in the pictures.
Click to expand...
Click to collapse
Yes I see, the text is all shadow, but how did the white appear in "Running" tab, You ex already edited the running_processes_item.xml.xml?
EDIT: the 3 to color android:textColor="#ffffffff"
fixes Running tab
manage_applications_item.xml
EDIT : the 2 to color android:textColor="#ffffffff"
fixes the size in the remaning tabs
But the App label is no where to be found..might be in settingsprovider??
Great work man! not much left to edit
Want to take a swing at this?
Like the way MIUI has the bottom QuickSettings. i manage to move the music&call since it was easy, but the rest is above my head for now.
biopsin said:
Yes I see, the text is all shadow, but how did the white appear in "Running" tab, You ex already edited the running_processes_item.xml.xml?
EDIT: the 3 to color android:textColor="#ffffffff"
fixes Running tab
manage_applications_item.xml
EDIT : the 2 to color android:textColor="#ffffffff"
fixes the size in the remaning tabs
But the App label is no where to be found..might be in settingsprovider??
Great work man! not much left to edit
Want to take a swing at this?
Like the way MIUI has the bottom QuickSettings. i manage to move the music&call since it was easy, but the rest is above my head for now.
Click to expand...
Click to collapse
Good job with colors.
I will look into into it to find the app lables color.
As the bottom quickpanel I have no idea
I just know how to make those bars (sliders) thiner.
The lables color is in the framework, in value/colors.xml, but if you change the color from there it changes oher black colors insome other parts, too. So I need to find the source. of them which is in layout and change the color one by one until I find the right one.
biopsin said:
Yes I see, the text is all shadow, but how did the white appear in "Running" tab, You ex already edited the running_processes_item.xml.xml?
EDIT: the 3 to color android:textColor="#ffffffff"
fixes Running tab
manage_applications_item.xml
EDIT : the 2 to color android:textColor="#ffffffff"
fixes the size in the remaning tabs
But the App label is no where to be found..might be in settingsprovider??
Great work man! not much left to edit
Want to take a swing at this?
Like the way MIUI has the bottom QuickSettings. i manage to move the music&call since it was easy, but the rest is above my head for now.
Click to expand...
Click to collapse
wow nice one. you mind sharing how u move those quick toggle to the bottom? what does "the rest" refer to?
kay_kiat88 said:
"the rest" refer to?
Click to expand...
Click to collapse
the actual quicksettings im illutrating i want to move
This is what i manage so far..
sohrab1985 said:
The lables color is in the framework, in value/colors.xml, but if you change the color from there it changes oher black colors insome other parts, too. So I need to find the source. of them which is in layout and change the color one by one until I find the right one.
Click to expand...
Click to collapse
Yes the rabbit hole goes deep, shouldn' have taken that blue pill, to late wææ..
If you want the eaze point me with things to check out while u have classes
biopsin said:
Yes the rabbit hole goes deep, shouldn' have taken that blue pill, to late wææ..
If you want the eaze point me with things to check out while u have classes
Click to expand...
Click to collapse
Thanks mate.
We can't change the color to white, because it changes colors of some other parts, too. They have same value. You can see it in picture 1 and 2.
The best thing we can do is those two last pictures.
I'm looking for the colors of the "Running" tab, because it's white and different than other tab. At least we can make all the tabs the same.
I understand its defined by the framework. Change a global setting it spreads down the lane.
so the manage_application_item gets served a color from the colors.xml but where is this defined in the layout? does it mean that black is already defined for the @id/app_name in the framework? this will be difficult to override without redoing earlier changes, which ends in yet a new design, brilliant! its a good discovery maybe a right one as well haha
keep cookin ;
oh the blue subtext looked cooler than white.
biopsin said:
I understand its defined by the framework. Change a global setting it spreads down the lane.
so the manage_application_item gets served a color from the colors.xml but where is this defined in the layout? does it mean that black is already defined for the @id/app_name in the framework? this will be difficult to override without redoing earlier changes, which ends in yet a new design, brilliant! its a good discovery maybe a right one as well haha
keep cookin ;
Click to expand...
Click to collapse
Sorry I made a mistake, it's not in the layout, it's in "framework-res.apk/res/color/primary_text_light.xml" and "framework-res.apk/res/color/secondary_text_light.xml"
BTW, there is another problem. Changing the color of the Running tab changes other colors, including the clock on the satatus bar and other fonts on satus bar like Media Scanning and even the clock on the lock screen.
but the white text in the first picture Running tab you only change the main theme to black, and the white text was there correct?
biopsin said:
but the white text in the first picture Running tab you only change the main theme to black, and the white text was there correct?
Click to expand...
Click to collapse
Yes, It's white but the other tabs are gray and because of that I wanted to change the color to gray like the other tabs but it changes some other thigns.
The right value for Running tab is in framework-res.apk\res\color\primary_text_dark.xml.
I think this is the best think we can make considering those problems that we talked about.
I've attached both framework-res.apk and Settings.apk, if you want to try it.
sohrab1985 said:
I think this is the best think we can make considering those problems that we talked about.
Click to expand...
Click to collapse
Well if worst case cenario is white txt in Power Menu im happy to test.
biopsin said:
Well if worst case cenario is white txt in Power Menu im happy to test.
Click to expand...
Click to collapse
Don't worry, the power menu isn't white. it's dark gray.

Categories

Resources