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 = { export const CombinedDefaultTheme = {
...PaperDefaultTheme,
...NavigationDefaultTheme, ...NavigationDefaultTheme,
...PaperDefaultTheme,
colors: { colors: {
...PaperDefaultTheme.colors,
...NavigationDefaultTheme.colors, ...NavigationDefaultTheme.colors,
...PaperDefaultTheme.colors,
}, },
}; };
export const CombinedDarkTheme = { export const CombinedDarkTheme = {
...PaperDarkTheme,
...NavigationDarkTheme, ...NavigationDarkTheme,
...PaperDarkTheme,
colors: { colors: {
...PaperDarkTheme.colors,
...NavigationDarkTheme.colors, ...NavigationDarkTheme.colors,
...PaperDarkTheme.colors,
primary: '#B3E5fC', primary: '#B3E5fC',
background: '#0e0e0e', background: '#0e0e0e',
}, },

View File

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