improve:主题切换

This commit is contained in:
2025-10-01 09:13:48 +08:00
parent c91b8a1a7a
commit 851bd1c3c6
12 changed files with 78 additions and 16 deletions
+9
View File
@@ -493,6 +493,15 @@
<Resource Include="Resources\new-icons\unfold-chevron.png" />
<Resource Include="Resources\new-icons\zoom.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Icons-Fluent\ic_fluent_person_money_24_regular-light.png" />
<Resource Include="Resources\Icons-Fluent\ic_fluent_people_money_24_regular-light.png" />
<Resource Include="Resources\Icons-Fluent\ic_fluent_timer_24_regular-light.png" />
<Resource Include="Resources\new-icons\blackboard-light.png" />
<Resource Include="Resources\new-icons\end-slides-show-light.png" />
<Resource Include="Resources\new-icons\eye-light.png" />
<Resource Include="Resources\new-icons\chevron-left-light.png" />
</ItemGroup>
<ItemGroup>
<Compile Remove="AssemblyInfo.cs" />
</ItemGroup>
+16 -16
View File
@@ -9578,7 +9578,7 @@
<ui:SimpleStackPanel>
<Border Background="#9918181b" Opacity="1" CornerRadius="0,25,25,0" Height="50" Width="32">
<Image x:Name="LeftUnFoldBtnImgChevron" Margin="10,0,0,0"
Source="/Resources/new-icons/unfold-chevron.png"
Source="{DynamicResource QuickPanelUnfoldChevronIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="14" Width="14" />
</Border>
</ui:SimpleStackPanel>
@@ -9592,7 +9592,7 @@
MouseUp="SymbolIconRandOne_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/Icons-Fluent/ic_fluent_person_money_24_regular.png"
<Image Source="{DynamicResource QuickPanelPersonMoneyIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="单次抽" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9600,7 +9600,7 @@
MouseUp="SymbolIconRand_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/Icons-Fluent/ic_fluent_people_money_24_regular.png"
<Image Source="{DynamicResource QuickPanelPeopleMoneyIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="随机抽" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9608,7 +9608,7 @@
MouseUp="ImageCountdownTimer_MouseUp" Background="Transparent"
Orientation="Vertical" HorizontalAlignment="Center" Width="32" Margin="0">
<Image Source="/Resources/Icons-Fluent/ic_fluent_timer_24_regular.png"
<Image Source="{DynamicResource QuickPanelTimerIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="计时器" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9616,7 +9616,7 @@
MouseUp="ImageBlackboard_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/new-icons/blackboard.png"
<Image Source="{DynamicResource QuickPanelBlackboardIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="白板" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9625,7 +9625,7 @@
MouseUp="ExitPPTSlideShow_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0" Visibility="Collapsed">
<Image Source="/Resources/new-icons/end-slides-show.png"
<Image Source="{DynamicResource QuickPanelEndSlideshowIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="退出放映" Foreground="{DynamicResource FloatBarForeground}" FontSize="7" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9634,7 +9634,7 @@
MouseUp="UnFoldFloatingBar_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/new-icons/eye.png" RenderOptions.BitmapScalingMode="HighQuality"
<Image Source="{DynamicResource QuickPanelEyeIcon}" RenderOptions.BitmapScalingMode="HighQuality"
Height="17" Margin="0,3,0,0" />
<TextBlock Text="显示" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9642,7 +9642,7 @@
MouseUp="HideQuickPanel_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/new-icons/chevron-left.png"
<Image Source="{DynamicResource QuickPanelChevronLeftIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,3" />
</ui:SimpleStackPanel>
</ui:SimpleStackPanel>
@@ -9654,7 +9654,7 @@
<ui:SimpleStackPanel>
<Border Background="#9918181b" Opacity="1" CornerRadius="25,0,0,25" Height="50" Width="32">
<Image Margin="0,0,10,0" x:Name="RightUnFoldBtnImgChevron"
Source="/Resources/new-icons/unfold-chevron.png"
Source="{DynamicResource QuickPanelUnfoldChevronIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="14" Width="14"
RenderTransformOrigin="0.5,0.5">
<Image.RenderTransform>
@@ -9675,7 +9675,7 @@
MouseUp="SymbolIconRandOne_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/Icons-Fluent/ic_fluent_person_money_24_regular.png"
<Image Source="{DynamicResource QuickPanelPersonMoneyIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="单次抽" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9683,7 +9683,7 @@
MouseUp="SymbolIconRand_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/Icons-Fluent/ic_fluent_people_money_24_regular.png"
<Image Source="{DynamicResource QuickPanelPeopleMoneyIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="随机抽" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9691,7 +9691,7 @@
MouseUp="ImageCountdownTimer_MouseUp" Background="Transparent"
Orientation="Vertical" HorizontalAlignment="Center" Width="32" Margin="0">
<Image Source="/Resources/Icons-Fluent/ic_fluent_timer_24_regular.png"
<Image Source="{DynamicResource QuickPanelTimerIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="计时器" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9699,7 +9699,7 @@
MouseUp="ImageBlackboard_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/new-icons/blackboard.png"
<Image Source="{DynamicResource QuickPanelBlackboardIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="白板" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9708,7 +9708,7 @@
MouseUp="ExitPPTSlideShow_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0" Visibility="Collapsed">
<Image Source="/Resources/new-icons/end-slides-show.png"
<Image Source="{DynamicResource QuickPanelEndSlideshowIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,0" />
<TextBlock Text="退出放映" Foreground="{DynamicResource FloatBarForeground}" FontSize="7" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9717,7 +9717,7 @@
MouseUp="UnFoldFloatingBar_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/new-icons/eye.png" RenderOptions.BitmapScalingMode="HighQuality"
<Image Source="{DynamicResource QuickPanelEyeIcon}" RenderOptions.BitmapScalingMode="HighQuality"
Height="17" Margin="0,3,0,0" />
<TextBlock Text="显示" Foreground="{DynamicResource FloatBarForeground}" FontSize="8" Margin="0,2,0,3" TextAlignment="Center" />
</ui:SimpleStackPanel>
@@ -9725,7 +9725,7 @@
MouseUp="HideQuickPanel_MouseUp"
Background="Transparent" Orientation="Vertical" HorizontalAlignment="Center"
Width="32" Margin="0">
<Image Source="/Resources/new-icons/chevron-left.png"
<Image Source="{DynamicResource QuickPanelChevronLeftIcon}"
RenderOptions.BitmapScalingMode="HighQuality" Height="17" Margin="0,3,0,3"
RenderTransformOrigin="0.5,0.5">
<Image.RenderTransform>
+35
View File
@@ -54,6 +54,9 @@ namespace Ink_Canvas
InitializeFloatBarForegroundColor();
// 刷新快速面板图标
RefreshQuickPanelIcons();
// 强制刷新UI
window.InvalidateVisual();
}
@@ -79,6 +82,9 @@ namespace Ink_Canvas
InitializeFloatBarForegroundColor();
// 刷新快速面板图标
RefreshQuickPanelIcons();
// 强制刷新UI
window.InvalidateVisual();
}
@@ -103,6 +109,35 @@ namespace Ink_Canvas
}
}
/// <summary>
/// 刷新快速面板图标
/// </summary>
private void RefreshQuickPanelIcons()
{
try
{
if (LeftUnFoldButtonQuickPanel != null)
{
LeftUnFoldButtonQuickPanel.InvalidateVisual();
}
if (RightUnFoldButtonQuickPanel != null)
{
RightUnFoldButtonQuickPanel.InvalidateVisual();
}
if (LeftSidePanel != null)
{
LeftSidePanel.InvalidateVisual();
}
if (RightSidePanel != null)
{
RightSidePanel.InvalidateVisual();
}
}
catch (Exception)
{
}
}
/// <summary>
/// 刷新浮动工具栏按钮颜色
/// </summary>
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

