question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Resource update issues in rc1

See original GitHub issue

Describe the bug In my FluentAvalonia demo app, a custom accent color can be set for the app, and not everything is updating in response to the color change: image

In the screenshot, the list box and custom color button show the green color selected, and the preview grid correctly shows all 7 accent colors updated to follow the green. But the checkbox and the settings icon are still showing under the previous accent color. Triggering any sort of rendering (like moving the pointer over the control) will get them to update to the correct colors.

The preview area in the screenshot is bound directly to the color resources, whereas controls typically are binding to a brush or StaticResource alias of a brush, which has the color DynamicResource set to the SystemAccentColor variant. I’ve also had the checkbox fill background update correctly, but the border around it (which is the same color as the fill) remains the old color.

For context, FATheme sets a custom accent color by injecting a ResourceDictionary with all 7 variants into the MergedDictionaries of itself (FATheme is a Styles object): -> FATheme ---->Resources -------->Non-themed resources -------->MergedDictionaries ---------->Fluentv2 colors & brushes ---------->AccentColor dictionary

I don’t have a repro at the moment. The version of my demo app in master in my repo has this code turned off right now, and the new version of the demo app (that the screenshot comes from) isn’t available yet. If I get a chance I’ll try to see if I can get a simple repro here.

This is a new issue in rc1, preview8 worked fine.

Also, just for testing, I added a border with its background set to the AccentColor brush and it updates completely fine.

<Border Background="{DynamicResource AccentFillColorDefaultBrush}"
                                    Width="100" Height="100" />

The Checkbox and settings icon in the screenshot have their fills set in ControlTemplate and Style, respectively, so it might be related to that

Issue Analytics

  • State:closed
  • Created 4 months ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
timuniecommented, Jun 6, 2023

@danipen the message was not for you but for @cyraid . Somehow I think a full crash is not related to what we see here? Also Icons should not disappear in this issue?!

0reactions
maxkatz6commented, Jul 13, 2023

@amwx this issue should be resolved in nightly. Let me know if it’s still reproducible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM 10.7 RC1 How can I tell why a report failed
After upgrading to 10.7 RC1 all my reports are now in the scheduler in the web but whenever I try to run them...
Read more >
Linkit 6.1.0-rc1 reporting as update on D9.5 site [#3364437]
Problem /Motivation I have a Drupal 9.5.9 site with Linkit 6.0.0-rc1 installed. I am getting an update warning to update to 6.1.0-rc1.
Read more >
Pull Request page blank after 2020.1 RC1 update
Since the update, we are not able anymore to open any pull request. The page appears blank with the enclosed error in the...
Read more >
Error deserialization property resource in 7.9.0-rc1 - Ignition
I upgrade a 7.8.4 application to 7.9.0-rc1 (ticket #36827) When restoring the backup or a project export from the gateway page, ...
Read more >
Understanding Resource files in MVC6 RC1
I've been trying to wrap my head around on how best to implement resource files for multiple languages in MVC6 but due to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found