Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15432] iOS7: Cannot change color of image Button added to Toolbar

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.3
Fix Version/sn/a
ComponentsiOS
Labelsbutton, ios7, toolbar
ReporterGavin Harriss
AssigneeUnknown
Created2013-10-01T02:18:55.000+0000
Updated2018-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

FileDateSize
Screen Shot 2013-10-01 at 3.17.07 PM.png2013-10-01T02:18:55.000+000091730

Comments

  1. Ingo Muschenetz 2013-10-08

    Could you please provide some sample code?
  2. Gavin Harriss 2013-10-09

    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.
  3. Ingo Muschenetz 2013-10-09

    [~gavinharriss] could you attach a test application?
  4. Gavin Harriss 2013-11-20

    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' });
  5. Unknown 2014-04-21

    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.

JSON Source