diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Controls/HotkeySettingsControl.xaml.cs b/src/core/Microsoft.PowerToys.Settings.UI/Controls/HotkeySettingsControl.xaml.cs index d129a57a82..cd5b7a7d6c 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Controls/HotkeySettingsControl.xaml.cs +++ b/src/core/Microsoft.PowerToys.Settings.UI/Controls/HotkeySettingsControl.xaml.cs @@ -2,18 +2,18 @@ // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using Microsoft.PowerToys.Settings.UI.Lib; using System; +using Microsoft.PowerToys.Settings.UI.Lib; using Windows.UI.Core; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; -using Windows.UI.Xaml.Input; namespace Microsoft.PowerToys.Settings.UI.Controls { public sealed partial class HotkeySettingsControl : UserControl { public string Header { get; set; } + public string Keys { get; set; } public static readonly DependencyProperty IsActiveProperty = @@ -40,14 +40,16 @@ namespace Microsoft.PowerToys.Settings.UI.Controls if (value) { HotkeyTextBox.IsEnabled = true; - //TitleText.IsActive = "True"; - //TitleGlyph.IsActive = "True"; + + // TitleText.IsActive = "True"; + // TitleGlyph.IsActive = "True"; } else { HotkeyTextBox.IsEnabled = false; - //TitleText.IsActive = "False"; - //TitleGlyph.IsActive = "False"; + + // TitleText.IsActive = "False"; + // TitleGlyph.IsActive = "False"; } } } diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Converters/ModuleEnabledToForegroundConverter.cs b/src/core/Microsoft.PowerToys.Settings.UI/Converters/ModuleEnabledToForegroundConverter.cs index 1fea50367a..56709d31d7 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Converters/ModuleEnabledToForegroundConverter.cs +++ b/src/core/Microsoft.PowerToys.Settings.UI/Converters/ModuleEnabledToForegroundConverter.cs @@ -1,8 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +// Copyright (c) Microsoft Corporation +// The Microsoft Corporation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System; using Windows.UI; using Windows.UI.Xaml; using Windows.UI.Xaml.Data; @@ -30,4 +30,4 @@ namespace Microsoft.PowerToys.Settings.UI.Converters return value; } } -} \ No newline at end of file +} diff --git a/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/FancyZonesViewModel.cs b/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/FancyZonesViewModel.cs index f191959857..a4fb7a3718 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/FancyZonesViewModel.cs +++ b/src/core/Microsoft.PowerToys.Settings.UI/ViewModels/FancyZonesViewModel.cs @@ -420,7 +420,6 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels { if (value.IsEmpty()) { - _editorHotkey = FZConfigProperties.DefaultHotkeyValue; } else @@ -458,7 +457,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels ShellPage.DefaultSndMSGCallback("{\"action\":{\"FancyZones\":{\"action_name\":\"ToggledFZEditor\", \"value\":\"\"}}}"); } - private String ToRGBHex(Color color) + private string ToRGBHex(Color color) { return "#" + color.R.ToString("X2") + color.G.ToString("X2") + color.B.ToString("X2"); } diff --git a/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs b/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs index 92dd797d28..9b7fec72fb 100644 --- a/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs +++ b/src/core/Microsoft.PowerToys.Settings.UI/Views/ImageResizerPage.xaml.cs @@ -9,7 +9,7 @@ namespace Microsoft.PowerToys.Settings.UI.Views { public sealed partial class ImageResizerPage : Page { - ImageResizerViewModel ViewModel { get; set; } + private ImageResizerViewModel ViewModel { get; set; } public ImageResizerPage() {