Skip to content
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

🐛 [BUG]暗黑模式下菜单颜色自定义的情况下做不到动态切换 #10859

Closed
happysmile12321 opened this issue Jul 25, 2023 · 2 comments
Labels

Comments

@happysmile12321
Copy link

happysmile12321 commented Jul 25, 2023

🐛 bug 描述

在暗黑模式下,用了antd 的组件都可以切换过来,但是在menu这里配置的时候做不到切换颜色。
我直接放图,你们好看一些。

image
请看图

@chenshuai2144
Copy link
Collaborator

你好!根据你的描述和截图,你想在暗黑模式下动态切换菜单的颜色,但是当前的配置方式并不能实现这个效果。我建议你使用动态的方式来设置颜色,使用 DesginToken 来替换固定的配置。你可以在 app.ts 文件中的 layout 方法中通过传入 initalValues 参数来动态设置菜单的颜色。这样就能实现在暗黑模式下动态切换菜单颜色的效果啦。

@Amazing-0921
Copy link

我有同样的问题,请问解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants