improve:主题切换

This commit is contained in:
2025-10-04 17:47:52 +08:00
parent 98915bcff2
commit ddea61245d
2 changed files with 13 additions and 8 deletions
+5 -5
View File
@@ -8917,14 +8917,14 @@
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Center" <ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Center"
Margin="0,0,0,0" Spacing="4"> Margin="0,0,0,0" Spacing="4">
<Border x:Name="CircleEraserTabButton" MouseDown="SwitchToCircleEraser" <Border x:Name="CircleEraserTabButton" MouseDown="SwitchToCircleEraser"
Background="#553b82f6" Height="20" Width="40" CornerRadius="3"> Background="{DynamicResource FloatBarButtonBackgroundPointerOverKey}" Height="20" Width="40" CornerRadius="3">
<Canvas> <Canvas>
<ui:SimpleStackPanel x:Name="CircleEraserTabButtonIndicator" <ui:SimpleStackPanel x:Name="CircleEraserTabButtonIndicator"
Visibility="Visible" Visibility="Visible"
Orientation="Horizontal" Orientation="Horizontal"
Canvas.Left="11" Canvas.Right="11" Canvas.Left="11" Canvas.Right="11"
Canvas.Bottom="0"> Canvas.Bottom="0">
<Border Width="18" Height="2" Background="#2563eb" <Border Width="18" Height="2" Background="{DynamicResource FloatBarButtonButtonBackgroundPressedKey}"
CornerRadius="1" /> CornerRadius="1" />
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
<ui:SimpleStackPanel Orientation="Vertical" Height="20" <ui:SimpleStackPanel Orientation="Vertical" Height="20"
@@ -8933,7 +8933,7 @@
Orientation="Horizontal" Orientation="Horizontal"
HorizontalAlignment="Center" Margin="0,3"> HorizontalAlignment="Center" Margin="0,3">
<TextBlock x:Name="CircleEraserTabButtonText" <TextBlock x:Name="CircleEraserTabButtonText"
Foreground="#172554" FontWeight="Medium" Foreground="{DynamicResource FloatBarForeground}" FontWeight="Medium"
FontSize="9" TextAlignment="Center" FontSize="9" TextAlignment="Center"
Text="圆形擦" Text="圆形擦"
Margin="2,1,0,0" /> Margin="2,1,0,0" />
@@ -8949,7 +8949,7 @@
x:Name="RectangleEraserTabButtonIndicator" x:Name="RectangleEraserTabButtonIndicator"
Orientation="Horizontal" Canvas.Left="11" Orientation="Horizontal" Canvas.Left="11"
Canvas.Right="11" Canvas.Bottom="0"> Canvas.Right="11" Canvas.Bottom="0">
<Border Width="18" Height="2" Background="#2563eb" <Border Width="18" Height="2" Background="{DynamicResource FloatBarButtonButtonBackgroundPressedKey}"
CornerRadius="1" /> CornerRadius="1" />
</ui:SimpleStackPanel> </ui:SimpleStackPanel>
<ui:SimpleStackPanel Orientation="Vertical" Height="20" <ui:SimpleStackPanel Orientation="Vertical" Height="20"
@@ -8958,7 +8958,7 @@
Orientation="Horizontal" Orientation="Horizontal"
HorizontalAlignment="Center" Margin="0,3"> HorizontalAlignment="Center" Margin="0,3">
<TextBlock x:Name="RectangleEraserTabButtonText" <TextBlock x:Name="RectangleEraserTabButtonText"
Foreground="#172554" FontWeight="Medium" Foreground="{DynamicResource FloatBarForeground}" FontWeight="Medium"
FontSize="9" TextAlignment="Center" FontSize="9" TextAlignment="Center"
Text="黑板擦" Text="黑板擦"
Margin="2,1,0,0" /> Margin="2,1,0,0" />
+8 -3
View File
@@ -17,9 +17,9 @@
<SolidColorBrush x:Key="RedBrush" Color="DarkRed" /> <SolidColorBrush x:Key="RedBrush" Color="DarkRed" />
<SolidColorBrush x:Key="PurpleBrush" Color="DarkBlue" /> <SolidColorBrush x:Key="PurpleBrush" Color="DarkBlue" />
<Color x:Key="FloatBarButtonBackgroundKey">Transparent</Color> <SolidColorBrush x:Key="FloatBarButtonBackgroundKey" Color="Transparent" />
<Color x:Key="FloatBarButtonBackgroundPointerOverKey">#66FFFFFF</Color> <SolidColorBrush x:Key="FloatBarButtonBackgroundPointerOverKey" Color="#22563eb" />
<Color x:Key="FloatBarButtonButtonBackgroundPressedKey">#99FFFFFF</Color> <SolidColorBrush x:Key="FloatBarButtonButtonBackgroundPressedKey" Color="#44563eb" />
<!-- 白板模式浮动栏颜色 --> <!-- 白板模式浮动栏颜色 -->
<SolidColorBrush x:Key="BoardFloatBarBackground" Color="#f4f4f5" /> <SolidColorBrush x:Key="BoardFloatBarBackground" Color="#f4f4f5" />
@@ -30,6 +30,11 @@
<SolidColorBrush x:Key="BoardFloatBarSelectedBorderBrush" Color="#2563eb" /> <SolidColorBrush x:Key="BoardFloatBarSelectedBorderBrush" Color="#2563eb" />
<SolidColorBrush x:Key="BoardFloatBarSelectedForeground" Color="White" /> <SolidColorBrush x:Key="BoardFloatBarSelectedForeground" Color="White" />
<!-- 白板模式橡皮擦按钮颜色 -->
<SolidColorBrush x:Key="BoardFloatBarButtonBackgroundKey" Color="Transparent" />
<SolidColorBrush x:Key="BoardFloatBarButtonBackgroundPointerOverKey" Color="#22563eb" />
<SolidColorBrush x:Key="BoardFloatBarButtonButtonBackgroundPressedKey" Color="#44563eb" />
<!-- 历史回滚窗口主题颜色 --> <!-- 历史回滚窗口主题颜色 -->
<SolidColorBrush x:Key="HistoryWindowPrimaryBrush" Color="#2563eb"/> <SolidColorBrush x:Key="HistoryWindowPrimaryBrush" Color="#2563eb"/>
<SolidColorBrush x:Key="HistoryWindowPrimaryHoverBrush" Color="#1d4ed8"/> <SolidColorBrush x:Key="HistoryWindowPrimaryHoverBrush" Color="#1d4ed8"/>