Merge language and theme into resource folder

This commit is contained in:
bao-qian
2016-01-07 20:04:37 +00:00
parent 8504d01688
commit ec40956721
19 changed files with 26 additions and 33 deletions

View File

@@ -2,11 +2,10 @@
using System.IO;
using System.Linq;
using System.Windows;
using Wox.Core.i18n;
using Wox.Core.Plugin;
using Wox.Plugin;
namespace Wox.Core.UI
namespace Wox.Core.Resource
{
public static class ResourceMerger
{
@@ -25,7 +24,7 @@ namespace Wox.Core.UI
}
}
public static void UpdateResource<T>(T t) where T : Resource
public static void UpdateResource<T>(T t) where T : Core.Resource.Resource
{
RemoveResource(t.DirectoryName);
Application.Current.Resources.MergedDictionaries.Add(t.GetResourceDictionary());