mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
fixed another set of warnings (#5219)
Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
This commit is contained in:
@@ -2,18 +2,18 @@
|
|||||||
// The Microsoft Corporation licenses this file to you under the MIT license.
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
// See the LICENSE file in the project root for more information.
|
// See the LICENSE file in the project root for more information.
|
||||||
|
|
||||||
using Microsoft.PowerToys.Settings.UI.Lib;
|
|
||||||
using System;
|
using System;
|
||||||
|
using Microsoft.PowerToys.Settings.UI.Lib;
|
||||||
using Windows.UI.Core;
|
using Windows.UI.Core;
|
||||||
using Windows.UI.Xaml;
|
using Windows.UI.Xaml;
|
||||||
using Windows.UI.Xaml.Controls;
|
using Windows.UI.Xaml.Controls;
|
||||||
using Windows.UI.Xaml.Input;
|
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Controls
|
namespace Microsoft.PowerToys.Settings.UI.Controls
|
||||||
{
|
{
|
||||||
public sealed partial class HotkeySettingsControl : UserControl
|
public sealed partial class HotkeySettingsControl : UserControl
|
||||||
{
|
{
|
||||||
public string Header { get; set; }
|
public string Header { get; set; }
|
||||||
|
|
||||||
public string Keys { get; set; }
|
public string Keys { get; set; }
|
||||||
|
|
||||||
public static readonly DependencyProperty IsActiveProperty =
|
public static readonly DependencyProperty IsActiveProperty =
|
||||||
@@ -40,14 +40,16 @@ namespace Microsoft.PowerToys.Settings.UI.Controls
|
|||||||
if (value)
|
if (value)
|
||||||
{
|
{
|
||||||
HotkeyTextBox.IsEnabled = true;
|
HotkeyTextBox.IsEnabled = true;
|
||||||
//TitleText.IsActive = "True";
|
|
||||||
//TitleGlyph.IsActive = "True";
|
// TitleText.IsActive = "True";
|
||||||
|
// TitleGlyph.IsActive = "True";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
HotkeyTextBox.IsEnabled = false;
|
HotkeyTextBox.IsEnabled = false;
|
||||||
//TitleText.IsActive = "False";
|
|
||||||
//TitleGlyph.IsActive = "False";
|
// TitleText.IsActive = "False";
|
||||||
|
// TitleGlyph.IsActive = "False";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
using System;
|
// Copyright (c) Microsoft Corporation
|
||||||
using System.Collections.Generic;
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
||||||
using System.Linq;
|
// See the LICENSE file in the project root for more information.
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
using System;
|
||||||
using Windows.UI;
|
using Windows.UI;
|
||||||
using Windows.UI.Xaml;
|
using Windows.UI.Xaml;
|
||||||
using Windows.UI.Xaml.Data;
|
using Windows.UI.Xaml.Data;
|
||||||
@@ -30,4 +30,4 @@ namespace Microsoft.PowerToys.Settings.UI.Converters
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -420,7 +420,6 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
|||||||
{
|
{
|
||||||
if (value.IsEmpty())
|
if (value.IsEmpty())
|
||||||
{
|
{
|
||||||
|
|
||||||
_editorHotkey = FZConfigProperties.DefaultHotkeyValue;
|
_editorHotkey = FZConfigProperties.DefaultHotkeyValue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -458,7 +457,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
|||||||
ShellPage.DefaultSndMSGCallback("{\"action\":{\"FancyZones\":{\"action_name\":\"ToggledFZEditor\", \"value\":\"\"}}}");
|
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");
|
return "#" + color.R.ToString("X2") + color.G.ToString("X2") + color.B.ToString("X2");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace Microsoft.PowerToys.Settings.UI.Views
|
|||||||
{
|
{
|
||||||
public sealed partial class ImageResizerPage : Page
|
public sealed partial class ImageResizerPage : Page
|
||||||
{
|
{
|
||||||
ImageResizerViewModel ViewModel { get; set; }
|
private ImageResizerViewModel ViewModel { get; set; }
|
||||||
|
|
||||||
public ImageResizerPage()
|
public ImageResizerPage()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user