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