improve:UI

This commit is contained in:
2026-04-05 19:23:00 +08:00
parent d80a59556e
commit 6183011952
+40 -42
View File
@@ -4952,33 +4952,36 @@
HorizontalAlignment="Left" HorizontalAlignment="Left"
VerticalAlignment="Top" VerticalAlignment="Top"
Margin="0,0,0,0" Margin="0,0,0,0"
Width="58" Width="64"
CornerRadius="10" CornerRadius="8"
Background="{DynamicResource FloatBarBackground}" Background="{DynamicResource FloatBarBackground}"
BorderBrush="{DynamicResource FloatBarBorderBrush}" BorderBrush="#33FFFFFF"
BorderThickness="1" BorderThickness="1"
SnapsToDevicePixels="True" SnapsToDevicePixels="True"
Visibility="Collapsed" Visibility="Collapsed"
Panel.ZIndex="1001"> Panel.ZIndex="1001"
ui:ThemeManager.RequestedTheme="Dark">
<Border.Effect>
<DropShadowEffect BlurRadius="24"
ShadowDepth="3"
Direction="270"
Opacity="0.45"
Color="#000000" />
</Border.Effect>
<Border.Resources> <Border.Resources>
<Style x:Key="PdfSidebarNavButtonStyle" TargetType="Border"> <Style x:Key="PdfSidebarNavButtonStyle" TargetType="Border">
<Setter Property="Width" Value="42" /> <Setter Property="Width" Value="40" />
<Setter Property="Height" Value="38" /> <Setter Property="Height" Value="36" />
<Setter Property="CornerRadius" Value="8" /> <Setter Property="CornerRadius" Value="4" />
<Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderThickness" Value="0" />
<Setter Property="BorderBrush" Value="{DynamicResource FloatBarForeground}" />
<Setter Property="Cursor" Value="Hand" /> <Setter Property="Cursor" Value="Hand" />
<Setter Property="SnapsToDevicePixels" Value="True" /> <Setter Property="SnapsToDevicePixels" Value="True" />
<Setter Property="Background"> <Setter Property="Background" Value="Transparent" />
<Setter.Value>
<SolidColorBrush Color="White" Opacity="0.10" />
</Setter.Value>
</Setter>
<Style.Triggers> <Style.Triggers>
<Trigger Property="IsMouseOver" Value="True"> <Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background"> <Setter Property="Background">
<Setter.Value> <Setter.Value>
<SolidColorBrush Color="White" Opacity="0.22" /> <SolidColorBrush Color="#FFFFFF" Opacity="0.08" />
</Setter.Value> </Setter.Value>
</Setter> </Setter>
</Trigger> </Trigger>
@@ -4988,22 +4991,19 @@
<Grid> <Grid>
<ikw:SimpleStackPanel VerticalAlignment="Center" <ikw:SimpleStackPanel VerticalAlignment="Center"
HorizontalAlignment="Center" HorizontalAlignment="Center"
Spacing="10" Spacing="8"
Margin="0,8,0,8"> Margin="0,10,0,10">
<TextBlock Text="PDF" <TextBlock Text="PDF"
FontSize="11" FontSize="10"
FontWeight="SemiBold" FontWeight="SemiBold"
HorizontalAlignment="Center" HorizontalAlignment="Center"
Foreground="{DynamicResource FloatBarForeground}" Foreground="{DynamicResource FloatBarForeground}"
Opacity="0.9" /> Opacity="0.78" />
<Border CornerRadius="8" <Border CornerRadius="4"
Padding="6,8" Padding="8,6"
BorderThickness="1" BorderThickness="0"
BorderBrush="{DynamicResource FloatBarForeground}" SnapsToDevicePixels="True"
SnapsToDevicePixels="True"> Background="#14FFFFFF">
<Border.Background>
<SolidColorBrush Color="White" Opacity="0.08" />
</Border.Background>
<TextBlock Name="TextBlockPdfSidebarPageLabel" <TextBlock Name="TextBlockPdfSidebarPageLabel"
Text="— / —" Text="— / —"
FontSize="12" FontSize="12"
@@ -5018,35 +5018,33 @@
Style="{StaticResource PdfSidebarNavButtonStyle}" Style="{StaticResource PdfSidebarNavButtonStyle}"
Opacity="0.35" Opacity="0.35"
IsHitTestVisible="False" IsHitTestVisible="False"
ToolTip="上一页"
MouseDown="Border_MouseDown" MouseDown="Border_MouseDown"
MouseUp="BorderPdfSidebarPagePrev_MouseUp"> MouseUp="BorderPdfSidebarPagePrev_MouseUp">
<TextBlock Text="&#x2039;" <ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.ChevronLeft}"
FontSize="20" FontSize="14"
FontWeight="SemiBold" HorizontalAlignment="Center"
HorizontalAlignment="Center" VerticalAlignment="Center"
VerticalAlignment="Center" Foreground="{DynamicResource FloatBarForeground}" />
Margin="0,-2,0,0"
Foreground="{DynamicResource FloatBarForeground}" />
</Border> </Border>
<Border Name="BorderPdfSidebarPageNext" <Border Name="BorderPdfSidebarPageNext"
Style="{StaticResource PdfSidebarNavButtonStyle}" Style="{StaticResource PdfSidebarNavButtonStyle}"
Opacity="0.35" Opacity="0.35"
IsHitTestVisible="False" IsHitTestVisible="False"
ToolTip="下一页"
MouseDown="Border_MouseDown" MouseDown="Border_MouseDown"
MouseUp="BorderPdfSidebarPageNext_MouseUp"> MouseUp="BorderPdfSidebarPageNext_MouseUp">
<TextBlock Text="&#x203A;" <ui:FontIcon Icon="{x:Static ui:SegoeFluentIcons.ChevronRight}"
FontSize="20" FontSize="14"
FontWeight="SemiBold" HorizontalAlignment="Center"
HorizontalAlignment="Center" VerticalAlignment="Center"
VerticalAlignment="Center" Foreground="{DynamicResource FloatBarForeground}" />
Margin="0,-2,0,0"
Foreground="{DynamicResource FloatBarForeground}" />
</Border> </Border>
<TextBlock Text="翻页" <TextBlock Text="翻页"
FontSize="9" FontSize="9"
HorizontalAlignment="Center" HorizontalAlignment="Center"
Foreground="{DynamicResource FloatBarForeground}" Foreground="{DynamicResource FloatBarForeground}"
Opacity="0.65" /> Opacity="0.55" />
</ikw:SimpleStackPanel> </ikw:SimpleStackPanel>
</Grid> </Grid>
</Border> </Border>