[REQ] Resize PNG and maintain Transparency - Nexus 4 Themes and Apps

Hey guys. I've used Irfanview to resize the attached PNGs (they are zoom buttons, to be placed in framework-res.apk) but I haven't been able to resize them without messing up the transparency. Technically, I'm upsampling them, which seems to be ok. My only problem is that I don't know how to change the settings such that I can keep the transparency base, but have the "-" and "+" opaque. It ends up being completely transparent and impossible to see on a bright background.
Could anyone upsample them for me? They are 64x64 and it'd be nice to have 128x128. Also, could you provide me some details on what settings you used to save them?
I got it done much more easily than I assumed, using pixlr. I attached the images in another post, if you care to use them in your own ROM. Just replace the identically named files in your framework-res.apk/res/drawable-xhdpi, clear the dalvik and general cache, and you should be good.

Related

'True' fullscreen in Rosie

I have been wanting this for wuite some time. To specify, I want the wallpaper in Rosie to be real fullscreen 640x480, instead of only 455 in heigth. Similar behaviour can be seen in Launcher2. The reason for wanting this, is that it will be possible to have a transparent/opaque status bar like it's possible in Launcher2.
My problem now is that I'm stuck. I have been looking through all smali and xml files within Rosie. I cannot seem to find anything related to the physical size of the wallpaper. Any help is extremely welcome.
you could try wallpaper set and save from market
hope this helps
Sent from my aHero using the XDA mobile application powered by Tapatalk
I had a look and it seems to be using
getDesiredMinimumWidth
and
getDesiredMinimumHeight
from android/app/WallpaperManager (framework.jar).
EDIT: Made some changes. Actually, nevermind. It only gets the minimum size, not the maximum.
EDIT2: If you have a look at the resulting png (in /data/data/com.htc.launcher/files) you can see that the width and height actually is 640x480.
HomerSp said:
I had a look and it seems to be using
getDesiredMinimumWidth
and
getDesiredMinimumHeight
from android/app/WallpaperManager (framework.jar).
EDIT: Made some changes. Actually, nevermind. It only gets the minimum size, not the maximum.
EDIT2: If you have a look at the resulting png (in /data/data/com.htc.launcher/files) you can see that the width and height actually is 640x480.
Click to expand...
Click to collapse
I'm not sure it is in the framework, as Launcher2 is able to use wallpaper fullscreen. If you put a opaque statusbar in framework-res.apk, you will have wallpaper behind it in Launcher2. That's what I want to achieve in Rosie. I'm 99% it has to be found in the smali or xml's of Rosie.apk.
Edit: What I am trying to say is, that if Launcher2 can do it, then Rosie should do it to, if it is the framework that is controlling the wallpaper.
I don't think it has anything to do with the height of the background, more like the blending of the statusbar. Because the top pixels of the background are actually behind the statusbar. Could also be that it does some clipping before displaying the background.
I know it doesn't has to do with the blending. If I apply a transparent statusbar, it will just turn black when in Rosie, with no wallpaper behind. In Launcher2 the wallpaper will show.

CM7 Status Bar Messed Up

Is it just me or is this a bug in the rom? I did do some systemui and framework editing but i cannot solve this. Basically the headers "ongoing" and "notifications" is given a space too large and the color is not showing up. also, beneath notifications where it is supposed to be transparent, it is not. I have played with the statusbar files but I may be mistaken. Can someone tell me what files corresponds to these issues?
I'm also having a problem with the contact pictures. There is a really ugly white frame around it. How can i get rid of this? Thanks for your help
From what I can see, you have selected a theme, either from the theme manager or from flashing a theme. If it was from the theme manager, revert to the system theme, I'm sure it will fix your notification issue. It's most likely a bug in the theme. Also, the area below the notifications on the stock system theme is 100% opaque, it's a google thing. It isn't transparent anymore. The framework editing you did probably further screwed up some UI stuff. Especially if you edited .9 png's without decompiling framework-res.apk, you could have some distorted images.
If selecting the system theme in the theme manager doesn't work, then wipe & reflash the ROM, whether it be RC1 or the latest nightly.
As for the contact frame, it's part of gingerbread. I'm sure it's a framework png in framework-res.apk somewhere, and if you can find it, and it doesn't have a .9 or a .9.png ending to the filename, then open it up in your favorite image editing tool and make the entire image transparent (as in raise the alpha of the layer). If it DOES have a .9 on the end of it, leave it alone, chances are, you'll only screw it up.
If I remember correctly, the contact frame, being a frame, is a .9 image, so you should probably live with it. If you REALLY know what you're doing, then you can decompile the apk, raise the alpha of the layer to 100% and redraw the .9patches with the draw9patch.bat included in the android sdk, or the executable draw9patch script in the linux version.
If you had no idea what I just said, then don't attempt it.
I actually am using system theme. I guess i can recheck all the statusbar files. They are the same ones I used in my cm 6.1 theme. I'll try searching for the frame in framework-res. I was looking in phone.apk and contacts.apk and couldn't find it.
edit: found the frame as quickcontact in framework-res but if i change that to be transparent, there will be a weird gap. the contact picture will not actually be larger.
So what happened was the 9patch file for the status bar headers didn't have any 9patch data. As for the background on the pulldown, i found out in cm7 it uses a new file "shade_bg" and that is working fine as well. Also the quickcontact frame was an easy fix. I just used transparent files for that and it doesnt show up and the contact pictures are bigger as well so everything is fine now
Ah, glad you found the culprit. Yeah, those 9patch pngs suck. I ran into major issues with them when making a theme for the stock rom, had to redo a lot of it after realizing I had to decompile the apk first.
Sent from my T-Mobile myTouch 3G Slide

