mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Set tab tint color also
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<Page>
|
||||
<TabView selectedColor="green">
|
||||
<TabView tabsBackgroundColor="blue">
|
||||
<TabView.items>
|
||||
<TabViewItem title="First">
|
||||
<TabViewItem.view>
|
||||
|
@ -766,6 +766,7 @@ export class ActionBarStyler implements definition.stylers.Styler {
|
||||
private static setColorProperty(view: view.View, newValue: any) {
|
||||
var toolbar = (<android.support.v7.widget.Toolbar>view._nativeView);
|
||||
toolbar.setTitleTextColor(newValue);
|
||||
|
||||
}
|
||||
|
||||
private static resetColorProperty(view: view.View, nativeValue: any) {
|
||||
|
@ -324,6 +324,8 @@ export class TabView extends common.TabView {
|
||||
}
|
||||
|
||||
var tabBar = this.ios.tabBar;
|
||||
|
||||
tabBar.tintColor = this.color ? this.color.ios : null;
|
||||
var states = getTitleAttributesForStates(this);
|
||||
|
||||
for (var i = 0; i < this.items.length; i++) {
|
||||
|
Reference in New Issue
Block a user