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:
hariel1985
2026-03-31 06:15:24 +02:00
szülő 0401910711
commit 24b41b0e63
3 fájl változott, egészen pontosan 7 új sor hozzáadva és 7 régi sor törölve

Fájl megtekintése

@@ -9,9 +9,9 @@
<Company>InstaSoft Zrt.</Company> <Company>InstaSoft Zrt.</Company>
<Product>InstaSoft Office Tool</Product> <Product>InstaSoft Office Tool</Product>
<Copyright>Copyright (c) InstaSoft Zrt. 2026</Copyright> <Copyright>Copyright (c) InstaSoft Zrt. 2026</Copyright>
<Version>1.0.4</Version> <Version>1.0.5</Version>
<AssemblyVersion>1.0.4.0</AssemblyVersion> <AssemblyVersion>1.0.5.0</AssemblyVersion>
<FileVersion>1.0.4.0</FileVersion> <FileVersion>1.0.5.0</FileVersion>
<ApplicationManifest>app.manifest</ApplicationManifest> <ApplicationManifest>app.manifest</ApplicationManifest>
<LangVersion>latest</LangVersion> <LangVersion>latest</LangVersion>
</PropertyGroup> </PropertyGroup>

Fájl megtekintése

@@ -5,7 +5,8 @@
Width="800" Height="550" Width="800" Height="550"
ResizeMode="NoResize" ResizeMode="NoResize"
WindowStartupLocation="CenterScreen" WindowStartupLocation="CenterScreen"
Background="{StaticResource BackgroundBrush}"> Background="{StaticResource BackgroundBrush}"
TextElement.Foreground="{StaticResource TextPrimaryBrush}">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
@@ -41,7 +42,7 @@
Foreground="{StaticResource TextSecondaryBrush}" Margin="0,-2,0,0"/> Foreground="{StaticResource TextSecondaryBrush}" Margin="0,-2,0,0"/>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
<TextBlock Text="v1.04" HorizontalAlignment="Right" VerticalAlignment="Center" <TextBlock Text="v1.05" HorizontalAlignment="Right" VerticalAlignment="Center"
FontSize="12" Foreground="{StaticResource TextSecondaryBrush}"/> FontSize="12" Foreground="{StaticResource TextSecondaryBrush}"/>
</Grid> </Grid>
</Border> </Border>

Fájl megtekintése

@@ -33,10 +33,9 @@
<SolidColorBrush x:Key="WarningBrush" Color="{StaticResource WarningColor}"/> <SolidColorBrush x:Key="WarningBrush" Color="{StaticResource WarningColor}"/>
<SolidColorBrush x:Key="HeaderBarBrush" Color="{StaticResource HeaderBarColor}"/> <SolidColorBrush x:Key="HeaderBarBrush" Color="{StaticResource HeaderBarColor}"/>
<!-- Global font --> <!-- Global font — no Foreground here, it breaks inherited colors in buttons -->
<Style TargetType="TextBlock"> <Style TargetType="TextBlock">
<Setter Property="FontFamily" Value="Segoe UI Variable Display, Segoe UI, Arial"/> <Setter Property="FontFamily" Value="Segoe UI Variable Display, Segoe UI, Arial"/>
<Setter Property="Foreground" Value="{StaticResource TextPrimaryBrush}"/>
<Setter Property="FontSize" Value="14"/> <Setter Property="FontSize" Value="14"/>
</Style> </Style>