Change background gradient without editing framework-res? - AT&T, Rogers HTC One X, Telstra One XL

A quick question for any advanced themers out there...
I am working on a custom theme for the AOSP Messaging application. I have successfully edited everything in the app EXCEPT for the holo background, which I would like to change. Specifically I want to make the Holo gradient disappear and instead have a solid color that I define. Is it possible to set the background of the APK without having to change the framework-res.apk? If so, how can I do it?
Thanks!

gridlock489 said:
A quick question for any advanced themers out there...
I am working on a custom theme for the AOSP Messaging application. I have successfully edited everything in the app EXCEPT for the holo background, which I would like to change. Specifically I want to make the Holo gradient disappear and instead have a solid color that I define. Is it possible to set the background of the APK without having to change the framework-res.apk? If so, how can I do it?
Thanks!
Click to expand...
Click to collapse
I was only able to change the background by changing the png in framework-res. That's the place I think it gets it from. It took me a while to theme the Mms.apk the way I wanted to. That was before the developers for CM made it more themer friendly in recent builds. I changed a lot of stuff around in layouts that's now located all in colors.xml.

Related

[Theme] willverduzco's PURE Blackbar for CM 6.1.1 *XML Color Import!* - Now with "4G"

[Theme] willverduzco's PURE Blackbar for CM 6.1.1 *XML Color Import!* - Now with "4G"
[About]
My goal with this was to create a bar that is PURE BLACK, unlike the gradient bar in HTC Sense, while retaining much of Sense UI's style. As such, this MORPH is heavily based on the HTC Desire Notification Bar. To my eyes, the Sense UI gradient is simply too close to black to look intentional, yet not close enough to look good. It sort of reminds me of an LCD with a back-light leakage problem. Additionally, I created a new, more streamlined notification drawer pull-down image.
This theme has THREE versions: A version with white notifications (classic edition), a version with black notifications (zip file ending with _BN), and a "Faux G" version with black notifications (zip file ending with _BN-4G).
This MORPH is intended for CyanogenMod 6 and beyond. However, it should work with almost every other HDPI ROM, assuming that you have a way to change the status bar and notification text color to white.
[Screenshots - Click to Enlarge]
"Faux G" - Black Ongoing Notifications (_BN-4G version, which I currently use)
Black Ongoing Notifications (_BN version)
White Ongoing Notifications (classic)
[Installation Instructions]
1. Download and install the latest version of MetaMorph (by Stericson) from the Market.
2. Turn on USB Debugging under the Android Settings -> Applications -> Development Menu.
3. Open MetaMorph and select "Unzip/Extract New Theme."
4. Select the appropriate version of my theme, click "Apply All," and reboot when prompted.
5. Change your carrier, clock, date, and notifications colors. (See below for instructions.)
[Changing Text Color Automatically - BN and BN-4G only for now]
-CM6.1 and beyond: Unzip Notifications_XML-FOR_CM6.1.zip and put the CMTheme folder on the root of your SDCard. Import the colors through the following: Android Settings -> CyanogenMod Settings -> User Interface -> Tweaks Extra -> Select A Theme
-CM6: Unzip Notifications_XML-FOR_BN.zip and put cmparts_ui.xml on the root of your SDCard. Import the colors through the following: Android Settings -> CyanogenMod Settings -> User Interface -> Tweaks Extra -> Import Colors from XML
[Changing the Text Color Manually - All ROMs]
BLACK ongoing notifications bar version
1. Navigate to Android Settings -> CyanogenMod Settings -> User Interface -> Status Bar Customization.
2. Change the following fields to white (#ffffffff): Battery Percentage, Clock, Carrier PLMN Label, Carrier SPN Label, Notifications Ticker, Notifications Count, Items Title Color, Items Text Color, and Items Time Color.
3. Change the following to black (#ff000000): No Notifications Title, Clear Notification Label, Ongoing Notifications Title, Latest Notifications Title.
WHITE ongoing notifications bar version
1. Navigate to Android Settings -> CyanogenMod Settings -> User Interface -> Status Bar Customization.
2. Change the following fields to white (#ffffffff): Battery Percentage, Clock, Carrier PLMN Label, Carrier SPN Label, Notifications Ticker, Notifications Count, No Notifications Title, Ongoing Notifications Title, Latest Notifications Title.
3. Change the following to black (#ff000000): Clear Notification Label, Items Title Color, Items Text Color, and Items Time Color.
[Changelog]
Classic (White Notifications) Edition
-None
Black Notifications Edition
1.2 - Discovered when looking in low light that the PNG incorporated in v1.1 wasn't truly 100% black. I replaced the PNG with a new one with RGB values of 0,0,0.
1.1 - Incorporated Eddiemc's changes for dark Notification Panels.
[Known Issues]
Classic (White Notifications) Edition
-None
Black Notifications Edition
-A very small percentage of applications employ their own methods of coloring their ongoing notification text. This cannot be changed with something like Cyanogenmod settings. This is no longer a bit issue because CM6 RC3 and beyond include a version of MusicMod that uses the system-wide notification text color.
[Future]
Classic (White Notifications) Edition
-None. This seems complete unless someone wants different icons.
Black Notifications Edition
-Look for a way to force all notification text to be white, even for troublesome apps.
[Troubleshooting]
-Morph stuck at "Applying" indefinitely? Make sure USB Debugging is enabled.
-Morph only applied to part of the bar and looks bad? Make sure you have custom notification and pulldown bars disabled. (CyanogenMod Settings -> User Interface -> Notification Colors and disable Custom Notification and Pulldown bars.) Also, if you're on CM 6.1+, go to CyanogenMod Settings -> User Interface -> Tweaks Extras -> Select a Theme and pick Stock. Reboot then reapply the theme.
-The latest version of MetaMorph works again. If you have issues applying the theme, and you have already made sure USB debugging was enabled, try the version of MetaMorph that I have uploaded as an attachment.
____
Credit: Thank you very much XebozZ for creating a wonderful base from which I created this Morph, Eddiemc for helping make the first _BN version, and obviously Cyanogen for pumping out CM6 RC!
Applied and it works great! Thanks man!
This is awesome, 5 stars. Thanks man. Pure black >>>> Desire grey IMO, and is great for showing off the great black levels of the AMOLED. I've been waiting for something like this for a long time. I've tried myself and failed.
It would also be cool if the pulldown notifiations are also black/dark with white font, I guess with the standard colors inverted. I think it's tricky it needs to be configured on an app level (I think, but am not sure). Anyways, if there's a toggle between standard/inverse color, that would also kick much ass.
Can you make an enomther version please?
Sent from my Nexus One using XDA App
Thanks. This is very nice indeed.
Thanks for the comments guys, and I'm really glad it works to your liking! And yeap, denimjunkie82. Precisely why I did it! Black looks so good on AMOLEDs!
mgorman said:
Can you make an enomther version please?
Click to expand...
Click to collapse
I'll gladly see what I can do, but unfortunately I'm actually unfamiliar with Enomther's ROMs. Could you please tell me if his ROM has a settings panel inside his ROM, in which you can enter the aRGB values for notification colors (or does his ROM let you import SpareParts XML files like CyanogenMod does)? If so, this MORPH should work with minimal or no changes. If it doesn't have that option, I'm going to have to find out a way to change the text colors first.
denimjunkie82 said:
It would also be cool if the pulldown notifiations are also black/dark with white font, I guess with the standard colors inverted. I think it's tricky it needs to be configured on an app level (I think, but am not sure). Anyways, if there's a toggle between standard/inverse color, that would also kick much ass.
Click to expand...
Click to collapse
Thanks to Eddiemc, this is now done! Screenshots and instructions have been updated!
Thanks again for the comments and for trying it out, guys!
denimjunkie82 said:
It would also be cool if the pulldown notifiations are also black/dark with white font, I guess with the standard colors inverted. I think it's tricky it needs to be configured on an app level
Click to expand...
Click to collapse
Nope, as easy as walking, on cm6
Swap "status_bar_item_background_normal.9.png" in framework res to one that's black instead of white, and change text to white in CM settings.
Works on all app notifications, I'm using it myself. Black's nicer than white!
-e
edit... throw the png file into the framework res folder of the original morph, or just use the modified version attached (hope the op doesn't mind..)
Then change item notifications color in cm settings to white (#ffffffff)
Eddiemc said:
Nope, as easy as walking, on cm6
Swap "status_bar_item_background_normal.9.png" in framework res to one that's black instead of white, and change text to white in CM settings.
Works on all app notifications, I'm using it myself. Black's nicer than white!
-e
edit... throw the png file into the framework res folder of the original morph, or just use the modified version attached (hope the op doesn't mind..)
Then change item notifications color in cm settings to white (#ffffffff)
Click to expand...
Click to collapse
Of course I don't mind. It saved me from figuring out the filename myself, which is much appreciated, so thank you very much for your contribution!
Appropriately, I have added your name in the _BN Morph, and in the original post.
I love it! I've always wanted to change that color. It works great thanks.
Can anyone verify the white text on black bars works on the Music app and Quick Settings? I've tried various morphs a few months ago and these apps leave black text in the Notifications panel no matter what, but that was before the Spare Parts method in Cyan 508-600RC.
level5music said:
Can anyone verify the white text on black bars works on the Music app and Quick Settings? I've tried various morphs a few months ago and these apps leave black text in the Notifications panel no matter what, but that was before the Spare Parts method in Cyan 508-600RC.
Click to expand...
Click to collapse
First issue found... I've added it into the main post. Thanks for letting me know. Unfortunately, the spare parts method doesn't seem to change the music player text. A decent alternative would be to use the classic version with the black text and white ongoing notifications menu, as the text would appear as normal. I believe that these apps must be using some code on a per-app level that does this, as there simply isn't another field that I could see modified. This reason why they did this is likely because it has two slightly different colors (a black and a grey) in that notification.
Hopefully someone knows how to change the music player's text in the notification bar.
Here is a picture of the issue:
EDIT: Looks like it's true. It's probably part of the app itself.
In all honesty, though, this is a very minor issue, and if you don't know what song you're playing through the media player from your own music library, there may be another problem, haha. That said, I will see if anyone has come up with a real solution. I don't want to tell you to hold your phone a different way, haha. Oh wait, that's another company.
Awesome notification bar!
I'd like the gradient on the notification bar itself, with a gradient on the pull down notification. I somehow managed to mix this Metamorph, with another and got what I wanted (by mistake!).
If it's not too much trouble, could I get a .zip file (exactly like the you uploaded) but with a gradient (like the desired) notification bar?
looks good ima trying it out now what i been looking for
level5music said:
Can anyone verify the white text on black bars works on the Music app and Quick Settings? I've tried various morphs a few months ago and these apps leave black text in the Notifications panel no matter what, but that was before the Spare Parts method in Cyan 508-600RC.
Click to expand...
Click to collapse
Notifications on black:
Yea, I just noticed this just now. As op states above, music app doesn't work properly.
I'm using spotify, so I never checked the music app... (btw spotify get white text as it should)
Quick Settings actually has an embedded option to change the text color (normal: white, inverted: black) so so that's no problem
All other apps I've seen works well (gets white text).
On cm6 we are all using the modded music app by Eliot Stocker, so I reckon he should be able to add an option to invert text (like quicksettings) if some of us asks him.
-e
edit....
If someone (op *hint hint*) want to ask him about notification color invert: http://twitter.com/eliotstocker
edit2...
For the more hardcore ones, adb pull the music app, change the xml settings for notification color in Music.apk\res\layout\statusbar.xml (this is beyond me atm, but I might give it a stab) adb push the app back, and voila you'll have white text
edit3...
I pass.
Here are the files if someone can pull this off. As far as I know, due to the way android works, the xml file needs to be hex edited.. I just cannot work out where the changes needs to be
edit4...
Even though I don't use the music app, this issue really bugs me..
If we can get the xml file changed, it can even be included in the morph (or as a seperate morph) so nobody has to adb.
I just posted in eliots thread about the settings option, so perhaps that works out, if not I'll ask his permission to pm around a bit to find someone who can edit the xml.
Now I'll stop editing this post
Is it possible to have an update.zip version of the Black Ongoing Notifications (new _BN version) please.
Don't like to isntall metamorph to install theme.
Black is really beautiful
Thanks.
F.
Wow, good job. I don't use CM myself but I know a lot of people will appreciate this.
Just a quick status update to let everyone know that the issue will be fixed soon.
Eliot Stocker, who wrote the music app in CM6 just got back to me saying that he would add the feature into the next release. Thanks for the twitter link Eddiemc, and thank you again for all of your help!
Eddiemc said:
Notifications on black:
Yea, I just noticed this just now. As op states above, music app doesn't work properly.
I'm using spotify, so I never checked the music app... (btw spotify get white text as it should)
Quick Settings actually has an embedded option to change the text color (normal: white, inverted: black) so so that's no problem
All other apps I've seen works well (gets white text).
On cm6 we are all using the modded music app by Eliot Stocker, so I reckon he should be able to add an option to invert text (like quicksettings) if some of us asks him.
-e
edit....
If someone (op *hint hint*) want to ask him about notification color invert: http://twitter.com/eliotstocker
edit2...
For the more hardcore ones, adb pull the music app, change the xml settings for notification color in Music.apk\res\layout\statusbar.xml (this is beyond me atm, but I might give it a stab) adb push the app back, and voila you'll have white text
edit3...
I pass.
Here are the files if someone can pull this off. As far as I know, due to the way android works, the xml file needs to be hex edited.. I just cannot work out where the changes needs to be
edit4...
Even though I don't use the music app, this issue really bugs me..
If we can get the xml file changed, it can even be included in the morph (or as a seperate morph) so nobody has to adb.
I just posted in eliots thread about the settings option, so perhaps that works out, if not I'll ask his permission to pm around a bit to find someone who can edit the xml.
Now I'll stop editing this post
Click to expand...
Click to collapse
imfloflo said:
Is it possible to have an update.zip version of the Black Ongoing Notifications (new _BN version) please.
Don't like to isntall metamorph to install theme.
Black is really beautiful
Thanks.
F.
Click to expand...
Click to collapse
Glad you like it! I'll gladly make you an update.zip. Are you on clockwork recovery or Amon_RA? (I haven't ever signed an update.zip, and Amon_RA's recovery image requires signed updates, but clockwork doesn't.)
stewroids said:
Awesome notification bar!
I'd like the gradient on the notification bar itself, with a gradient on the pull down notification. I somehow managed to mix this Metamorph, with another and got what I wanted (by mistake!).
If it's not too much trouble, could I get a .zip file (exactly like the you uploaded) but with a gradient (like the desired) notification bar?
Click to expand...
Click to collapse
Glad you like it. Actually, if you want a bar with gradients, though, you should check out XebozZ's gradient bar. He did a great job with that. My goal with this one was to not have a gradient so that it shows off the wonderful AMOLED blacks that we have!
willverduzco said:
Glad you like it! I'll gladly make you an update.zip. Are you on clockwork recovery or Amon_RA? (I haven't ever signed an update.zip, and Amon_RA's recovery image requires signed updates, but clockwork doesn't.)
!
Click to expand...
Click to collapse
Just try to push framework-res.apk copy all file in it and pull back but after a reboot launcherpro loop and woon't run so i was oblige to wipe my device.
I forgot to make Nandroid backup under Amon_RA
Now after a new reboot i have a fresh CM6 with black notification bar but text are all black i'll try to change theme manually in CM6 custom option menu.
BTW thanks.
Applied, it is a very nice bar. Thanks!
edit - spelling

[Q] Ongoing event, Dropdown text color problems

I've installed/customized a theme exactly as I want with Black status bar, and black pulldown background with white text. I properly Deodexed and used the compatible services.jar, however, the following events still show up with black text in the dropdown list:
-In-Call timer status
-Download Progress
-Any item that is an event in progress
I've tried 4 different services.jar and all of them had the same problem, I tried editing the status bar XML files, only to have the phone refuse to load.
I notice 90% of themes leave the dropdown tabs gray, and I assume this is the reason, but does anyone have the files necessary to make all text in the dropdown white?
If you want to attach your framework-res.apk I can give this a go. I'm pretty sure this is in the /res/layout/status_bar_latest_notification.xml file or something titled similiarly.
Anyways.... I can give you some help if wanted...
I've attached my framework-res.apk, let me know what you can do. Thank You!
No problem. I will give this a go after work.
Sent from my DROIDX using XDA App
Guyinlaca said:
I've attached my framework-res.apk, let me know what you can do. Thank You!
Click to expand...
Click to collapse
In looking at your framework...is this the current framework that you thought SHOULD have the white text? Or a unmodified framework. In looking at it...it looks like the text should be white... At least from what theming I have done... You have white (ffffff) set in the correct places for the dropdown notification bar in /res/layout/status_bar_latest_event_content.
What ROM/theme are you using? Also are you on the 2.3.34 update? i'm still on 2.3.15... So I don't want to throw a framework on my phone that may cause issues =?
If you can give me some more info... I was digging through it tonight.
Thanks
I am using the 2.3.340 firmware, standard rom but rooted and deodexed.
I used that exact framework with 2.3.15 with the same issue. My theme is nearly perfect except for that, so it's kind of annoying.
Hm... I'll keep looking over it. So this current framework SHOULD have white text but didn't?
Try also looking at the styles.xml and colors.xml in the /res/layout folder. I.m winning if things need to match up and something in one of those files is overwriting your white color
Sent from my DROIDX using XDA App
Correct me if I'm wrong but doesn't the services.jar hold the information to change the colors in the drop down events?
trebz said:
Correct me if I'm wrong but doesn't the services.jar hold the information to change the colors in the drop down events?
Click to expand...
Click to collapse
I'm pretty sure it just controls color for the clock, ticker, and the "titles" for the sections in the drop-down such as "latest" or "ongoing". It doesn't actually change the text color of notifications in the drop down.
Can u help me too
I had this issue with derezzed too, a lot of ongoing event text colors are controlled by each individual application (something I saw with dropbox and facebook uploads) so the options are to either customize each application as you get it, ignore the unreadable text, or simply change the .png to a different color that provides a similar feel while being able to read black text... or another artsy thing would be to use rounded corners to make each notification look like an individual bubble instead of a continuous pane
edit:
totally didnt see how old this post was... oops

[Q] A noob developer question ?

I just decompiled the lg settings app from v28b.
I want to change it's background from white to black and naturally the fonts from black to white.
How can achieve this ? Where to look for them ? In html codes somewhere in there , or is there a .png like the rest of the icons?
Thanks in advance.
boltthrower56 said:
I just decompiled the lg settings app from v28b.
I want to change it's background from white to black and naturally the fonts from black to white.
How can achieve this ? Where to look for them ? In html codes somewhere in there , or is there a .png like the rest of the icons?
Thanks in advance.
Click to expand...
Click to collapse
I hope that this can be done the help of our devs. The white background that LG forced on ICS goes against their previous dark color scheme in GB and Froyo and against the dark scheme of the 'clear' Google ICS and JB. And the white gets really annoying to the eye, because most of the apps and ICS launchers use the default black scheme.
In Optimus 2X ICS some have already changed it to dark like the one here:
http://forum.xda-developers.com/showthread.php?t=2122413
I IMed the guy who did that and he told me that perhaps the only thing that could be working from his files is the theme for the launcher. But the settings and the rest of the stock apps won't work.
In order to modify everything to dark theme, we need to get some developer to modify the framework and lge-res.apk and a couple of other apks like the LGphone.apk, the LGcontacts.apk and some more.
I hope that if some dev is reading this, he could modify the above apks so we can change the color to black.
botson71 said:
I hope that this can be done the help of our devs. The white background that LG forced on ICS goes against their previous dark color scheme in GB and Froyo and against the dark scheme of the 'clear' Google ICS and JB. And the white gets really annoying to the eye, because most of the apps and ICS launchers use the default black scheme.
In Optimus 2X ICS some have already changed it to dark like the one here:
http://forum.xda-developers.com/showthread.php?t=2122413
I IMed the guy who did that and he told me that perhaps the only thing that could be working from his files is the theme for the launcher. But the settings and the rest of the stock apps won't work.
In order to modify everything to dark theme, we need to get some developer to modify the framework and lge-res.apk and a couple of other apks like the LGphone.apk, the LGcontacts.apk and some more.
I hope that if some dev is reading this, he could modify the above apks so we can change the color to black.
Click to expand...
Click to collapse
I just hate the lg's themes. They are horrible man.
Google is so much better at this , why screw up beautiful work ?
I'm using third party sucky apps just to get the jelly bean feeling.
It's stupid.
Anyway , at least it drove me to learn a little...
Now i know how to decompile , edit and recompile apks.
We already have a theme for that ,, but for ICS Ported .
however ... here is the link :-
http://forum.xda-developers.com/showthread.php?t=2071992
Sent from my LG-P880 using xda app-developers app
OS_Hacking said:
We already have a theme for that ,, but for ICS Ported .
however ... here is the link :-
http://forum.xda-developers.com/showthread.php?t=2071992
Click to expand...
Click to collapse
Thanks for the link. Do you think that this theme could work on the v28b/v30b ICS as well?

Emui 3.1 notification bar colour

Does anyone know how to change the notification bar colour from black to white?
Do you mean the regular emui notification bar? It adapts to the background image you set, so just set a brighter image or edit your current background to include a white bar at the top, though that would look a bit ugly.
If you mean the background when you pull the notification bar down, then you should have a look at custom emui themes, or even make your own somehow.
No i meant the actual expanded notification bar as the black doesn't work well with most apps and huawei uses black font as well when displaying notifs. I only think huawei themes work with stock launcher? And i use nova... Thanks anyway
I think the themes work everywhere, no matter what launcher (at least the notification bar part should). Not all themes include a modified notification bar though, so I think you could try one that definitely does change the notification bar and see it works for you in Nova launcher as well.
I'm attaching a theme I know for sure features a different notification bar for you to try. I also know it's terribly ugly but it's just for testing purposes, once you confirm that it does change the notification bar color for you, we could start disassembling the theme to only take out the interesting parts and adapt them to a different theme after changing the image from greenish to something more white-ish
PS. I had to change the extension to .zip for the board to accept the attachment, please change it to .hwt after you download it and move it into "/sdcard/HWThemes" so the theme manager can find it.
micechal said:
I think the themes work everywhere, no matter what launcher (at least the notification bar part should). Not all themes include a modified notification bar though, so I think you could try one that definitely does change the notification bar and see it works for you in Nova launcher as well.
I'm attaching a theme I know for sure features a different notification bar for you to try. I also know it's terribly ugly but it's just for testing purposes, once you confirm that it does change the notification bar color for you, we could start disassembling the theme to only take out the interesting parts and adapt them to a different theme after changing the image from greenish to something more white-ish
PS. I had to change the extension to .zip for the board to accept the attachment, please change it to .hwt after you download it and move it into "/sdcard/HWThemes" so the theme manager can find it.
Click to expand...
Click to collapse
Thanks will try

How to easily modify existing Theme

I reluctantly upgraded to android 10 and the basic Black theme I was using is now showing up with White notifications instead of black.
Is there a quick and simple way to modify an existing theme. I suspect not, but figured I would ask.
You could use,#hex or synergy to make a custom theme.
Alternatively if you wait until tomorrow, Goodlock and its apps are supposed to be OneUI2 compatible (3 Feb) Quickstar is the app that mods quick settings and notifications. Works on non root.
Thanks I've heard of hex installer but never used it. The other 2 I've never heard of. Will any of them allow you to edit an existing app or are you starting from scratch on all 3?
Thanks
I just installed hex installer, was not anything exciting. I was able to change the notification color but my default sms app had undesired affects. Hex installer alone will probably not cut it.
Will look at the other 2.
Im using synergy and substratum lite, with mainly liv dark and a few other themes where liv dosent have an overlay .
My current notifications are set to the overall background and i used an overlay to remove notification separation bar.
Thanks for the tip. I'm going to request to samsung to see if i can get their development tool for theming. Likely won't get far but worth a try

Categories

Resources