Skip to content

Commit

Permalink
add box shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
glennsl committed Jan 21, 2020
1 parent 8735d1c commit 77f00ba
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions src/Components/ContextMenu.re
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,13 @@ module Menu = {
backgroundColor(theme.menuBackground),
color(theme.menuForeground),
width(Constants.menuWidth),
boxShadow(
~xOffset=-5.,
~yOffset=-5.,
~blurRadius=25.,
~spreadRadius=-10.,
~color=Color.rgba(0., 0., 0., 0.0001),
),
];
};

Expand Down Expand Up @@ -172,16 +179,6 @@ module Menu = {
};

(
// TODO: BoxShadow apparently blocks mouse events. Figure out why before adding back
// <BoxShadow
// boxShadow={Style.BoxShadow.make(
// ~xOffset=-11.,
// ~yOffset=-11.,
// ~blurRadius=25.,
// ~spreadRadius=0.,
// ~color=Color.rgba(0., 0., 0., 0.2),
// (),
// )}>
<View
style={Styles.container(~x, ~y, ~theme)}
ref={node => setRef(_ => Some(node))}>
Expand All @@ -192,7 +189,6 @@ module Menu = {
})
|> React.listToElement}
</View>,
// </BoxShadow>,
hooks,
);
});
Expand Down

0 comments on commit 77f00ba

Please sign in to comment.