From 39aadaa220c81f56ed462968bc8edcf1f26fd384 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Thu, 17 Jul 2014 18:42:11 +0800 Subject: [PATCH] close #113 can't check checkbox by clicking label --- Wox.Plugin.SystemPlugins/CMD/CMDSetting.xaml | 8 +-- Wox/SettingWindow.xaml | 53 ++++++++++---------- Wox/SettingWindow.xaml.cs | 2 +- 3 files changed, 32 insertions(+), 31 deletions(-) diff --git a/Wox.Plugin.SystemPlugins/CMD/CMDSetting.xaml b/Wox.Plugin.SystemPlugins/CMD/CMDSetting.xaml index a86f62bbe2..e7b5d5e2c0 100644 --- a/Wox.Plugin.SystemPlugins/CMD/CMDSetting.xaml +++ b/Wox.Plugin.SystemPlugins/CMD/CMDSetting.xaml @@ -13,12 +13,12 @@ - - + Replace Win+R - - + + Do not close Command Prompt after command execution + diff --git a/Wox/SettingWindow.xaml b/Wox/SettingWindow.xaml index 1e3b66fb3c..5559efccf0 100644 --- a/Wox/SettingWindow.xaml +++ b/Wox/SettingWindow.xaml @@ -23,12 +23,14 @@ - - + + Start Wox on system startup + - - + + Hide Wox when loses focus + @@ -105,8 +107,7 @@ - - Disable + Disable ActionKeyword: @@ -134,13 +135,12 @@ - + - - + @@ -158,7 +158,7 @@ - + @@ -197,24 +197,25 @@ - - - - - Normal - LayeredWindow - DWM - - - - - - - - - + + + + Normal + LayeredWindow + DWM + + + + + + + + + + + diff --git a/Wox/SettingWindow.xaml.cs b/Wox/SettingWindow.xaml.cs index 1579c0f2e6..6941d3e6e6 100644 --- a/Wox/SettingWindow.xaml.cs +++ b/Wox/SettingWindow.xaml.cs @@ -386,7 +386,7 @@ namespace Wox UserSettingStorage.Instance.OpacityMode = (OpacityMode)CbOpacityMode.SelectedItem; UserSettingStorage.Instance.Save(); - slOpacity.IsEnabled = UserSettingStorage.Instance.OpacityMode == OpacityMode.LayeredWindow; + spOpacity.Visibility = UserSettingStorage.Instance.OpacityMode == OpacityMode.LayeredWindow ? Visibility.Visible : Visibility.Collapsed; if (UserSettingStorage.Instance.OpacityMode == OpacityMode.LayeredWindow) PreviewMainPanel.Opacity = UserSettingStorage.Instance.Opacity;