-
Notifications
You must be signed in to change notification settings - Fork 191
[Feature] support dark mode #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Please apply it |
|
||
function ThemeButton() { | ||
const { theme, setTheme } = useTheme(); | ||
const [mounted, setMounted] = React.useState(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
此处 mounted
的作用是什么?
{/* TODO: support dark theme */} | ||
<ThemeProvider defaultTheme="light" disableTransitionOnChange> | ||
<NextIntlClientProvider messages={messages}>{children}</NextIntlClientProvider> | ||
<ClientOnly> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我需要测试一下对加载速度的影响,有段时间没写 nextjs 不太记得了
感谢作者开发了这么棒的 json4u 项目!我非常喜欢它的设计和功能。但相对于网页版,我更希望有一个桌面端工具。 所以我基于json4u开发了一个tauri的桌面端应用,项目地址:https://github.com/Donovan-Ye/easyJSON Thank you to the author for developing such a great json4u project! I really like its design and features. But compared to the web version, I would like to have a desktop tool more. So I developed a desktop application based on json4u using tauri, project address: https://github.com/Donovan-Ye/easyJSON But due to time and usage scenarios, I only included chart and comparison features, and also added some additional functions, such as dark mode, and global shortcuts to open and paste. Give it a try~ @LangQi99 |
写代码还是更喜欢暗色
light mode:
dark mode:



