[TIMOB-6366] iOS: Misspelled color name in Webcolor.m
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-11T23:11:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.1.0 |
Components | iOS |
Labels | api, module_window, qe-testadded |
Reporter | Arthur Evans |
Assignee | Arthur Evans |
Created | 2011-11-29T17:03:03.000+0000 |
Updated | 2012-10-30T22:00:58.000+0000 |
Description
Webcolor.m contains a list of color names. Most of them are standard web colors. One of them is an iOS-specific color called "stripped."
56 [UIColor groupTableViewBackgroundColor],@"stripped",
I'm pretty sure this is supposed to be "striped."
If not, I recommend we rename it to "nude" to avoid confusion.
hehe :D
Rather than relying on the fact that the background for group table views is striped, we could expose this as a constant somewhere--possibly add a set of system color values under UI/iOS.
Agreed. Ti.UI.iOS.color constants, I suppose? There's actually quite a few metacolors (Textures and the like that are treated like colors) that we can expose, including the everpopular linen.
In line with the other texture constants added recently, I propose Ti.UI.iOS.COLOR_GROUP_TABLEVIEW_BACKGROUND as a replacement for 'stripped'. I don't think there's any actual way to deprecate the 'stripped' color name unless we do an extra string comparison for every color value, which seems like a waste. **Test Case**
Expected results: stripey window.
PR merged https://github.com/appcelerator/titanium_mobile/pull/2249
Verified fixed with SDK 2.1.0.v20120618102300 on iPod 4th gen
Reopening to update labels.