improve:计时器UI

This commit is contained in:
2025-10-06 20:33:50 +08:00
parent ca124732fa
commit a9bb6f73de
2 changed files with 1 additions and 17 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:Ink_Canvas"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern"
Topmost="True" Background="{DynamicResource SeewoTimerWindowBackground}"
Topmost="True" Background="Transparent"
mc:Ignorable="d" WindowStyle="None" AllowsTransparency="True"
WindowStartupLocation="Manual" Title="计时器" Height="200" Width="600"
MouseLeftButtonDown="Window_MouseLeftButtonDown" MouseLeftButtonUp="Window_MouseLeftButtonUp"
@@ -93,22 +93,6 @@ namespace Ink_Canvas
{
try
{
// 应用主题设置
var mainWindow = Application.Current.MainWindow as MainWindow;
if (mainWindow != null)
{
bool isLightTheme = IsLightTheme();
if (isLightTheme)
{
// 应用浅色主题
this.Background = new SolidColorBrush(Color.FromRgb(255, 255, 255));
}
else
{
// 应用深色主题
this.Background = new SolidColorBrush(Color.FromRgb(30, 30, 30));
}
}
}
catch (Exception ex)
{