Skip to content

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

Closed

Description

@ms-somanna

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.

Activity

  1. ghost1372 commented on Nov 29, 2020

    @ghost1372
    Member

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

  2. added a commit that references this issue on Dec 2, 2020
    a5ff21e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址