Gradients Shmadients
Jeff Dlouhy - Wednesday, June 06, 2007 at 10:50 PM
I have finally made some visible progress on Tabposé! Tonight I was able to get a grey to white gradient to display in my TabposeView. After reading up on the not so friendly CGShading I set out to get this basic component of Tabposé done. I think that this gradient helps the overall look and feel of Tabposé, similar to how exposé and dashboard have that semi-transparent background. You can find a boring screenshot of my progress here.
As I said above, CGShading is no walk in the park. Here are some links that you might find useful when you decided to add gradients to your apps. Some people will use images to get this effect; however, this will cause problems when we start seeing higher DPI screens and resolution independence in Leopard. CGShading is a wordy, yet elegant solution.
- Pimp My Code, Part 3: Gradient TableViews
- CocoaDev: CGShadingInMoreDetail
- Quartz 2D Programming Guide
With this canvas I can now start to paint my picture…
Jeff Dlouhy says:
June 10th, 2007 at 3:35 amLet us not forget that this is still very early on in development. Also I don’t know if we want it to be configurable to that extent. I know that your userchrome.css was a general question, but just to clear things up, Tabpose will not be running on top of Gecko. So, you will not be able to modify it with CSS.
But I am open to ideas.
Thanks for the input!


tempques says:
June 9th, 2007 at 2:38 amI’m not trying to criticize your efforts at all, it seems this was a great accomplishment so far. But will the user be able to use a single-colored background for TabposeView, even if it can only be achieved by adding code to something like userchrome.css?
I am excited about this project.