summaryrefslogtreecommitdiff
path: root/pages/_app.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-23 16:38:14 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-23 16:38:14 +0200
commit44248cb4eb0839a111e9f5db91c96b707d76d78e (patch)
tree35254feb46c0caba402fce250e3f4e23540e768e /pages/_app.tsx
parent7f8afb99e24d546973662ef2d59cf85db9d019dd (diff)
add orphan toggle
Diffstat (limited to 'pages/_app.tsx')
-rw-r--r--pages/_app.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/pages/_app.tsx b/pages/_app.tsx
index 262ac69..68ac321 100644
--- a/pages/_app.tsx
+++ b/pages/_app.tsx
@@ -38,16 +38,14 @@ function MyApp({ Component, pageProps }: AppProps) {
trackTheme.addEventListener('message', (e) => {
const themeData = JSON.parse(e.data)
setEmacsTheme(themeData)
- console.log(themeData)
- console.log(themeData['fg-alt'])
})
}, [])
- const borderColor = emacsTheme.violet + 'aa'
- const theme =
+ const theme = useMemo(() => {
//useMemo(() => {
//console.log("theme change")
- extendTheme({
+ const borderColor = emacsTheme.violet + 'aa'
+ return extendTheme({
colors: {
white: emacsTheme.bg,
black: emacsTheme.fg,
@@ -97,6 +95,7 @@ function MyApp({ Component, pageProps }: AppProps) {
outline: '0 0 0 3px ' + borderColor,
},
})
+ }, [JSON.stringify(emacsTheme)])
// }, [emacsTheme.base1])
return (