{ "id": "61585", "key": "TIMOB-953", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:40:05.000+0000", "created": "2011-04-15T02:40:03.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:18:35.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

self explanatory

{html}", "attachment": [ { "id": "17896", "filename": "screen-shot-2010-08-27-at-93809-am.png", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:03.000+0000", "size": 18606, "mimeType": "image/png" } ], "flagged": false, "summary": "allow buttons in toolbars to support any valid color value (instead of just white)", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "124438", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Not fully explained. Do you mean the text color of buttons? The\nbackground color?

\n

Is this the toolbar buttons that have no boundary (IE, just the\ntext?) or of toolbar buttons that have a border?

\n

Do note that standard UIBarButtonItems (IE, the type you expect\nto see on toolbars and navBars) do not have any mechanism for\nchanging background color, text color, text font, or size of\ntext.

\n

Any exposing of these properties will require us to recreate\nsimulations instead of using the built-in native buttons.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:03.000+0000", "updated": "2011-04-15T02:40:03.000+0000" }, { "id": "124439", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

back to Nolan \"needs more info\"

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:04.000+0000", "updated": "2011-04-15T02:40:04.000+0000" }, { "id": "124440", "author": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

when you place a button in the toolbar (non-bar style), you\nshould be able to set the background color

{html}", "updateAuthor": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:04.000+0000", "updated": "2011-04-15T02:40:04.000+0000" }, { "id": "124441", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

back to Blain

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:04.000+0000", "updated": "2011-04-15T02:40:04.000+0000" }, { "id": "124442", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Okay, I've attached a screenshot from Interface Builder to\nbetter illustrate things. In the picture are two bars.

\n

The top bar is of bar button items. With bar button items, we\ncan set the text, OR a premade image, OR an image, and one of three\nstyles: Bordered, Done, and Plain. Font is unchangeable. Text color\nis unchangeable. Background color is unchangeable, as it's based on\nthe owning bar's color in the case of Bordered, and is always blue\nin the case of Done.

\n

Unrelated, but while I was researching this, I noticed a new\npremade button, of page curl, added as of 4.0, that we might want\nto introduce. It ignores the style property.

\n

The bottom bar is of buttons added to the bar. This is a\ndifferent layout, and one we use when we have backgroundImage, etc.\nThe first button is a rounded rectangle, no background color. The\nsecond is with the background color. Note that this background\ncolor is put behind the rounded rectangle, not in it. The third is\na custom button, with no rounded rectangle, but as you can see, the\nbackground color is just an ugly rectangle.

\n

Finally, I made a custom button with text font, text color,\nShadow, shadow color, and shows-touch changed to resemble the bar\nbutton item. However, this is a simulation. Worse yet, this is\nprobably incompatible with the bordered and done styles.

\n

Bouncing back to Nolan for better clarification of what's\ndesired from what we can do.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:04.000+0000", "updated": "2011-04-15T02:40:04.000+0000" }, { "id": "124443", "author": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

ok, i believe this is about using the BAR style button (like the\ntop ones in your screenshot), but being able to apply any\nbackgroundColor to the button regardless of the bar color. We may\nalready support this - can't remember.

{html}", "updateAuthor": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:04.000+0000", "updated": "2011-04-15T02:40:04.000+0000" }, { "id": "124444", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Ah. I think this is a case of the iPhone OS API being confusing.\nWe have several items that are closely related, so that they\noverlap in some areas, and sadly not in others.

\n

UIBarButtonItems (using the native terminology here) are\nactually not buttons in that they're not views, but represent the\nbuttons you see. They have no view manifestation, and can exist\nnowhere but within a bar. They come with the various built-in\nsystem icons and three backgrounds: plain, bordered (which ALWAYS\nis the bar's color), and done (which ALWAYS is the blue). As they\nare not views, there are no colors to set, nor is there anything to\ninsert backgrounds into.

\n

UISegmentedControl is represented in Titanium as both ButtonBar\nand TabbedBar. It is a view, and has a style that resembles a\nbordered-style UIBarButtonItem. When placed directly in a bar, it\ntakes on the bar's tint. However, we have fixed this to be any\ncustom color before, by placing it in a view, and then placing THAT\nin the bar. And a segmented control can have only one segment. So\nthis may be when we already supported it, IE, insert a button bar\nwith only one element, and tint that. However, as this is not a\nUIBarButtonItem, no system-provided icons are available, nor is the\nplain and done styles supported.

\n

( We also had back buttons that were showing up as the color of\nthe previous windows due to a race condition with the nav bar. This\nwas only with back buttons, and was not easily recreatable. )

\n

This makes the unfavorable situation where, in order to support\nbackground colors, we lose system icons or worse yet, make an\nalmost random set of rules about what is supported.

\n

Proposing that this be marked Invalid, with the workaround noted\nthat, when someone wants to have a background color, to use a\nbuttonbar instead.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:40:05.000+0000", "updated": "2011-04-15T02:40:05.000+0000" }, { "id": "219197", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "This should be better explained on docs. many users struggle with Buttons, Button Colors and Backgrounds, specially when those buttons are part of a Nav bar, Tabbedbar or ButtonBar.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2012-09-16T17:28:20.000+0000", "updated": "2012-09-16T17:28:20.000+0000" }, { "id": "415660", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:18:35.000+0000", "updated": "2017-03-24T18:18:35.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }