diff --git a/README.md b/README.md index af1fab3..ebabb26 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,10 @@ using HslCommunication.Profinet; ![](https://github.com/dathlin/C-S-/raw/master/软件系统客户端Wpf/screenshots/client2.png) +###### 主窗口的暗色主题 + +![](https://github.com/dathlin/C-S-/raw/master/软件系统客户端Wpf/screenshots/client3.png) + ###### 其他功能等待添加
diff --git a/软件系统客户端Wpf/MainWindow.xaml b/软件系统客户端Wpf/MainWindow.xaml index c600b0b..eac8270 100644 --- a/软件系统客户端Wpf/MainWindow.xaml +++ b/软件系统客户端Wpf/MainWindow.xaml @@ -8,7 +8,13 @@ xmlns:y="clr-namespace:ClientsLibrary;assembly=ClientsLibrary" mc:Ignorable="d" Title="MainWindow" Height="550" Width="825" WindowState="Maximized" Activated="Window_Activated" Closing="Window_Closing" ContentRendered="Window_ContentRendered" Initialized="Window_Initialized" - Loaded="Window_Loaded"> + Loaded="Window_Loaded" + TextElement.Foreground="{DynamicResource MaterialDesignBody}" + TextElement.FontWeight="Regular" + TextElement.FontSize="13" + TextOptions.TextFormattingMode="Ideal" + TextOptions.TextRenderingMode="Auto" + Background="{DynamicResource MaterialDesignPaper}"> @@ -20,6 +26,8 @@ + +