+9
View File
@@ -38,4 +38,13 @@
<SolidColorBrush x:Key="HistoryWindowCardBorderBrush" Color="#404040"/>
<SolidColorBrush x:Key="HistoryWindowTextPrimaryBrush" Color="#f9fafb"/>
<SolidColorBrush x:Key="HistoryWindowTextSecondaryBrush" Color="#9ca3af"/>
<!-- 快速面板图标资源 - 深色主题 -->
<BitmapImage x:Key="QuickPanelPersonMoneyIcon" UriSource="/Resources/Icons-Fluent/ic_fluent_person_money_24_regular-light.png"/>
<BitmapImage x:Key="QuickPanelPeopleMoneyIcon" UriSource="/Resources/Icons-Fluent/ic_fluent_people_money_24_regular-light.png"/>
<BitmapImage x:Key="QuickPanelTimerIcon" UriSource="/Resources/Icons-Fluent/ic_fluent_timer_24_regular-light.png"/>
<BitmapImage x:Key="QuickPanelBlackboardIcon" UriSource="/Resources/new-icons/blackboard-light.png"/>
<BitmapImage x:Key="QuickPanelEndSlideshowIcon" UriSource="/Resources/new-icons/end-slides-show-light.png"/>
<BitmapImage x:Key="QuickPanelEyeIcon" UriSource="/Resources/new-icons/eye-light.png"/>
<BitmapImage x:Key="QuickPanelChevronLeftIcon" UriSource="/Resources/new-icons/chevron-left-light.png"/>
</ResourceDictionary>
+9
View File
@@ -38,4 +38,13 @@
<SolidColorBrush x:Key="HistoryWindowCardBorderBrush" Color="#e5e7eb"/>
<SolidColorBrush x:Key="HistoryWindowTextPrimaryBrush" Color="#1f2937"/>
<SolidColorBrush x:Key="HistoryWindowTextSecondaryBrush" Color="#6b7280"/>
<!-- 快速面板图标资源 - 浅色主题 -->
<BitmapImage x:Key="QuickPanelPersonMoneyIcon" UriSource="/Resources/Icons-Fluent/ic_fluent_person_money_24_regular.png"/>
<BitmapImage x:Key="QuickPanelPeopleMoneyIcon" UriSource="/Resources/Icons-Fluent/ic_fluent_people_money_24_regular.png"/>
<BitmapImage x:Key="QuickPanelTimerIcon" UriSource="/Resources/Icons-Fluent/ic_fluent_timer_24_regular.png"/>
<BitmapImage x:Key="QuickPanelBlackboardIcon" UriSource="/Resources/new-icons/blackboard.png"/>
<BitmapImage x:Key="QuickPanelEndSlideshowIcon" UriSource="/Resources/new-icons/end-slides-show.png"/>
<BitmapImage x:Key="QuickPanelEyeIcon" UriSource="/Resources/new-icons/eye.png"/>
<BitmapImage x:Key="QuickPanelChevronLeftIcon" UriSource="/Resources/new-icons/chevron-left.png"/>
</ResourceDictionary>
Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB