mirror of
https://github.com/BlossomiShymae/Needlework.Net.git
synced 2025-12-06 10:10:48 +01:00
feat: add MacOS platform options
This commit is contained in:
@@ -36,11 +36,15 @@ class Program
|
|||||||
return AppBuilder.Configure(() => new App(services))
|
return AppBuilder.Configure(() => new App(services))
|
||||||
.UsePlatformDetect()
|
.UsePlatformDetect()
|
||||||
.WithInterFont()
|
.WithInterFont()
|
||||||
.LogToTrace()
|
|
||||||
.With(new Win32PlatformOptions
|
.With(new Win32PlatformOptions
|
||||||
{
|
{
|
||||||
CompositionMode = [Win32CompositionMode.WinUIComposition, Win32CompositionMode.DirectComposition]
|
CompositionMode = [Win32CompositionMode.WinUIComposition, Win32CompositionMode.DirectComposition]
|
||||||
});
|
})
|
||||||
|
.With(new MacOSPlatformOptions
|
||||||
|
{
|
||||||
|
ShowInDock = true,
|
||||||
|
})
|
||||||
|
.LogToTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static async Task InitializeDataSourceAsync(IServiceProvider services)
|
private static async Task InitializeDataSourceAsync(IServiceProvider services)
|
||||||
|
|||||||
Reference in New Issue
Block a user