Files
Wino-Mail/Wino.Core.Domain/Interfaces/IThemeService.cs

28 lines
967 B
C#

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Wino.Domain.Enums;
using Wino.Domain.Models.Personalization;
namespace Wino.Domain.Interfaces
{
public interface IThemeService : IInitializeAsync
{
event EventHandler<ApplicationElementTheme> ElementThemeChanged;
event EventHandler<string> AccentColorChangedBySystem;
event EventHandler<string> AccentColorChanged;
Task<List<AppThemeBase>> GetAvailableThemesAsync();
Task<CustomThemeMetadata> CreateNewCustomThemeAsync(string themeName, string accentColor, byte[] wallpaperData);
Task<List<CustomThemeMetadata>> GetCurrentCustomThemesAsync();
Task ApplyCustomThemeAsync(bool isInitializing);
// Settings
ApplicationElementTheme RootTheme { get; set; }
Guid CurrentApplicationThemeId { get; set; }
string AccentColor { get; set; }
string GetSystemAccentColorHex();
}
}