-
Notifications
You must be signed in to change notification settings - Fork 47
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
Corrected tooltip foreground #2128
Conversation
@@ -41,7 +41,7 @@ | |||
Height="44" | |||
x:Name="ApplyButton"> | |||
<ToolTip.Tip> | |||
<TextBlock Text="{x:Static resources:Language.ApplyControlView_Apply_ToolTip}" /> | |||
<TextBlock Text="{x:Static resources:Language.ApplyControlView_Apply_ToolTip}" Foreground="White" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using a set of color aliases found in src/Themes/NexusMods.Themes.NexusFluentDark/Resources/Palette/Colors/ElementColors.axaml
for the colors.
We want to avoid using hardcorded colors like "White" or "Red" to allow us to change them from the theme all throughout the app easily.
In this case the easiest way to get what we want is to just apply the "ForegroundStrong" style class to the TextBlock
, which will in turn apply NeutralStrong
as the foreground color.
<TextBlock Text="{x:Static resources:Language.ApplyControlView_Apply_ToolTip}" Foreground="White" /> | |
<TextBlock Text="{x:Static resources:Language.ApplyControlView_Apply_ToolTip}" Classes="ForegroundStrong" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I tried this initially to no avail.
I'll have to look in to why that's happening, it's why I ended up settling for forcing it to white
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an alternative you can set it like this:
<TextBlock Text="{x:Static resources:Language.ApplyControlView_Apply_ToolTip}" Foreground="White" /> | |
<TextBlock Text="{x:Static resources:Language.ApplyControlView_Apply_ToolTip}" Foreground="{StaticResource NutralStrong}" /> |
Closes #2123
Just a foreground mismatch.
Another issue with the style-inheritance, like seen on #1822 i think