forked from vergnet/application-amicale
Changed tab focused icon color
This commit is contained in:
parent
0020c5f588
commit
2e579368a8
2 changed files with 3 additions and 4 deletions
|
@ -208,10 +208,11 @@ function TabNavigator(props) {
|
|||
let icon = TAB_ICONS[route.name];
|
||||
// tintColor is ignoring activeColor and inactiveColor for some reason
|
||||
icon = focused ? icon : icon + ('-outline');
|
||||
let iconColor = focused ? colors.tabIconFocused : colors.tabIcon;
|
||||
return <MaterialCommunityIcons name={icon} color={iconColor} size={26}/>;
|
||||
return <MaterialCommunityIcons name={icon} color={color} size={26}/>;
|
||||
},
|
||||
})}
|
||||
activeColor={colors.primary}
|
||||
inactiveColor={colors.tabIcon}
|
||||
>
|
||||
<Tab.Screen
|
||||
name="Proximo"
|
||||
|
|
|
@ -23,7 +23,6 @@ export default class ThemeManager {
|
|||
primary: '#be1522',
|
||||
accent: '#be1522',
|
||||
tabIcon: "#929292",
|
||||
tabIconFocused: "#000000",
|
||||
card: "rgb(255, 255, 255)",
|
||||
dividerBackground: '#e2e2e2',
|
||||
textDisabled: '#c1c1c1',
|
||||
|
@ -63,7 +62,6 @@ export default class ThemeManager {
|
|||
accent: '#be1522',
|
||||
tabBackground: "#181818",
|
||||
tabIcon: "#6d6d6d",
|
||||
tabIconFocused: "#ffffff",
|
||||
card: "rgb(18, 18, 18)",
|
||||
dividerBackground: '#222222',
|
||||
textDisabled: '#5b5b5b',
|
||||
|
|
Loading…
Reference in a new issue