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

Fluent2 Using Old/Incorrect ResourceKeys (Example ToolTip) #9672

Open
robert-abeo opened this issue Aug 29, 2024 · 0 comments · May be fixed by #9958
Open

Fluent2 Using Old/Incorrect ResourceKeys (Example ToolTip) #9672

robert-abeo opened this issue Aug 29, 2024 · 0 comments · May be fixed by #9958
Assignees
Labels
Bug Product bug (most likely) 🚧 work in progress Investigate Requires further investigation by the WPF team. Win 11 Theming

Comments

@robert-abeo
Copy link

Description

If you look at upstream WinUI3 you will see it's using ToolTipForegroundBrush and other resources WITH the Brush suffix.

https://github.com/microsoft/microsoft-ui-xaml/blob/aeed4c19e2fc7c2c093216a51b651f2f0890c930/src/controls/dev/CommonStyles/ToolTip_themeresources.xaml#L43-L44

However, here in WPF, we are using the OLD resource name/key that was replaced.

<Setter Property="Foreground" Value="{DynamicResource ToolTipForeground}" />
<Setter Property="Background" Value="{DynamicResource ToolTipBackground}" />

(Note WinUI3 keeps the old resource keys only for compatibility; but we shouldn't release with the old keys).

Resource keys are one of, if not the most important reason, WPF's Fluent2 theme should have been based on upstream code directly from the start (the open source library you based off was already out-of-date and wasn't a clean port to begin with). We are going to find issues with the control templates as well but those can be changed somewhat after the fact. Keys are locked.

Please, devote the manpower to review all resources and re-align with upstream. ToolTip here is only an example.

Reproduction Steps

Just review the styles

Expected behavior

I believe the Brush and Color suffixes are the current standard for resources like this. (The vast majority of other resources also end with the type name Thickness, etc.)

Actual behavior

Wrong resource keys

Regression?

No response

Known Workarounds

No response

Impact

No response

Configuration

No response

Other information

No response

@himgoyalmicro himgoyalmicro added Bug Product bug (most likely) Investigate Requires further investigation by the WPF team. labels Aug 30, 2024
@dipeshmsft dipeshmsft linked a pull request Oct 15, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Product bug (most likely) 🚧 work in progress Investigate Requires further investigation by the WPF team. Win 11 Theming
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants