Show the eu07.ini key on every settings row

This commit is contained in:
maj00r
2026-09-04 21:21:14 +02:00
parent 964884bd56
commit e969137824
6 changed files with 284 additions and 78 deletions

View File

@@ -53,13 +53,25 @@
VerticalAlignment="Center"
Margin="12,0,0,0" />
<TextBlock Name="PART_Description"
Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
Text="{TemplateBinding Description}"
FontSize="12"
Foreground="{StaticResource CarbonFgDim}"
TextWrapping="Wrap"
Margin="0,3,0,0" />
<!-- Second line: the eu07.ini key this row writes, then the
explanation. The key is monospaced and selectable so it
can be matched against the file itself. -->
<StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3"
Orientation="Horizontal" Spacing="8" Margin="0,3,0,0">
<SelectableTextBlock Name="PART_ConfigKey"
Text="{TemplateBinding ConfigKey}"
FontFamily="Consolas, DejaVu Sans Mono, Liberation Mono, Menlo, Courier New"
FontSize="11"
Foreground="{StaticResource CarbonAccentBright}"
Opacity="0.75"
VerticalAlignment="Top" />
<TextBlock Name="PART_Description"
Text="{TemplateBinding Description}"
FontSize="12"
Foreground="{StaticResource CarbonFgDim}"
TextWrapping="Wrap"
VerticalAlignment="Top" />
</StackPanel>
</Grid>
</ControlTemplate>
</Setter>
@@ -67,6 +79,9 @@
<Style Selector="^:no-description /template/ TextBlock#PART_Description">
<Setter Property="IsVisible" Value="False" />
</Style>
<Style Selector="^:no-key /template/ SelectableTextBlock#PART_ConfigKey">
<Setter Property="IsVisible" Value="False" />
</Style>
<Style Selector="^:no-value /template/ TextBlock#PART_Value">
<Setter Property="IsVisible" Value="False" />
</Style>