Remove old theme service completely.

This commit is contained in:
Burak Kaan Köse
2025-10-03 21:17:41 +02:00
parent 1c49b69332
commit e42ebb49ae
9 changed files with 15 additions and 18 deletions
@@ -13,13 +13,13 @@ public sealed partial class CustomThemeBuilderDialog : ContentDialog
public byte[] WallpaperData { get; private set; }
public string AccentColor { get; private set; }
private IThemeService _themeService;
private INewThemeService _themeService;
public CustomThemeBuilderDialog()
{
InitializeComponent();
_themeService = WinoApplication.Current.Services.GetService<IThemeService>();
_themeService = WinoApplication.Current.Services.GetService<INewThemeService>();
}
private async void ApplyClicked(ContentDialog sender, ContentDialogButtonClickEventArgs args)
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Windows.System;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Windows.System;
using Wino.Core.Domain.Enums;
using Wino.Core.Domain.Interfaces;
using Wino.Core.Domain.Models.Accounts;
@@ -67,7 +67,7 @@ public sealed partial class NewAccountDialog : ContentDialog
{
InitializeComponent();
var themeService = WinoApplication.Current.ThemeService.GetAvailableAccountColors();
var themeService = WinoApplication.Current.NewThemeService.GetAvailableAccountColors();
AvailableColors = themeService.Select(a => new AppColorViewModel(a)).ToList();
UpdateSelectedColor();