修复二级菜单移位

修复二级菜单移位(和优化江陵写的屎山)
This commit is contained in:
PrefacedCorg
2025-07-31 20:38:30 +08:00
parent abb8ed0bcc
commit 85d4d8a71e
+22 -27
View File
@@ -4848,7 +4848,7 @@
<Border x:Name="BoardBorderDrawShape" Visibility="Visible" <Border x:Name="BoardBorderDrawShape" Visibility="Visible"
Background="LightGray" Background="LightGray"
Opacity="0.85" BorderBrush="Black" BorderThickness="1" CornerRadius="5" Opacity="0.85" BorderBrush="Black" BorderThickness="1" CornerRadius="5"
Margin="-147,-286,-89,59"> Margin="-147,-286,-89,55">
<Viewbox> <Viewbox>
<ui:SimpleStackPanel Spacing="-8" Orientation="Vertical"> <ui:SimpleStackPanel Spacing="-8" Orientation="Vertical">
<TextBlock FontSize="16" <TextBlock FontSize="16"
@@ -4968,7 +4968,7 @@
<TransformGroup> <TransformGroup>
<ScaleTransform /> <ScaleTransform />
<SkewTransform /> <SkewTransform />
<RotateTransform Angle="90" /> <RotateTransform />
<TranslateTransform /> <TranslateTransform />
</TransformGroup> </TransformGroup>
</Image.RenderTransform> </Image.RenderTransform>
@@ -5013,31 +5013,24 @@
HorizontalAlignment="Center" FontSize="12" /> HorizontalAlignment="Center" FontSize="12" />
</Grid> </Grid>
</Border> </Border>
<Border>
<!-- Image Insertion Options Panel --> <!-- Image Insertion Options Panel -->
<Border ClipToBounds="True" Name="BoardImageOptionsPanel" Visibility="Collapsed" <Grid RenderTransformOrigin="0,1" Margin="-133,-172,13,55">
Margin="-80,-90,-14,33.5" <Grid.RenderTransform>
CornerRadius="5" Background="#fafafa" Opacity="1" <TransformGroup>
BorderThickness="1" <ScaleTransform ScaleX="1.5" ScaleY="1.5" />
BorderBrush="#2563eb"> <SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Grid.RenderTransform>
<Border Name="BoardImageOptionsPanel" Visibility="Collapsed" ClipToBounds="True" CornerRadius="5" Background="#fafafa" Opacity="1" BorderThickness="1" BorderBrush="#2563eb" Margin="0,76,0,0">
<ui:SimpleStackPanel Margin="0"> <ui:SimpleStackPanel Margin="0">
<Border BorderBrush="#1e3a8a" BorderThickness="0,0,0,1" <Border BorderBrush="#1e3a8a" BorderThickness="0,0,0,1" Margin="-1,-1,-1,1" CornerRadius="6,6,0,0" Background="#2563eb">
CornerRadius="5,5,0,0" Background="#2563eb" <Canvas Height="24" ClipToBounds="True">
Padding="8,4"> <TextBlock Text="选择图片" Foreground="White" Padding="0,5" FontSize="11" FontWeight="Bold" Canvas.Left="8" TextAlignment="Center" />
<ui:SimpleStackPanel Orientation="Horizontal" <Image Margin="100,4,0,0" Source="/Resources/new-icons/close-white.png" RenderOptions.BitmapScalingMode="HighQuality" Height="12" Width="12" MouseDown="Border_MouseDown" MouseUp="CloseImageOptionsPanel_MouseUp" />
HorizontalAlignment="Stretch"> </Canvas>
<TextBlock Text="选择图片" Foreground="White"
FontSize="10" FontWeight="Bold"
VerticalAlignment="Center" />
<Image Margin="8,0,0,0"
Source="/Resources/new-icons/close-white.png"
RenderOptions.BitmapScalingMode="HighQuality"
Height="12" Width="12"
MouseDown="Border_MouseDown"
MouseUp="CloseImageOptionsPanel_MouseUp" />
</ui:SimpleStackPanel>
</Border> </Border>
<ui:SimpleStackPanel Margin="6,4,6,4" Spacing="2"> <ui:SimpleStackPanel Margin="6,4,6,4" Spacing="2">
<!-- Screenshot Option --> <!-- Screenshot Option -->
@@ -5066,7 +5059,7 @@
</DrawingImage> </DrawingImage>
</Image.Source> </Image.Source>
</Image> </Image>
<TextBlock Text="截图" FontSize="11" FontWeight="SemiBold" <TextBlock Text="截图" FontSize="10"
Foreground="#1f2937" VerticalAlignment="Center"/> Foreground="#1f2937" VerticalAlignment="Center"/>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
</Border> </Border>
@@ -5096,13 +5089,15 @@
</DrawingImage> </DrawingImage>
</Image.Source> </Image.Source>
</Image> </Image>
<TextBlock Text="选择图片" FontSize="11" FontWeight="SemiBold" <TextBlock Text="选择图片" FontSize="10"
Foreground="#1f2937" VerticalAlignment="Center"/> Foreground="#1f2937" VerticalAlignment="Center"/>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
</Border> </Border>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
</Border> </Border>
</Grid>
</Border>
<Border x:Name="BoardUndo" Width="60" Height="50" MouseDown="Border_MouseDown" <Border x:Name="BoardUndo" Width="60" Height="50" MouseDown="Border_MouseDown"
MouseUp="SymbolIconUndo_MouseUp" BorderThickness="0,1,0,1" MouseUp="SymbolIconUndo_MouseUp" BorderThickness="0,1,0,1"
BorderBrush="#a1a1aa" BorderBrush="#a1a1aa"