forked from vergnet/application-amicale
Grayed out tab icons when unfocused
This commit is contained in:
parent
9e708bcf09
commit
1a15ff4589
2 changed files with 7 additions and 1 deletions
|
@ -208,7 +208,8 @@ function TabNavigator(props) {
|
|||
let icon = TAB_ICONS[route.name];
|
||||
// tintColor is ignoring activeColor and inactiveColor for some reason
|
||||
icon = focused ? icon : icon + ('-outline');
|
||||
return <MaterialCommunityIcons name={icon} color={colors.text} size={26}/>;
|
||||
let iconColor = focused ? colors.tabIconFocused : colors.tabIcon;
|
||||
return <MaterialCommunityIcons name={icon} color={iconColor} size={26}/>;
|
||||
},
|
||||
})}
|
||||
>
|
||||
|
|
|
@ -22,6 +22,8 @@ export default class ThemeManager {
|
|||
...DefaultTheme.colors,
|
||||
primary: '#be1522',
|
||||
accent: '#be1522',
|
||||
tabIcon: "#929292",
|
||||
tabIconFocused: "#000000",
|
||||
card: "rgb(255, 255, 255)",
|
||||
dividerBackground: '#e2e2e2',
|
||||
textDisabled: '#c1c1c1',
|
||||
|
@ -59,6 +61,9 @@ export default class ThemeManager {
|
|||
...DarkTheme.colors,
|
||||
primary: '#be1522',
|
||||
accent: '#be1522',
|
||||
tabBackground: "#181818",
|
||||
tabIcon: "#6d6d6d",
|
||||
tabIconFocused: "#ffffff",
|
||||
card: "rgb(18, 18, 18)",
|
||||
dividerBackground: '#222222',
|
||||
textDisabled: '#5b5b5b',
|
||||
|
|
Loading…
Reference in a new issue