fix misspellings

This commit is contained in:
Sekan, Tobias 2020-11-09 06:30:36 +01:00
parent 36f55ae80c
commit d192e6feb6
4 changed files with 13 additions and 5 deletions

View File

@ -903,6 +903,8 @@ hresult
hrgn
HRSRC
HSCROLL
hsb
hsi
hsl
hstring
hsv
@ -913,6 +915,7 @@ html
htt
http
hu
hwb
HWINEVENTHOOK
hwnd
HWNDFIRST
@ -1087,6 +1090,7 @@ IPrincipal
IProgram
IPublic
IQuery
IReadOnlyDictionary
IReflect
IRegistered
IRegistration
@ -1438,6 +1442,7 @@ NCMBUTTONDOWN
NCMBUTTONUP
NCMOUSELEAVE
NCMOUSEMOVE
NCol
NCPAINT
NCRBUTTONDBLCLK
NCRBUTTONDOWN

View File

@ -10,6 +10,9 @@ data:[a-zA-Z=;,/0-9+-]+
"Lorem[^"]+?\."
TestCase\("[^"]+"
# Test line with hexadecimal colors
\[DataRow\("[0-9A-F]{6}", \d{3}, \d{3}, \d{3}\)\]
# Windows paths
\\native
\\notifications

View File

@ -23,7 +23,7 @@ namespace Microsoft.PowerToys.Settings.UI.Views
}
/// <summary>
/// Event is called when the <see cref="ComboBox"/> is completly loaded, inclusive the ItemSource
/// Event is called when the <see cref="ComboBox"/> is completely loaded, inclusive the ItemSource
/// </summary>
/// <param name="sender">The sender of this event</param>
/// <param name="e">The arguments of this event</param>
@ -31,7 +31,7 @@ namespace Microsoft.PowerToys.Settings.UI.Views
{
/**
* UWP hack
* because UWP load the binded ItemSource of the ComboBox asyncronous,
* because UWP load the bound ItemSource of the ComboBox asynchronous,
* so after InitializeComponent() the ItemSource is still empty and can't automatically select a entry.
* Selection via SelectedItem and SelectedValue is still not working too
*/

View File

@ -74,15 +74,15 @@ namespace ColorPicker.Helpers
/// <returns>A <see cref="string"/> representation of a HSB color</returns>
private static string ColorToHSB(Color color)
{
var (hue, saturation, brightnes) = ColorHelper.ConvertToHSBColor(color);
var (hue, saturation, brightness) = ColorHelper.ConvertToHSBColor(color);
hue = Math.Round(hue);
saturation = Math.Round(saturation * 100);
brightnes = Math.Round(brightnes * 100);
brightness = Math.Round(brightness * 100);
return $"hsb({hue.ToString(CultureInfo.InvariantCulture)}"
+ $", {saturation.ToString(CultureInfo.InvariantCulture)}%"
+ $", {brightnes.ToString(CultureInfo.InvariantCulture)}%)";
+ $", {brightness.ToString(CultureInfo.InvariantCulture)}%)";
}
/// <summary>