mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: rename variable
This commit is contained in:
@@ -598,8 +598,8 @@ export class BottomNavigation extends TabNavigationBase {
|
||||
tabItemSpec.backgroundColor = backgroundColor ? backgroundColor.android : this.getTabBarBackgroundArgbColor();
|
||||
|
||||
// COLOR
|
||||
let rowColor = this.selectedIndex === tabStripItem._index ? this._selectedItemColor : this._unSelectedItemColor;
|
||||
const color = rowColor || titleLabel.style.color;
|
||||
let itemColor = this.selectedIndex === tabStripItem._index ? this._selectedItemColor : this._unSelectedItemColor;
|
||||
const color = itemColor || titleLabel.style.color;
|
||||
tabItemSpec.color = color && color.android;
|
||||
|
||||
// FONT
|
||||
@@ -612,7 +612,7 @@ export class BottomNavigation extends TabNavigationBase {
|
||||
// ICON
|
||||
const iconSource = tabStripItem.image && tabStripItem.image.src;
|
||||
if (iconSource) {
|
||||
const iconInfo = this.getIconInfo(tabStripItem, rowColor);
|
||||
const iconInfo = this.getIconInfo(tabStripItem, itemColor);
|
||||
|
||||
if (iconInfo) {
|
||||
// TODO: Make this native call that accepts string so that we don't load Bitmap in JS.
|
||||
|
||||
@@ -669,8 +669,8 @@ export class Tabs extends TabsBase {
|
||||
tabItemSpec.backgroundColor = backgroundColor ? backgroundColor.android : this.getTabBarBackgroundArgbColor();
|
||||
|
||||
// COLOR
|
||||
let rowColor = this.selectedIndex === tabStripItem._index ? this._selectedItemColor : this._unSelectedItemColor;
|
||||
const color = rowColor || nestedLabel.style.color;
|
||||
let itemColor = this.selectedIndex === tabStripItem._index ? this._selectedItemColor : this._unSelectedItemColor;
|
||||
const color = itemColor || nestedLabel.style.color;
|
||||
tabItemSpec.color = color && color.android;
|
||||
|
||||
// FONT
|
||||
@@ -683,7 +683,7 @@ export class Tabs extends TabsBase {
|
||||
// ICON
|
||||
const iconSource = tabStripItem.image && tabStripItem.image.src;
|
||||
if (iconSource) {
|
||||
const icon = this.getIcon(tabStripItem, rowColor);
|
||||
const icon = this.getIcon(tabStripItem, itemColor);
|
||||
|
||||
if (icon) {
|
||||
// TODO: Make this native call that accepts string so that we don't load Bitmap in JS.
|
||||
|
||||
Reference in New Issue
Block a user