update menu style
This commit is contained in:
parent
06428ee7d4
commit
8102466304
18
src/Home.tsx
18
src/Home.tsx
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user