문제

I've successfully changed the Tabs background colour and the active tab tint colour. However, I can't seem to change the tint colour of an inactive tab from grey.

enter image description here

As you can see in the image above, the "About" tab text and icon are grey.

Note that the icons are .png image files, which are both white. It looks like they are being overridden with that grey colour.

How can I make them white or another colour?

I've tried the following in my .tss file, but nothing has worked:

"TabGroup" : { 
   barColor: '#f8ac12',
   tabsBackgroundColor: '#f8ac12',
   tintColor: '#FFFFFF',
   tabsTintColor: '#FFFFFF',
   activeTabIconTint: '#FFFFFF',
},
"Tab": {
    iconIsmask: "false",
    tintColor: '#FFFFFF',  
}
도움이 되었습니까?

해결책 2

You cannot change an inactive tab's tint color so you should try this custom tab group widget.

다른 팁

The Titanium docs have a typo. The property you need to modify for the tab is "iconIsMask", not "iconIsmask". This should make iOS should keep whatever the icon's color is.

"Tab": {
  iconIsMask: false,
  tintColor: '#FFFFFF'
}

Unfortunately, the text remains gray. I'm trying to figure that out now. http://imgur.com/m805qY7

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top