Make fab text black when primary color is cyan
This commit is contained in:
parent
0f571ac3ea
commit
7feb98f7ce
8
App.tsx
8
App.tsx
|
@ -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',
|
||||||
},
|
},
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user