[TIMOB-15432] iOS7: Cannot change color of image Button added to Toolbar
GitHub Issue | n/a |
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 3.1.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | button, ios7, toolbar |
Reporter | Gavin Harriss |
Assignee | Unknown |
Created | 2013-10-01T02:18:55.000+0000 |
Updated | 2018-02-28T20:03:28.000+0000 |
Description
In iOS7 image on Button added to Toolbar is always blue.
The Toolbar itself can still have it's color changed, so if changed to red / blue / green / etc. can contrast badly with the Button's blue image color.
Screenshot attached.
Attachments
Could you please provide some sample code?
Actually, I've found that you can set the button color but not where you'd expect it. If you set the tintColor on the parent Window rather than the Toolbar itself then you can control the toolbar buttons color. A bit counter-intuitive! I only discovered this as I was trying to change the color of the blue button in the title bar.
[~gavinharriss] could you attach a test application?
Sorry, I've not had a chance to create a test application for you, but here's the code that does and doesn't work... This WON'T set the toolbar button colors: var toolbar = Ti.UI.iOS.createToolbar({ tintColor: '#FFF' }); This WILL set the toolbar button colors for a toolbar added to the window: var win = Ti.UI.createWindow({ tintColor: '#FFF' });
This issue was previously scheduled to be worked on in more than one sprint: * 'Release 3.0.1' (on board 'Customer Issues') * 'Later' (on board '3.1.X Triage') Starting from JIRA Agile 6.3, an issue can only belong to a single future sprint. Read more about this change: http://docs.atlassian.com/agile/docs-0630/Sprint+Marker+Migration This issue is now scheduled for future sprint 'Later' (on board '3.1.X Triage'). If this is incorrect, please update the issue accordingly. This comment was automatically generated by JIRA. If it is no longer relevant, please feel free to delete it.