github / Rebel

Cocoa framework for improving AppKit
Other
1.13k stars 111 forks source link

Shadowed text field cell #67

Closed dannygreg closed 11 years ago

dannygreg commented 11 years ago

Everyone loves shadows on text these days. It's hot shit but AppKit kinda sucks at it big time.

This wraps a simple API for setting shadow on a text field which can change depending on the cell's background style.

Classic use case here is labels within a cell view within a table view. Commonly you want a flat look when the cells aren't selected but something with a bit more pop when it is.

With this API you would simply set the shadow when the background style was NSBackgroundStyleDark.

You can also set a shadow which will be used as a fallback for all background styles (although explicitly set shadows will be preferred).

joshaber commented 11 years ago

:bamboo:

dannygreg commented 11 years ago

:tangerine:

joshaber commented 11 years ago

@dannygreg Still some spelling/style notes there :P

dannygreg commented 11 years ago

Wat. I guess I hadn't refreshed the page or something?!

dannygreg commented 11 years ago

:tangerine: for reals this time.

jspahrsummers commented 11 years ago

:pear:

jspahrsummers commented 11 years ago

:+1:

dannygreg commented 11 years ago

:pineapple:

jspahrsummers commented 11 years ago

MERGING, SCREW THAT @joshaber GUY.

jwilling commented 11 years ago

:speak_no_evil: