GitHub Issue | n/a |
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-11-13T23:40:33.000+0000 |
Affected Version/s | Release 3.1.3 |
Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 API, 2013 Sprint 23 API, Release 3.2.0 |
Components | iOS |
Labels | ios, ios7, module_navwindow, navbar, navigation, navigationWindow, qe-testadded |
Reporter | Ygor Lemos |
Assignee | Vishal Duggal |
Created | 2013-10-05T00:39:39.000+0000 |
Updated | 2014-11-30T00:12:02.000+0000 |
We should allow users to set the Window titleColor without having to create a custom Label and setting it as the titleControl since you can do this natively (at least on Interface Builder).
Ideally, beside the navTintColor and the tintColor window parameters we should have a parameter called titleColor where the user can define the color for the title text on the NavBar.
Also we should map titleShadowColor, titleShadowOffset and titleFont for setting a title shadow color, offset and font as those are all available natively on IB.
Those are all supported natively on the Interface Builder and should be mapped to Ti.
You can customize font, shadow and color of title in navBar Test Case
Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/4801
Tested with : OSX: 10.8.5 Xcode:5.0 Appcelerator Studio: 3.2.0.201310181700 SDK:3.2.0.v20131018154951 acs:1.0.7 alloy:1.2.2 npm:1.3.2 titanium:3.2.0 titanium-code-processo:1.0.3 Device: iPod touch 2 (v iOS7)
This PR has caused a regression. Reopening to fix
Test case for regression. Note that the default back button title does not show.
Pull pending for regression https://github.com/appcelerator/titanium_mobile/pull/4962
Closing ticket as fixed. Verified the window.title color can be set and the regression test case; the default back button title shows up now. Tested on: Titanium Studio, build: 3.2.0.201311221859 SDK build: 3.2.0.v20131122172908 CLI: 3.2.0-alpha Alloy: 1.3.0-alpha6 Xcode: 5.0.2 Device: iphone 5 (6.1.3), iphone 5 (7.0.2)
Broken in the latest 3.4.2 Build (3.4.2.v20141125154126). The color property is not honored in the titleAttribute. Expected behaviour: http://abload.de/image.php?img=expected4dzns.png Actual behaviour: http://abload.de/image.php?img=resultrqzzi.png Would be great to be fixed in the 3.4.2.GA, thank you!.
Correction: Everything perfect, using the color-property in the titleAttributes object: titleAttributes: { color: "#fff" }