v1.05 — Fix primary button text contrast (white on blue)
- Removed Foreground from global TextBlock style (was overriding inherited colors) - Set TextElement.Foreground on Window level for default text color - PrimaryButton TextElement.Foreground now properly inherits white Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -33,10 +33,9 @@
|
||||
<SolidColorBrush x:Key="WarningBrush" Color="{StaticResource WarningColor}"/>
|
||||
<SolidColorBrush x:Key="HeaderBarBrush" Color="{StaticResource HeaderBarColor}"/>
|
||||
|
||||
<!-- Global font -->
|
||||
<!-- Global font — no Foreground here, it breaks inherited colors in buttons -->
|
||||
<Style TargetType="TextBlock">
|
||||
<Setter Property="FontFamily" Value="Segoe UI Variable Display, Segoe UI, Arial"/>
|
||||
<Setter Property="Foreground" Value="{StaticResource TextPrimaryBrush}"/>
|
||||
<Setter Property="FontSize" Value="14"/>
|
||||
</Style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user