Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw white shadow underneath menubar icon #5

Closed
KelseyHigham opened this issue Aug 11, 2012 · 5 comments
Closed

Draw white shadow underneath menubar icon #5

KelseyHigham opened this issue Aug 11, 2012 · 5 comments

Comments

@KelseyHigham
Copy link

The text is fine, but the icon is missing it!

@codler
Copy link
Owner

codler commented Aug 11, 2012

Why is it needed? Have you customized your menubar or? The text don't have white shadow.

Could you tell me some more details like what computer you have and a screenshot of how it look now?

@KelseyHigham
Copy link
Author

I haven't customized my menubar at all; this is all with the default OS X theme.


Every item in the OS X menubar has a faint white shadow underneath, to make it look like all the text and icons are indented.

It's clearer with a black desktop background: http://cl.ly/image/2x1v1J2i1x0B/o

And even clearer when you take a transparent screenshot of SystemUIServer: http://cl.ly/image/353o0Q0i1S3P/o

And here's a screenshot of Battery Time Remaining — with a shadow under the text, but not under the icon: http://cl.ly/image/2u0K2Q1R2p0F/o

The white shadows are at 45% opacity, and the black icons/text are at 90% opacity. So an easy way to generate the icon is to create a 50% opacity white shadow, put it underneath the black icon, merge the two, and reduce the opacity of the merged image to 90%.

(If you don't merge the images before decreasing the opacity, the white shadow will shine through the transparent black icon, and then the resulting icon will be gray rather than black.)

@codler
Copy link
Owner

codler commented Aug 11, 2012

oh ok, I didnt know or see that every icon had a white shadow underneath, but now I know. It is so small :P

Hm, I have looked around on how to apply this shadow and I cant find any easy way to program this. Ill try some more.

@codler
Copy link
Owner

codler commented Aug 22, 2012

How do you take a transparent screenshot?

@codler codler closed this as completed Aug 22, 2012
@KelseyHigham
Copy link
Author

Do Shift-Command-4, then press Space, then click on a window. (Menubar icons count as windows.)

Plenty more info here: http://take-a-screenshot.org


Thanks @guillaume-algis and @codler!

osigge pushed a commit to osigge/Battery-Time-Remaining that referenced this issue Sep 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants