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

SolidBackgroundFillColorBase got it's dark & light values swapped #609

Open
RaphProductions opened this issue Sep 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@RaphProductions
Copy link

RaphProductions commented Sep 4, 2024

Describe the bug
I wanna use SolidBackgroundFillColorBase in my app, and i see the light mode color, while i'm using dark mode for the app. When i did check the docs, SolidBackgroundFillColorBase got it's dark & light values swapped (dark mode color is light mode color, and vice-versa)

Screenshots
image

Desktop/Platform (please complete the following information):

  • OS: Independant
  • FluentAvalonia 2.0.0
  • Avalonia 11.1.0
@RaphProductions RaphProductions added the bug Something isn't working label Sep 4, 2024
@RaphProductions RaphProductions changed the title SolidBackgroundFillColorBase got it dark & light values swapped SolidBackgroundFillColorBase got it's dark & light values swapped Sep 4, 2024
@amwx
Copy link
Owner

amwx commented Nov 29, 2024

Without any further information, it looks like you're declaring it somewhere (a ResourceDictionary) where the lookup is done when loading (defaults to Light mode) before the DarkMode is applied. Is there any reason you need to redefine it? Try just using SolidBackgroundFillColorBaseBrush on the element you want to set the background on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants