user themePreviewColor in ThemeSwitchMenu

This commit is contained in:
Halit Aksoy 2022-09-03 21:25:10 +03:00
parent ce4aab7c09
commit 40118990a7

View File

@ -22,7 +22,7 @@ const ThemeSwitchMenu: FunctionComponent<{ context: Context, textColor: string }
//@ts-ignore //@ts-ignore
onMouseOut={(event) => (event.target.style.background = "transparent")} onMouseOut={(event) => (event.target.style.background = "transparent")}
onClick={() => (context.themeManager.theme = theme)}> onClick={() => (context.themeManager.theme = theme)}>
<div style={{ background: theme.boardColor }} className="theme-color-circle" /> <div style={{ background: theme.themePreviewColor }} className="theme-color-circle" />
{theme.name} {theme.name}
<style jsx>{` <style jsx>{`
.theme-color-circle { .theme-color-circle {