feature<Welcome>: 调整了欢迎页的布局

This commit is contained in:
ZCShou 2021-09-10 10:00:25 +08:00
parent f26c777577
commit 5712630235

View file

@ -32,52 +32,48 @@
TextOptions.TextRenderingMode="ClearType" TextOptions.TextRenderingMode="ClearType"
Foreground="{DynamicResource Brush.FG2}"/> Foreground="{DynamicResource Brush.FG2}"/>
<!-- Options --> </StackPanel>
<Grid>
<Grid Grid.Row="1" Margin="10,40" HorizontalAlignment="Center">
<Grid.RowDefinitions>
<RowDefinition Height="32"/>
<RowDefinition Height="32"/>
<RowDefinition Height="60"/>
<RowDefinition Height="32"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="350"/>
<ColumnDefinition Width="8"/> <ColumnDefinition Width="200"/>
<ColumnDefinition Width="*"/> <ColumnDefinition Width="350"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<Button Grid.Column="0" Click="OnOpenClicked" Height="28"> <Button Grid.Column="0" Grid.Row="0" Click="OnOpenClicked" Height="28" Width="240">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<Path Width="16" Height="16" Data="{StaticResource Icon.Folder.Open}"/> <Path Width="16" Height="16" Data="{StaticResource Icon.Folder.Open}"/>
<TextBlock Margin="12,0,0,0" Text="{DynamicResource Text.Welcome.OpenOrInit}"/> <TextBlock Margin="12,0,0,0" Text="{DynamicResource Text.Welcome.OpenOrInit}"/>
</StackPanel> </StackPanel>
</Button> </Button>
<Button Grid.Column="2" Click="OnCloneClicked" Height="28"> <Button Grid.Column="0" Grid.Row="1" Click="OnCloneClicked" Height="28" Width="240">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<Path Width="16" Height="16" Data="{StaticResource Icon.Pull}"/> <Path Width="16" Height="16" Data="{StaticResource Icon.Pull}"/>
<TextBlock Margin="12,0,0,0" Text="{DynamicResource Text.Welcome.Clone}"/> <TextBlock Margin="12,0,0,0" Text="{DynamicResource Text.Welcome.Clone}"/>
</StackPanel> </StackPanel>
</Button> </Button>
</Grid>
</StackPanel>
<Grid Grid.Row="1" Margin="80,80">
<Grid.RowDefinitions>
<RowDefinition Height="32"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- History --> <!-- History -->
<TextBlock <TextBlock
Grid.Row="0" Grid.Row="3"
Grid.Column="0" Grid.Column="0"
Text="{DynamicResource Text.Welcome.Histories}" Text="{DynamicResource Text.Welcome.Histories}"
FontSize="13pt" FontWeight="ExtraBold" FontSize="13pt" FontWeight="ExtraBold"
HorizontalAlignment="Center"
Foreground="{DynamicResource Brush.FG2}"/> Foreground="{DynamicResource Brush.FG2}"/>
<!-- History Tree --> <!-- History Tree -->
<controls:Tree <controls:Tree
Grid.Row="1" Grid.Row="4"
Grid.Column="0" Grid.Column="0"
x:Name="treeHistory" x:Name="treeHistory"
Margin="0,4" Margin="0,4"
@ -122,7 +118,7 @@
<!-- Bookmark --> <!-- Bookmark -->
<TextBlock <TextBlock
Grid.Row="0" Grid.Row="0"
Grid.Column="1" Grid.Column="2"
Text="{DynamicResource Text.Welcome.Bookmarks}" Text="{DynamicResource Text.Welcome.Bookmarks}"
FontSize="13pt" FontWeight="ExtraBold" FontSize="13pt" FontWeight="ExtraBold"
HorizontalAlignment="Center" HorizontalAlignment="Center"
@ -131,7 +127,8 @@
<!-- Drop Area --> <!-- Drop Area -->
<Rectangle <Rectangle
Grid.Row="1" Grid.Row="1"
Grid.Column="1" Grid.RowSpan="4"
Grid.Column="2"
x:Name="dropArea" x:Name="dropArea"
Margin="0,2" Margin="0,2"
Stroke="{DynamicResource Brush.Border1}" Stroke="{DynamicResource Brush.Border1}"
@ -139,11 +136,10 @@
StrokeDashArray="4,4" StrokeDashArray="4,4"
SnapsToDevicePixels="True" SnapsToDevicePixels="True"
Visibility="Hidden"/> Visibility="Hidden"/>
<!-- Tree -->
<controls:Tree <controls:Tree
Grid.Row="1" Grid.Row="1"
Grid.Column="1" Grid.RowSpan="4"
Grid.Column="2"
x:Name="treeBookmarks" x:Name="treeBookmarks"
Margin="0,4" Margin="0,4"
AllowDrop="True" AllowDrop="True"
@ -227,10 +223,9 @@
</HierarchicalDataTemplate> </HierarchicalDataTemplate>
</controls:Tree.ItemTemplate> </controls:Tree.ItemTemplate>
</controls:Tree> </controls:Tree>
</Grid> </Grid>
<!-- Popup --> <!-- Popup -->
<widgets:PopupPanel x:Name="popup"/> <widgets:PopupPanel x:Name="popup" Grid.Row="0" Grid.RowSpan="2"/>
</Grid> </Grid>
</UserControl> </UserControl>