Make fab text black when primary color is cyan

This commit is contained in:
Brandon Presley 2022-09-24 15:59:52 +12:00
parent 0f571ac3ea
commit 7feb98f7ce
2 changed files with 5 additions and 4 deletions

View File

@ -26,19 +26,19 @@ export type DrawerParamList = {
};
export const CombinedDefaultTheme = {
...PaperDefaultTheme,
...NavigationDefaultTheme,
...PaperDefaultTheme,
colors: {
...PaperDefaultTheme.colors,
...NavigationDefaultTheme.colors,
...PaperDefaultTheme.colors,
},
};
export const CombinedDarkTheme = {
...PaperDarkTheme,
...NavigationDarkTheme,
...PaperDarkTheme,
colors: {
...PaperDarkTheme.colors,
...NavigationDarkTheme.colors,
...PaperDarkTheme.colors,
primary: '#B3E5fC',
background: '#0e0e0e',
},

View File

@ -11,6 +11,7 @@ export default function MassiveFab(
<FAB
{...props}
icon="add"
color={color === '#B3E5fC' ? 'black' : undefined}
style={{
position: 'absolute',
right: 10,