1
0
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:
Qstick
2021-11-20 17:15:30 -06:00
committed by Mark McDowall
parent e1de523c89
commit 2291f3e00e
139 changed files with 849 additions and 456 deletions
+3 -1
View File
@@ -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
};
}
}