Line the settings key and description up with the row above

They were laid out as one run, so every explanation started wherever its key
happened to end. Key now sits under the label, explanation under the control.
This commit is contained in:
maj00r
2026-09-04 23:28:20 +02:00
parent c0cc696dc9
commit 4047e39456

View File

@@ -53,25 +53,27 @@
VerticalAlignment="Center" VerticalAlignment="Center"
Margin="12,0,0,0" /> Margin="12,0,0,0" />
<!-- Second line: the eu07.ini key this row writes, then the <!-- Second line sits in the same columns as the first: the
explanation. The key is monospaced and selectable so it key under the label, the explanation under the control.
can be copied straight into the file, and dimmed so it Laying them out as one run instead made every
stays out of the way of the setting itself. --> explanation start wherever its key happened to end. -->
<StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" <SelectableTextBlock Name="PART_ConfigKey"
Orientation="Horizontal" Spacing="8" Margin="0,3,0,0"> Grid.Row="1" Grid.Column="0"
<SelectableTextBlock Name="PART_ConfigKey" Text="{TemplateBinding ConfigKey}"
Text="{TemplateBinding ConfigKey}" FontFamily="Consolas, DejaVu Sans Mono, Liberation Mono, Menlo, Courier New"
FontFamily="Consolas, DejaVu Sans Mono, Liberation Mono, Menlo, Courier New" FontSize="11"
FontSize="11" Foreground="{StaticResource CarbonFgDim}"
Foreground="{StaticResource CarbonFgDim}" TextWrapping="Wrap"
VerticalAlignment="Top" /> Margin="0,3,14,0" />
<TextBlock Name="PART_Description"
Text="{TemplateBinding Description}" <TextBlock Name="PART_Description"
FontSize="12" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
Foreground="{StaticResource CarbonFgDim}" Text="{TemplateBinding Description}"
TextWrapping="Wrap" FontSize="12"
VerticalAlignment="Top" /> Foreground="{StaticResource CarbonFgDim}"
</StackPanel> TextWrapping="Wrap"
Margin="0,3,0,0" />
</Grid> </Grid>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>