MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
15.22k stars 3.44k forks source link

When switching themes, some control fonts do not change color #2360

Closed HuMingYi closed 3 years ago

HuMingYi commented 3 years ago

{7ffaab9e-745f-40fb-b20d-9a3598a91667} {f4b5e2af-188e-4144-8b80-c6d6230e7ea6} Why do some fonts change color with the theme and the red area I marked doesn't?

Keboo commented 3 years ago

Hi @HuMingYi is that the normal demo application (I only ask because parts of the UI don't line up with what I am seeing).

There was a bug in the demo application where those TextBlocks were not properly using the MaterialDesignBody brush. I have just pushed up a fix for that.

HuMingYi commented 3 years ago

{85457c82-6faa-4c85-b458-30b0a19f4e4a} {9c58989e-3118-4865-a3d1-8f4dfebdd256}

@Keboo In the demo, it behaved normally

This is my profile `<Application x:Class="MaterialDesignInXamlDemo.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MaterialDesignInXamlDemo" xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" StartupUri="MainWindow.xaml">

`
HuMingYi commented 3 years ago

@Keboo What is the version of the fix?

Keboo commented 3 years ago

I just push the change an hour ago. It hasn't gone out in a released version yet. You can see the change here

HuMingYi commented 3 years ago

@Keboo Thank you very much for your reply