mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
b22a4501cc
1. introduce variable 2. part of #389 3. refactoring program suffix in program plugin 4. 全局变量一时爽,代码重构火葬场
27 lines
614 B
C#
27 lines
614 B
C#
namespace Wox.Core.Resource
|
|
{
|
|
public class ThemeManager
|
|
{
|
|
private static Theme instance;
|
|
private static object syncObject = new object();
|
|
|
|
public static Theme Instance
|
|
{
|
|
get
|
|
{
|
|
if (instance == null)
|
|
{
|
|
lock (syncObject)
|
|
{
|
|
if (instance == null)
|
|
{
|
|
instance = new Theme();
|
|
}
|
|
}
|
|
}
|
|
return instance;
|
|
}
|
|
}
|
|
}
|
|
}
|