Closed MakesYT closed 1 year ago
Hi, I don't think this is a bug for nodify. Changing themes at runtime should be supported but it's up to you how you implement it.
You can check out the example apps (CTR+T to change the theme if there's no button for it in the UI). Last time I checked, I could change the theme just fine.
Make sure you unload the previous theme before loading the new theme.
You can try doing something similar to what I did here: https://github.com/miroiu/nodify/blob/master/Examples/Nodify.Shared/ThemeManager.cs
Hi, I don't think this is a bug for nodify. Changing themes at runtime should be supported but it's up to you how you implement it.嗨,我不认为这是点头的错误。应该支持在运行时更改主题,但这取决于您如何实现它。
You can check out the example apps (CTR+T to change the theme if there's no button for it in the UI). Last time I checked, I could change the theme just fine.您可以查看示例应用程序(如果 UI 中没有按钮,则使用 CTR+T 更改主题)。上次我检查时,我可以很好地更改主题。
Make sure you unload the previous theme before loading the new theme.请确保在加载新主题之前卸载以前的主题。
You can try doing something similar to what I did here: https://github.com/miroiu/nodify/blob/master/Examples/Nodify.Shared/ThemeManager.cs您可以尝试执行类似于我在这里所做的操作:https://github.com/miroiu/nodify/blob/master/Examples/Nodify.Shared/ThemeManager.cs
I confirm that I have completed the complete switch because I directly modified the Url path of the old Theme resource dictionary. And the Node theme switch is successful, only the NodifyEditor background switch failed
Oh,I know the reason,I uesd
<nodify:NodifyEditor.Background>
<StaticResource ResourceKey="SmallGridLinesDrawingBrush"/>
</nodify:NodifyEditor.Background>
thanks for your help
Describe the bug When I modify the theme by modifying the dictionary theme path, some controls cannot be changed Light to Dark Dark to Light
After reopen
To Reproduce
Expected behavior A clear and concise description of what you expected to happen. to Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.