mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-22 22:16:13 -04:00
New: Native Theme Engine
Co-Authored-By: Zak Saunders <thezak48@users.noreply.github.com>
This commit is contained in:
@@ -16,11 +16,12 @@ namespace Sonarr.Api.V3.Config
|
||||
public bool ShowRelativeDates { get; set; }
|
||||
|
||||
public bool EnableColorImpairedMode { get; set; }
|
||||
public string Theme { get; set; }
|
||||
}
|
||||
|
||||
public static class UiConfigResourceMapper
|
||||
{
|
||||
public static UiConfigResource ToResource(IConfigService model)
|
||||
public static UiConfigResource ToResource(IConfigFileProvider config, IConfigService model)
|
||||
{
|
||||
return new UiConfigResource
|
||||
{
|
||||
@@ -33,6 +34,7 @@ namespace Sonarr.Api.V3.Config
|
||||
ShowRelativeDates = model.ShowRelativeDates,
|
||||
|
||||
EnableColorImpairedMode = model.EnableColorImpairedMode,
|
||||
Theme = config.Theme
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user