修复 Modal 未监控主题变化
This commit is contained in:
parent
232dff06f7
commit
3e77c3a1bc
@ -25,15 +25,30 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="assets\*" />
|
<Content Include="assets\*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="AntdUI" Version="1.5.3" />
|
<PackageReference Include="AntdUI" Version="1.5.4" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System.Configuration" />
|
<Reference Include="System.Configuration" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Update="Properties\Resources.Designer.cs">
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Resources.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Update="Properties\Resources.resx">
|
||||||
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||||
|
</EmbeddedResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@ -55,16 +55,12 @@ namespace AntdUIDemo.Controls
|
|||||||
AntdUI.Config.IsLight = true;
|
AntdUI.Config.IsLight = true;
|
||||||
Window.BackColor = Color.White;
|
Window.BackColor = Color.White;
|
||||||
Window.ForeColor = Color.Black;
|
Window.ForeColor = Color.Black;
|
||||||
BackColor = Color.White;
|
|
||||||
ForeColor = Color.Black;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AntdUI.Config.IsDark = true;// 设置为深色模式
|
AntdUI.Config.IsDark = true;// 设置为深色模式
|
||||||
Window.BackColor = Color.Black;
|
Window.BackColor = Color.Black;
|
||||||
Window.ForeColor = Color.White;
|
Window.ForeColor = Color.White;
|
||||||
BackColor = Color.Black;
|
|
||||||
ForeColor = Color.White;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user