Add opacity mode settings

This commit is contained in:
Yeechan Lu
2014-03-26 17:34:19 +08:00
parent 45f32ba62c
commit 343da4878d
6 changed files with 248 additions and 127 deletions

View File

@@ -56,6 +56,12 @@ namespace Wox.Infrastructure.Storage.UserSettings
[JsonProperty]
public bool EnablePythonPlugins { get; set; }
[JsonProperty]
public double Opacity { get; set; }
[JsonProperty]
public OpacityMode OpacityMode { get; set; }
public List<WebSearch> LoadDefaultWebSearches()
{
List<WebSearch> webSearches = new List<WebSearch>();
@@ -123,6 +129,16 @@ namespace Wox.Infrastructure.Storage.UserSettings
Hotkey = "Alt + Space";
QueryBoxFont = FontFamily.GenericSansSerif.Name;
ResultItemFont = FontFamily.GenericSansSerif.Name;
Opacity = 1;
OpacityMode = OpacityMode.Normal;
}
}
public enum OpacityMode
{
Normal = 0,
LayeredWindow = 1,
DWM = 2
}
}