Reloadable configuration, FontService (WIP)

This commit is contained in:
2023-02-22 16:50:50 +01:00
parent d6022ee02c
commit 3db5945cfd
18 changed files with 166 additions and 41 deletions

View File

@@ -0,0 +1,9 @@
namespace FileTime.GuiApp.Configuration;
public class FontConfiguration
{
public const string SectionName = "Font";
public List<string> Main { get; set; } = new();
public List<string> DateTime { get; set; } = new();
}

View File

@@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>FileTime.GuiApp</RootNamespace>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,7 @@
namespace FileTime.GuiApp.Services;
public interface IFontService
{
IObservable<string?> MainFont { get; }
string? GetMainFont();
}