update menu style

This commit is contained in:
Halit Aksoy 2022-06-04 22:38:59 +03:00
parent 06428ee7d4
commit 8102466304

View File

@ -238,7 +238,9 @@ const Home: FunctionComponent<{ initial?: number }> = ({ initial = 0 }) => {
alignSelf: "stretch", alignSelf: "stretch",
}} }}
> >
<h1 style={{ margin: "10px 0px" }}>{context.texts.Mancala}</h1> <h1 style={{ color: menuTextColor, margin: "10px 0px" }}>
{context.texts.Mancala}
</h1>
<div <div
style={{ style={{
display: "flex", display: "flex",
@ -259,7 +261,12 @@ const Home: FunctionComponent<{ initial?: number }> = ({ initial = 0 }) => {
background: context.themeManager.theme.appBarBgColor, background: context.themeManager.theme.appBarBgColor,
}} }}
menuButton={ menuButton={
<span class="material-symbols-outlined">light_mode</span> <span
style={{ color: menuTextColor }}
class="material-symbols-outlined"
>
light_mode
</span>
} }
transition transition
align="end" align="end"
@ -270,6 +277,13 @@ const Home: FunctionComponent<{ initial?: number }> = ({ initial = 0 }) => {
style={{ style={{
color: menuTextColor, color: menuTextColor,
}} }}
onMouseOver={(event) =>
(event.target.style.background =
context.themeManager.theme.background)
}
onMouseOut={(event) =>
(event.target.style.background = "transparent")
}
onClick={() => (context.themeManager.theme = theme)} onClick={() => (context.themeManager.theme = theme)}
> >
<div <div