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

Improve DevTools previewer of setter values by including all value priorities #13802

Merged
merged 9 commits into from
May 9, 2024

Conversation

maxkatz6
Copy link
Member

@maxkatz6 maxkatz6 commented Dec 2, 2023

What does the pull request do?

Previously only style setters were included in the list, which confused developers when local value overrides their styles.

What is the current behavior?

We have a button with a couple of properties set with local priority:
image

But old dev tools do not show these values:
image

What is the updated/expected behavior with this PR?

It's less confusing with this PR:
image

Note: information about dynamic resources is not preserved with non-setter values. We can't really show it to the developers.

Breaking changes

Old Avalonia.Diagnostics.AppliedStyle type and related were removed. But I believe this change is justified for 11.1.

Fixes #13887

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0042576-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0042792-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

maxkatz6 added 3 commits May 9, 2024 23:40
@maxkatz6 maxkatz6 enabled auto-merge May 9, 2024 14:53
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0048268-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue May 9, 2024
Merged via the queue into master with commit 6938183 May 9, 2024
11 checks passed
@maxkatz6 maxkatz6 deleted the dev-tools-frames branch May 9, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Opening Dev Tools crashes the app when a context menu is applied via a style
3 participants