2020-04-21 09:12:17 +00:00
|
|
|
|
namespace Flow.Launcher.Core.Resource
|
2014-12-27 04:34:51 +00:00
|
|
|
|
{
|
2015-01-03 07:20:34 +00:00
|
|
|
|
public class ThemeManager
|
2014-12-27 04:34:51 +00:00
|
|
|
|
{
|
2015-01-03 07:20:34 +00:00
|
|
|
|
private static Theme instance;
|
2015-01-02 15:07:49 +00:00
|
|
|
|
private static object syncObject = new object();
|
|
|
|
|
|
|
2016-03-28 02:09:57 +00:00
|
|
|
|
public static Theme Instance
|
2015-01-02 15:07:49 +00:00
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if (instance == null)
|
|
|
|
|
|
{
|
|
|
|
|
|
lock (syncObject)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (instance == null)
|
|
|
|
|
|
{
|
2015-01-03 07:20:34 +00:00
|
|
|
|
instance = new Theme();
|
2015-01-02 15:07:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return instance;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2014-12-27 04:34:51 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|