public static void Register(ThemeCache c) { lock (_lock) { if (Inst != null) { throw new NotSupportedException(); } Inst = new ThemeManager(c); } }
private ThemeManager(ThemeCache c) { Cache = c; CurrentBaseTheme = c.GetFallback(); }
public ThemeCacheTest() { themeCache = new(new(null, options => { }) ); }