From 1a305dc74c7913f99a148d4cbd497892022d0740 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Sat, 3 Sep 2022 21:13:25 +0300 Subject: [PATCH] fix SwitchThemeMenu issues --- src/components/headerbar/ThemeSwitchMenu.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/headerbar/ThemeSwitchMenu.tsx b/src/components/headerbar/ThemeSwitchMenu.tsx index 73cb535..2934aeb 100644 --- a/src/components/headerbar/ThemeSwitchMenu.tsx +++ b/src/components/headerbar/ThemeSwitchMenu.tsx @@ -8,18 +8,17 @@ import "@szhsin/react-menu/dist/transitions/slide.css" const ThemeSwitchMenu: FunctionComponent<{ context: Context, textColor: string }> = (props) => { const { context, textColor } = props; const menuButton = light_mode ; const menuItems = context.themeManager.themes.map((theme, index) => { - const themeBackground = context.themeManager.theme.background; return ( (event.target.style.background = themeBackground)} + onMouseOver={(event) => (event.target.style.background = "transparent")} //@ts-ignore onMouseOut={(event) => (event.target.style.background = "transparent")} onClick={() => (context.themeManager.theme = theme)}>