add:主题切换

This commit is contained in:
2025-09-21 01:15:01 +08:00
parent c4d2b15c48
commit 1957288219
2 changed files with 21 additions and 21 deletions
+21 -21
View File
@@ -4426,8 +4426,8 @@
</Grid> </Grid>
<Border Width="60" Height="50" MouseDown="Border_MouseDown" <Border Width="60" Height="50" MouseDown="Border_MouseDown"
MouseUp="BoardChangeBackgroundColorBtn_MouseUp" CornerRadius="0,5,5,0" MouseUp="BoardChangeBackgroundColorBtn_MouseUp" CornerRadius="0,5,5,0"
Background="#f4f4f5" Opacity="1" BorderThickness="0,1,1,1" Background="{DynamicResource BoardFloatBarBackground}" Opacity="1" BorderThickness="0,1,1,1"
BorderBrush="#a1a1aa"> BorderBrush="{DynamicResource BoardFloatBarBorderBrush}">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20"> RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20">
@@ -4449,12 +4449,12 @@
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
</Border> </Border>
<Border CornerRadius="5,5,5,5" Background="#f4f4f5" Margin="0,0,5,0"> <Border CornerRadius="5,5,5,5" Background="{DynamicResource BoardFloatBarBackground}" Margin="0,0,5,0">
<ui:SimpleStackPanel Orientation="Horizontal"> <ui:SimpleStackPanel Orientation="Horizontal">
<Border x:Name="BoardSelect" Width="60" Height="50" MouseDown="Border_MouseDown" <Border x:Name="BoardSelect" Width="60" Height="50" MouseDown="Border_MouseDown"
BorderThickness="1,1,0,1" BorderBrush="#a1a1aa" BorderThickness="1,1,0,1" BorderBrush="{DynamicResource BoardFloatBarBorderBrush}"
MouseUp="SymbolIconSelect_MouseUp" CornerRadius="5,0,0,5" MouseUp="SymbolIconSelect_MouseUp" CornerRadius="5,0,0,5"
Background="#f4f4f5" Background="{DynamicResource BoardFloatBarBackground}"
Opacity="0.95"> Opacity="0.95">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
@@ -4477,8 +4477,8 @@
</Grid> </Grid>
</Border> </Border>
<Border x:Name="BoardPen" Width="60" Height="50" MouseDown="Border_MouseDown" <Border x:Name="BoardPen" Width="60" Height="50" MouseDown="Border_MouseDown"
BorderThickness="0,1,0,1" BorderBrush="#a1a1aa" BorderThickness="0,1,0,1" BorderBrush="{DynamicResource BoardFloatBarBorderBrush}"
MouseUp="PenIcon_Click" Background="#f4f4f5" Opacity="0.95"> MouseUp="PenIcon_Click" Background="{DynamicResource BoardFloatBarBackground}" Opacity="0.95">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image x:Name="BoardPenIcon" VerticalAlignment="Top" <Image x:Name="BoardPenIcon" VerticalAlignment="Top"
RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20"> RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20">
@@ -5383,8 +5383,8 @@
</Grid> </Grid>
</Border> </Border>
<Border x:Name="BoardEraser" Width="60" Height="50" MouseDown="Border_MouseDown" <Border x:Name="BoardEraser" Width="60" Height="50" MouseDown="Border_MouseDown"
BorderThickness="0,1,1,1" BorderBrush="#a1a1aa" BorderThickness="0,1,1,1" BorderBrush="{DynamicResource BoardFloatBarBorderBrush}"
MouseUp="BoardEraserIcon_Click" Background="#f4f4f5" Opacity="0.95"> MouseUp="BoardEraserIcon_Click" Background="{DynamicResource BoardFloatBarBackground}" Opacity="0.95">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20"> RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20">
@@ -5607,7 +5607,7 @@
<Border x:Name="BoardEraserByStrokes" Width="60" Height="55" <Border x:Name="BoardEraserByStrokes" Width="60" Height="55"
MouseDown="Border_MouseDown" MouseDown="Border_MouseDown"
Visibility="Collapsed" Visibility="Collapsed"
MouseUp="BoardEraserIconByStrokes_Click" Background="LightGray" MouseUp="BoardEraserIconByStrokes_Click" Background="{DynamicResource BoardFloatBarBackground}"
Opacity="0.85"> Opacity="0.85">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
@@ -5618,8 +5618,8 @@
</Grid> </Grid>
</Border> </Border>
<Border x:Name="BoardGeometry" Width="60" Height="50" MouseDown="Border_MouseDown" <Border x:Name="BoardGeometry" Width="60" Height="50" MouseDown="Border_MouseDown"
BorderThickness="0,1,1,1" BorderBrush="#a1a1aa" BorderThickness="0,1,1,1" BorderBrush="{DynamicResource BoardFloatBarBorderBrush}"
MouseUp="ImageDrawShape_MouseUp" Background="#f4f4f5" Opacity="0.95"> MouseUp="ImageDrawShape_MouseUp" Background="{DynamicResource BoardFloatBarBackground}" Opacity="0.95">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20"> RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20">
@@ -5791,8 +5791,8 @@
</Border> </Border>
</Border> </Border>
<Border x:Name="BoardInsertImage" Width="60" Height="50" MouseDown="Border_MouseDown" <Border x:Name="BoardInsertImage" Width="60" Height="50" MouseDown="Border_MouseDown"
BorderThickness="0,1,0,1" BorderBrush="#a1a1aa" BorderThickness="0,1,0,1" BorderBrush="{DynamicResource BoardFloatBarBorderBrush}"
MouseUp="InsertImageOptions_MouseUp" Background="#f4f4f5" Opacity="0.95"> MouseUp="InsertImageOptions_MouseUp" Background="{DynamicResource BoardFloatBarBackground}" Opacity="0.95">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20"> RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20">
@@ -5896,7 +5896,7 @@
</Border> </Border>
</Grid> </Grid>
</Border> </Border>
<Border x:Name="BoardUndo" Width="60" Height="50" MouseDown="Border_MouseDown" MouseUp="SymbolIconUndo_MouseUp" BorderThickness="0,1,0,1" BorderBrush="#a1a1aa" IsEnabled="{Binding ElementName=BtnUndo, Path=IsEnabled}" Background="#f4f4f5" Opacity="0.95"> <Border x:Name="BoardUndo" Width="60" Height="50" MouseDown="Border_MouseDown" MouseUp="SymbolIconUndo_MouseUp" BorderThickness="0,1,0,1" BorderBrush="{DynamicResource BoardFloatBarBorderBrush}" IsEnabled="{Binding ElementName=BtnUndo, Path=IsEnabled}" Background="{DynamicResource BoardFloatBarBackground}" Opacity="0.95">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20" Opacity="{Binding ElementName=BtnUndo, Path=IsEnabled, Converter={StaticResource IsEnabledToOpacityConverter}}"> RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20" Opacity="{Binding ElementName=BtnUndo, Path=IsEnabled, Converter={StaticResource IsEnabledToOpacityConverter}}">
@@ -5914,7 +5914,7 @@
<TextBlock Text="撤销" Foreground="{DynamicResource FloatBarForeground}" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="12" /> <TextBlock Text="撤销" Foreground="{DynamicResource FloatBarForeground}" VerticalAlignment="Bottom" HorizontalAlignment="Center" FontSize="12" />
</Grid> </Grid>
</Border> </Border>
<Border x:Name="BoardRedo" Width="60" Height="50" CornerRadius="0,5,5,0" MouseDown="Border_MouseDown" MouseUp="SymbolIconRedo_MouseUp" BorderThickness="0,1,1,1" BorderBrush="#a1a1aa" IsEnabled="{Binding ElementName=BtnRedo, Path=IsEnabled}" Background="#f4f4f5" Opacity="0.95"> <Border x:Name="BoardRedo" Width="60" Height="50" CornerRadius="0,5,5,0" MouseDown="Border_MouseDown" MouseUp="SymbolIconRedo_MouseUp" BorderThickness="0,1,1,1" BorderBrush="{DynamicResource BoardFloatBarBorderBrush}" IsEnabled="{Binding ElementName=BtnRedo, Path=IsEnabled}" Background="{DynamicResource BoardFloatBarBackground}" Opacity="0.95">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20" Opacity="{Binding ElementName=BtnRedo, Path=IsEnabled, Converter={StaticResource IsEnabledToOpacityConverter}}"> <Image VerticalAlignment="Top" RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20" Opacity="{Binding ElementName=BtnRedo, Path=IsEnabled, Converter={StaticResource IsEnabledToOpacityConverter}}">
<Image.Source> <Image.Source>
@@ -5935,11 +5935,11 @@
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
</Border> </Border>
<Border CornerRadius="5,5,5,5" Background="#f4f4f5"> <Border CornerRadius="5,5,5,5" Background="{DynamicResource BoardFloatBarBackground}">
<ui:SimpleStackPanel Orientation="Horizontal"> <ui:SimpleStackPanel Orientation="Horizontal">
<Border Width="60" Height="50" MouseDown="Border_MouseDown" <Border Width="60" Height="50" MouseDown="Border_MouseDown"
MouseUp="SymbolIconTools_MouseUp" Background="#f4f4f5" Opacity="0.95" MouseUp="SymbolIconTools_MouseUp" Background="{DynamicResource BoardFloatBarBackground}" Opacity="0.95"
BorderThickness="1,1,0,1" BorderBrush="#a1a1aa" BorderThickness="1,1,0,1" BorderBrush="{DynamicResource BoardFloatBarBorderBrush}"
CornerRadius="5,0,0,5"> CornerRadius="5,0,0,5">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
@@ -6191,9 +6191,9 @@
</Border> </Border>
<Border Width="60" Height="50" MouseDown="Border_MouseDown" <Border Width="60" Height="50" MouseDown="Border_MouseDown"
MouseUp="ImageBlackboard_MouseUp" MouseUp="ImageBlackboard_MouseUp"
CornerRadius="0,5,5,0" Background="#f4f4f5" Opacity="0.95" CornerRadius="0,5,5,0" Background="{DynamicResource BoardFloatBarBackground}" Opacity="0.95"
BorderThickness="0,1,1,1" BorderThickness="0,1,1,1"
BorderBrush="#a1a1aa"> BorderBrush="{DynamicResource BoardFloatBarBorderBrush}">
<Grid Margin="6,6,6,4"> <Grid Margin="6,6,6,4">
<Image VerticalAlignment="Top" <Image VerticalAlignment="Top"
RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20"> RenderOptions.BitmapScalingMode="HighQuality" Height="20" Width="20">