New theme service that supports window backdrop.

This commit is contained in:
Burak Kaan Köse
2025-10-03 21:04:23 +02:00
parent 15b6f5f6fb
commit 229006c51d
24 changed files with 1337 additions and 18 deletions
+8
View File
@@ -2,6 +2,7 @@
using System.Text;
using CommunityToolkit.Mvvm.Messaging;
using Microsoft.Extensions.DependencyInjection;
using Wino.Core.Domain.Enums;
using Wino.Core.Domain.Interfaces;
using Wino.Core.WinUI;
using Wino.Core.WinUI.Interfaces;
@@ -79,6 +80,13 @@ public partial class App : WinoApplication, IRecipient<NewMailSynchronizationReq
{
// TODO: Check app relaunch mutex before loading anything.
// Initialize NewThemeService first to get backdrop settings before creating window
var newThemeService = Services.GetService<INewThemeService>();
var configService = Services.GetService<IConfigurationService>();
// Load saved backdrop type before creating window
var savedBackdropType = (WindowBackdropType)configService.Get("WindowBackdropTypeKey", (int)WindowBackdropType.Mica);
MainWindow = new ShellWindow();
await InitializeServicesAsync();