Skip to content

Commit 35d2c9d

Browse files
committed
adjust toolbox on region
1 parent 6ed1520 commit 35d2c9d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

SMT/RegionControl.xaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,17 @@
128128
</Border>
129129

130130
<Border BorderThickness="4" BorderBrush="Black" CornerRadius="3" Grid.ColumnSpan="3" />
131-
<Border BorderThickness="2" BorderBrush="Black" Background="#FF232223" CornerRadius="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,140" x:Name="AllianceNameList" Visibility="Visible" Width="170" Panel.ZIndex="111" Grid.ColumnSpan="3">
131+
<Border BorderThickness="2" BorderBrush="Black" Background="#FF232223" CornerRadius="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,8,105" x:Name="AllianceNameList" Visibility="Visible" Width="170" Panel.ZIndex="111" Grid.Column="2">
132132
<StackPanel x:Name="AllianceNameListStackPanel" VerticalAlignment="Bottom" />
133133
</Border>
134134

135-
<Border BorderThickness="2" BorderBrush="Black" Background="#FF232223" Width="170" Height="123" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,10" CornerRadius="4" Panel.ZIndex="111" Visibility="{Binding Path=MapConf.ShowToolBox, Converter={StaticResource BoolToVis}}" Grid.ColumnSpan="3">
135+
<Border BorderThickness="2" BorderBrush="Black" Background="#FF232223" Width="170" Height="93" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,10,10" CornerRadius="4" Panel.ZIndex="111" Visibility="{Binding Path=MapConf.ShowToolBox, Converter={StaticResource BoolToVis}}" Grid.ColumnSpan="3">
136136
<Canvas x:Name="ToolBoxCanvas">
137+
<Label x:Name="RegionNameLabel" Content="Region" FontSize="46" HorizontalAlignment="Center" VerticalAlignment="Top" Foreground="#14767576" Canvas.Left="-470" Width="465" Height="82" HorizontalContentAlignment="Right" VerticalContentAlignment="Center"/>
137138
<Grid Canvas.Left="0" Canvas.Top="0" Width="167" HorizontalAlignment="Center">
138139

139-
<StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0">
140-
<Label x:Name="RegionNameLabel" Content="Region" FontSize="16" Grid.Column="1" Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF767576" />
140+
<StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="4">
141+
141142

142143
<StackPanel Orientation="Horizontal" Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center">
143144

SMT/RegionControl.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public partial class RegionControl : UserControl, INotifyPropertyChanged
2828
private const double SYSTEM_SHAPE_OFFSET = SYSTEM_SHAPE_SIZE / 2;
2929
private const double SYSTEM_SHAPE_SIZE = 18;
3030
private const double SYSTEM_TEXT_TEXT_SIZE = 6;
31-
private const double SYSTEM_SHAPE_OOR_SIZE = 10;
31+
private const double SYSTEM_SHAPE_OOR_SIZE = 14;
3232
private const double SYSTEM_SHAPE_OOR_OFFSET = SYSTEM_SHAPE_OOR_SIZE / 2;
3333

3434
private const int SYSTEM_TEXT_WIDTH = 100;

0 commit comments

Comments
 (0)