Remove AllowsTransparency which is buggy in XP and poor performance.

This commit is contained in:
qianlifeng
2014-03-15 23:42:23 +08:00
parent f0b728a71b
commit a7b3ef34d8
8 changed files with 117 additions and 12 deletions

View File

@@ -46,6 +46,7 @@ namespace Wox
InitializeComponent();
Initialized = true;
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
progressBar.ToolTip = toolTip;
@@ -57,9 +58,9 @@ namespace Wox
{
SetTheme(CommonStorage.Instance.UserSetting.Theme);
}
catch (IOException)
catch (Exception)
{
SetTheme(CommonStorage.Instance.UserSetting.Theme = "Default");
SetTheme(CommonStorage.Instance.UserSetting.Theme = "Dark");
}
SetHotkey(CommonStorage.Instance.UserSetting.Hotkey, OnHotkey);
@@ -75,6 +76,8 @@ namespace Wox
Plugins.Init();
InitProgressbarAnimation();
//only works for win7+
DwmDropShadow.DropShadowToWindow(this);
}
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)