dennis_vartan
Joined 14 years ago
Joined 14 years ago
In detail: http://clang.llvm.org/docs/ObjectiveCLiterals.html
For example, I ended up putting together some defines like this after building a bunch of UI programmatically.
#define RGB(r, g, b) [NSColor colorWithDeviceRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1]
#define RGBA(r, g, b, a) [NSColor colorWithDeviceRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
RGB(255, 104, 0) may be a bit too C-ish, but it sure beats the long form. Have similar GRAY(x) and GRAYA(x) defines for producing grayscale colors.Definitely interested to see more projects along these lines.
Important to distinguish two types of users here:
(a) Someone unfamiliar with a UI will need more visual cues, textual hints, and so on. "What does this button/icon do?" Without helpful text, they may be stuck.
(b) But, someone who has used a particular piece of UI hundreds of times will simply zero in on an app by its icon's shape/color/position. In this case, it's much better to have many varying icons rather than pretty but similar-looking circles. And in this case, it doesn't actually matter what the icons portray.
The iOS 7 Safari icon, while unsightly, catches my eye every darn time. Is that its purpose? And, again, in iOS 7, is this why the gradients follow opposite directions?
Would love if anyone could point to more "science" in this, as I'm simply speaking from my observations.
[1] http://www.dell.com/learn/us/en/04/campaigns/dell-premium-pa...