Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14894] iOS7: Bar Background Color Does Not Apply

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-08-27T05:12:01.000+0000
Affected Version/sRelease 3.1.2
Fix Version/s2013 Sprint 18, 2013 Sprint 18 API
ComponentsiOS
Labelsios7, ipass1
ReporterRick Blalock
AssigneeVishal Duggal
Created2013-08-16T13:34:15.000+0000
Updated2017-03-28T20:26:35.000+0000

Description

Window with a barColor does not apply that color: "#window": { title: "Comments", modal: true, barColor: "#111", backgroundColor: "#eee" },

Attachments

FileDateSize
iOS Simulator Screen shot Aug 26, 2013 10.06.44 PM.png2013-08-27T05:08:41.000+000021221
iOS Simulator Screen shot Aug 26, 2013 10.07.03 PM.png2013-08-27T05:08:42.000+000024013
iOS Simulator Screen shot Aug 26, 2013 10.09.53 PM.png2013-08-27T05:10:09.000+000018917

Comments

  1. Stefan Moonen 2013-08-19

    The strange thing is this actually worked with beta 2 and higher on Ti SDK 3.1.1, but stopped working with 3.1.2. A wild guess: beta 1 relied on tintColor, even for older apps, hence it didn't work then. Beta 2 changed that so old apps could rely on barColor again, but Ti SDK 3.1.2 started using tintColor on iOS 7, but when building apps with iOS SDK 6 it should still use barColor.
  2. Vishal Duggal 2013-08-27

    Test Code used
       var tabGrp = Ti.UI.createTabGroup({
       	backgroundColor:'white',
       	orientationModes:[Ti.UI.PORTRAIT,Ti.UI.LANDSCAPE_LEFT,Ti.UI.LANDSCAPE_RIGHT]
       })
       
       var win1 = Ti.UI.createWindow({
       	title: "Comments", 
       	barColor: "#111", 
       	backgroundColor: "#eee"
       })
       
       var win2 = Ti.UI.createWindow({
       	backgroundColor:'green',
       	title:'two'
       })
       
       var tab1 = Ti.UI.createTab({
       	window:win1,
       	title:'TAB1'
       })
       var tab2 = Ti.UI.createTab({
       	window:win2,
       	title:'TAB2'
       })
       
       tabGrp.addTab(tab1)
       tabGrp.addTab(tab2)
       
       tabGrp.open();
       
  3. Vishal Duggal 2013-08-27

    See screenshots above. Bar color does apply. The difference in color is due to the "translucent" property of window (true on IOS7+ and false on older versions). Setting translucent to false gets you the same color on IOS7 as on IOS6. Going to mark this as invalid.
  4. Eric Merriman 2017-03-28

    Closing

JSON Source