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

Status bar foreground doesn't change with change in theme! #530

Closed
ms-somanna opened this issue Nov 29, 2020 · 1 comment
Closed

Status bar foreground doesn't change with change in theme! #530

ms-somanna opened this issue Nov 29, 2020 · 1 comment

Comments

@ms-somanna
Copy link

ms-somanna commented Nov 29, 2020

Description
StatusBarItem foreground stays "black" when theme is switched from light to dark.

To Reproduce
Steps to reproduce the behavior:

  1. Create a HandyControls project in Visual Studio 2019.
  2. Add light, dark and voilet themes to the app.
  3. In MainWindow xaml add a StatusBar.
  4. Then to this StatusBar add a StatusBarItem and set it's content.
  5. Now run the app. And change the theme between light and dark or violet. You'll notice when the theme has been changed to dark from light the StatusBarItem's foreground does not change from black to white.

Expected behavior
When the theme has changed from light to dark I expect the StatusBarItem's foreground to change from black to white.

Environment:

  • .net: [e.g. 4.7.2]
  • IDE [vs2019]
  • Version [e.g. 16.8.2]

All other controls I've add to the app change their foreground as expected when the theme changes.

@ghost1372
Copy link
Member

Thank you
for now you can use this way:
<StatusBarItem Foreground="{DynamicResource PrimaryTextBrush}" Content="Test"/>

@ghost1372 ghost1372 mentioned this issue Dec 1, 2020
@NaBian NaBian closed this as completed in d91c711 Dec 2, 2020
NaBian added a commit that referenced this issue Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants