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