Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14945] iOS7: Wrong default Window NavBar barColor

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-08-27T05:24:14.000+0000
Affected Version/sRelease 3.1.2
Fix Version/s2013 Sprint 18, 2013 Sprint 18 API, Release 3.1.3, Release 3.2.0
ComponentsiOS
LabelsIOS7, Windows, navbar, qe-closed-3.1.3
ReporterThomas Neerup
AssigneeVishal Duggal
Created2013-08-23T09:27:29.000+0000
Updated2013-08-28T21:05:25.000+0000

Description

Steps to Reproduce

The default NavBar barColor on IOS 7 is not the the same as on Toolbars.

Actual Result

The NavBar is white.

Expected Result

The NavBar should be light gray.

Attachments

FileDateSize
fixed.png2013-08-28T21:05:04.000+000052106
Screen Shot 2013-08-23 at 11.21.47.png2013-08-23T09:27:30.000+000054582

Comments

  1. Ingo Muschenetz 2013-08-23

    [~thomas.neerup@eg.dk] Can you please attach a test case?
  2. Olga Romero 2013-08-23

  3. Thomas Neerup 2013-08-26

    Testcase
       <Alloy>
       	<TabGroup>
       		<Tab title="one" id="tabone">
       			<Window backgroundColor="red" tabBarHidden="true">
       				<TableView  style="Titanium.UI.iPhone.TableViewStyle.PLAIN">
       					<TableViewSection headerTitle="Header" >
       						<TableViewRow title="Row title"></TableViewRow>
       						<TableViewRow title="Row title"></TableViewRow>
       					</TableViewSection>
       					<TableViewSection headerTitle="Header">
       						<TableViewRow title="Row title"></TableViewRow>
       						<TableViewRow title="Row title"></TableViewRow>
       					</TableViewSection>
       					<TableViewSection>
       						<TableViewRow title="Row title"></TableViewRow>
       						<TableViewRow title="Row title"></TableViewRow>
       					</TableViewSection>
       				</TableView>
       				<Toolbar platform="ios" bottom="0" borderTop="true" borderBottom="false">
       					<Items>
       						<Button id="send" title="Send" style="Ti.UI.iPhone.SystemButtonStyle.DONE" />
       						<FlexSpace/>
       						<Button id="camera" systemButton="Ti.UI.iPhone.SystemButton.CAMERA" />
       						<FlexSpace/>
       						<Button id="cancel" systemButton="Ti.UI.iPhone.SystemButton.CANCEL" />
       					</Items>
       				</Toolbar>
       			</Window>
       		</Tab>
       	</TabGroup>
       </Alloy>
       
  4. Vishal Duggal 2013-08-27

    Fixed by the window rearchitecture The translucent property on Ti.UI.Window was false by default. Now it is true by default for IOS7+ to match native behavior. The toolbar has no such default property so follows native behavior. Hence the UI difference. This has been fixed in master and will soon be backported to 3_1_X for 3.1.3
  5. Olga Romero 2013-08-28

    Tested the above code and verified the fix (screenshot fixed.png) with: Mac osx 10.8.4 Mountain Lion Appcelerator Studio, build: 3.1.3.201308252005 Titanium SDK, build:3.1.3.v20130828104626 alloy:1.2.1 CLI:3.1.2 Xcode5-DP6 Devices: Ipad4 iOS 7 beta6(11A4449d) iPnone5 iOS 7 beta6

JSON Source