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

The Dark Theme cannot be displayed properly #3567

Closed
xunmeng2002 opened this issue May 20, 2024 · 3 comments
Closed

The Dark Theme cannot be displayed properly #3567

xunmeng2002 opened this issue May 20, 2024 · 3 comments
Labels
bug evaluation required Items is pending review or evaluation by the team
Milestone

Comments

@xunmeng2002
Copy link

Bug explanation

image

image

image

WpfApp7.zip

Version

5.0.0

@xunmeng2002 xunmeng2002 added bug evaluation required Items is pending review or evaluation by the team labels May 20, 2024
@xunmeng2002
Copy link
Author

TabControl: Headers for inactive Tab pages cannot be displayed
ListBox control: The contents of the child items of the control cannot be displayed

@Keboo Keboo added this to the 5.1.0 milestone May 27, 2024
@Keboo
Copy link
Member

Keboo commented May 27, 2024

Thank you for the nice reproduction project. In this case, the issue is that the Window is not properly themed which is why when switching to Dark theme, the background and foreground of the text both become while. If you add Style="{StaticResource MaterialDesignWindow}" to your MainWindow you will see the problem is fixed.

@Keboo Keboo closed this as completed May 27, 2024
@xunmeng2002
Copy link
Author

Thank you for the nice reproduction project. In this case, the issue is that the Window is not properly themed which is why when switching to Dark theme, the background and foreground of the text both become while. If you add Style="{StaticResource MaterialDesignWindow}" to your MainWindow you will see the problem is fixed.

Thank you. This problem is solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug evaluation required Items is pending review or evaluation by the team
Projects
None yet
Development

No branches or pull requests

2 participants