mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
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:
@@ -53,25 +53,27 @@
|
||||
VerticalAlignment="Center"
|
||||
Margin="12,0,0,0" />
|
||||
|
||||
<!-- Second line: the eu07.ini key this row writes, then the
|
||||
explanation. The key is monospaced and selectable so it
|
||||
can be copied straight into the file, and dimmed so it
|
||||
stays out of the way of the setting 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 CarbonFgDim}"
|
||||
VerticalAlignment="Top" />
|
||||
<TextBlock Name="PART_Description"
|
||||
Text="{TemplateBinding Description}"
|
||||
FontSize="12"
|
||||
Foreground="{StaticResource CarbonFgDim}"
|
||||
TextWrapping="Wrap"
|
||||
VerticalAlignment="Top" />
|
||||
</StackPanel>
|
||||
<!-- Second line sits in the same columns as the first: the
|
||||
key under the label, the explanation under the control.
|
||||
Laying them out as one run instead made every
|
||||
explanation start wherever its key happened to end. -->
|
||||
<SelectableTextBlock Name="PART_ConfigKey"
|
||||
Grid.Row="1" Grid.Column="0"
|
||||
Text="{TemplateBinding ConfigKey}"
|
||||
FontFamily="Consolas, DejaVu Sans Mono, Liberation Mono, Menlo, Courier New"
|
||||
FontSize="11"
|
||||
Foreground="{StaticResource CarbonFgDim}"
|
||||
TextWrapping="Wrap"
|
||||
Margin="0,3,14,0" />
|
||||
|
||||
<TextBlock Name="PART_Description"
|
||||
Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
|
||||
Text="{TemplateBinding Description}"
|
||||
FontSize="12"
|
||||
Foreground="{StaticResource CarbonFgDim}"
|
||||
TextWrapping="Wrap"
|
||||
Margin="0,3,0,0" />
|
||||
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter>
|
||||
|
||||
Reference in New Issue
Block a user