|
@@ -53,6 +53,7 @@ const stylesheet = StyleSheet.create({
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
export const useStyles = ({
|
|
export const useStyles = ({
|
|
|
|
|
+ customBackgroundColorKey,
|
|
|
customBackgroundColor,
|
|
customBackgroundColor,
|
|
|
glassEffect,
|
|
glassEffect,
|
|
|
colors,
|
|
colors,
|
|
@@ -60,7 +61,7 @@ export const useStyles = ({
|
|
|
}: MenuDynamicStyle) => {
|
|
}: MenuDynamicStyle) => {
|
|
|
const styles = {
|
|
const styles = {
|
|
|
container: {
|
|
container: {
|
|
|
- backgroundColor: customBackgroundColor ? customBackgroundColor : colors.content.container.default,
|
|
|
|
|
|
|
+ backgroundColor: colors.content.container.default,
|
|
|
...webStyle({
|
|
...webStyle({
|
|
|
WebkitBackdropFilter: `blur(${glassEffect}px)`,
|
|
WebkitBackdropFilter: `blur(${glassEffect}px)`,
|
|
|
backdropFilter: `blur(${glassEffect}px)`
|
|
backdropFilter: `blur(${glassEffect}px)`
|
|
@@ -75,6 +76,14 @@ export const useStyles = ({
|
|
|
} as Mutable<ViewStyle>
|
|
} as Mutable<ViewStyle>
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ if(customBackgroundColor) {
|
|
|
|
|
+ styles.container.backgroundColor = customBackgroundColor;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(customBackgroundColorKey) {
|
|
|
|
|
+ styles.container.backgroundColor = colors.project[customBackgroundColorKey];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return styles;
|
|
return styles;
|
|
|
};
|
|
};
|
|
|
|
|
|