[Request] Can Somebody Make/Help me Make a Very Blue ICS Theme?

I am looking for a relatively simple theme for stock ICS, all I want are things like the app circle, (if possible) the google bar at the top, text, and everythingelse possible in ICS Blue/black and if it isn't a pain, have the home screen horizontal scroll bar black with a blue curser like in the app menu. I have tried changing some of the .png files but don't know the location of all the files nor know how to edit .9.png files. It should be easy for anyone with half a brain, maybe time consuming though with all the files to change. If anyone can give me a detailed tutorial (haven't found a really easy-to-follow one yet) or make it for me, it would be appreciated. Thanks.
(This is technically a question, however I think it best fits this section. If this is the wrong section I'll report it to a mod.)
Bump also forgot to add I'm running the newest AOKP (26).

Creating icons from .psd file?

Hi, can somebody please advise me on how to make icons from a .psd file? I have CS6 and GIMP, (but no experience with either) and have been floundering around for the last hour or so trying to make even a single icon from the template, which is attached.
As a sidenote, I think it would be pretty cool (and useful) if somebody were to make a thread about this, as I am sure there are many people who would like to make their own icons, but don't have the know-how to do it.
Are you making a PNG icon? What I did was using a custom launcher (I use Apex in my case) so that you can change the icons on the homescreen using just transparent 96x96 PNG files.
To create PNG icons on CS6, CTRL+SHIFT+S to save as .PNG and transfer it to phone.
SomeFormOFhuman said:
Are you making a PNG icon? What I did was using a custom launcher (I use Apex in my case) so that you can change the icons on the homescreen using just transparent 96x96 PNG files.
To create PNG icons on CS6, CTRL+SHIFT+S to save as .PNG and transfer it to phone.
Click to expand...
Click to collapse
Yep, a .png icon. I'm already using a theme which has a number of themed icons, the problem is getting other nonthemed icons to look similar to the themed icons. For that, there is a .psd template included, but I don't know how to use it to create icons.
[First comment]
benjamingdelacruz said:
Yep, a .png icon. I'm already using a theme which has a number of themed icons, the problem is getting other nonthemed icons to look similar to the themed icons. For that, there is a .psd template included, but I don't know how to use it to create icons.
Click to expand...
Click to collapse
A piece of cake! Lemme explain it to you:
1. First of all, open the .PSD file you attached above.
2. Hide ("close the eye") of the layer that has the text on it (the one that says "Drag your image UN...")
3. Drag-drop the image you want to transform into icon onto the working .PSD canvas (not where the layers are as it'll open a new project)
4. Move the image generated UNDER the layer you hid on step number 2... Your icon will be created.
Then, you just have to save your image as a .PNG file by selecting this option in the drop-down menu after doing CTRL+Shift+S ("Save as a .PSD" is by default)
And that's all! Hope it's clear now!
PS: Additionally, you may change the base colour of each icon by unlocking the "Base for icon" layer and then applying a color overlay under the "Blending options" as well as hide/delete the background.
Morrissex said:
A piece of cake! Lemme explain it to you:
1. First of all, open the .PSD file you attached above.
2. Hide ("close the eye") of the layer that has the text on it (the one that says "Drag your image UN...")
3. Drag-drop the image you want to transform into icon onto the working .PSD canvas (not where the layers are as it'll open a new project)
4. Move the image generated UNDER the layer you hid on step number 2... Your icon will be created.
Then, you just have to save your image as a .PNG file by selecting this option in the drop-down menu after doing CTRL+Shift+S ("Save as a .PSD" is by default)
And that's all! Hope it's clear now!
PS: Additionally, you may change the base colour of each icon by unlocking the "Base for icon" layer and then applying a color overlay under the "Blending options" as well as hide/delete the background.
Click to expand...
Click to collapse
Thanks a ton, just a few questions.
1. After dragging and dropping the imageimage I want to change to an icon I have to "place" it, right?
2. After doing as told, what do I do if the image does not fit the base of the icon? For example, if it is too small?
3. After saving the file as a .png, the background still remains in the .png image. Is this normal?
Thanks again!
Sent from my GT-I9100 using xda app-developers app
benjamingdelacruz said:
1. After dragging and dropping the imageimage I want to change to an icon I have to "place" it, right?
2. After doing as told, what do I do if the image does not fit the base of the icon? For example, if it is too small?
3. After saving the file as a .png, the background still remains in the .png image. Is this normal?
Click to expand...
Click to collapse
First off, if you speak Spanish (I think you do because of your name), you can ask me anything using that language. My mother tongue is Spanish, but I know some English as I studied English Teaching and Translation.
Concerning your questions, here you are the answers:
1. As I said before, you have to drag-drop the picture you want as an icon FROM a folder ON the canvas/working space (where how the icon will look like is). Then, you can modify it.
2. If the image is too short/large, you have to resize it. Simply, press Ctrl+T (assuming you're using Windows. If not, CommandKey+T), hold the shift button down (in order to mantain proportions) and drag the corners of the picture to resize it. When you're done, press Enter.
3. Which background? The one with the wood texture? If so, it is quite normal if you haven't hidden the background layer. As it is locked, you have to select the background layer, press the "padlock" on the layer section of PS and then you can hide it.
As I said before, feel free to PM me any question. If it sounds confusing in English (and if it happens you know Spanish), I can explain it to you (or make a screen cast if you have some time).
~Morrissex
Thanks, I'll contact you by pm.
Sent from my GT-I9100 using xda app-developers app

[Q} Editing a non-png image

Hey fellow themers out there! So one of the things that's preventing me to call my theme complete is this gray background image on my themed MusicPlayerWT.apk (see picture). It shows up under the track info and only in landscape mode. I looked and looked for a png file that makes up that image but I just can't find it. There ain't many png files in the drawable folders for me to keep missing so it just leads to conclude that is not a png file I'm after. It's similar to the grey notification bar on the notifications dropdown in the SystemUI.apk or the white dialer background in the Phone.apk. They are not png files that you could swap or edit. I really want to either make it completely transparent or black. If anyone out there could give me a hand with this I would appreciate it (link to apk file below). Thx ahead.
mrrobc97 said:
Hey fellow themers out there! So one of the things that's preventing me to call my theme complete is this gray background image on my themed MusicPlayerWT.apk (see picture). It shows up under the track info and only in landscape mode. I looked and looked for a png file that makes up that image but I just can't find it. There ain't many png files in the drawable folders for me to keep missing so it just leads to conclude that is not a png file I'm after. It's similar to the grey notification bar on the notifications dropdown in the SystemUI.apk or the white dialer background in the Phone.apk. They are not png files that you could swap or edit. I really want to either make it completely transparent or black. If anyone out there could give me a hand with this I would appreciate it (link to apk file below). Thx ahead.
...
Click to expand...
Click to collapse
It's <color name="music_player_header_bg">#ff191919</color> in res/values-land/colors.xml my friend.
Tip: When you are looking for some background to change look what's on the foreground. In your case it took me 1 min to find it - first found that allshare button icon in drawables, then searched for the png name in /res -> found the button xml, then searched in layouts for the button xml name and found that head layout which has the background color I gave you. Simple, right...?
nijel8 said:
It's #ff191919 in res/values-land/colors.xml my friend.
Tip: When you are looking for some background to change look what's on the foreground. In your case it took me 1 min to find it - first found that allshare button icon in drawables, then searched for the png name in /res -> found the button xml, then searched in layouts for the button xml name and found that head layout which has the background color I gave you. Simple, right...?
Click to expand...
Click to collapse
Wow thx!:thumbup: It shows how much there is still to learn. Thx for the tip. I wish I could give u more thank yous but you know how that goes...
...anyways...why now do we have background images generated from xml files? Unless I'm mistaken, I don't remember running into that on previous Android releases.
Sent from my Blutiful Note3

Categories

Resources