mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-11-24 04:12:32 +08:00
fix misspellings
This commit is contained in:
parent
36f55ae80c
commit
d192e6feb6
5
.github/actions/spell-check/expect.txt
vendored
5
.github/actions/spell-check/expect.txt
vendored
@ -903,6 +903,8 @@ hresult
|
|||||||
hrgn
|
hrgn
|
||||||
HRSRC
|
HRSRC
|
||||||
HSCROLL
|
HSCROLL
|
||||||
|
hsb
|
||||||
|
hsi
|
||||||
hsl
|
hsl
|
||||||
hstring
|
hstring
|
||||||
hsv
|
hsv
|
||||||
@ -913,6 +915,7 @@ html
|
|||||||
htt
|
htt
|
||||||
http
|
http
|
||||||
hu
|
hu
|
||||||
|
hwb
|
||||||
HWINEVENTHOOK
|
HWINEVENTHOOK
|
||||||
hwnd
|
hwnd
|
||||||
HWNDFIRST
|
HWNDFIRST
|
||||||
@ -1087,6 +1090,7 @@ IPrincipal
|
|||||||
IProgram
|
IProgram
|
||||||
IPublic
|
IPublic
|
||||||
IQuery
|
IQuery
|
||||||
|
IReadOnlyDictionary
|
||||||
IReflect
|
IReflect
|
||||||
IRegistered
|
IRegistered
|
||||||
IRegistration
|
IRegistration
|
||||||
@ -1438,6 +1442,7 @@ NCMBUTTONDOWN
|
|||||||
NCMBUTTONUP
|
NCMBUTTONUP
|
||||||
NCMOUSELEAVE
|
NCMOUSELEAVE
|
||||||
NCMOUSEMOVE
|
NCMOUSEMOVE
|
||||||
|
NCol
|
||||||
NCPAINT
|
NCPAINT
|
||||||
NCRBUTTONDBLCLK
|
NCRBUTTONDBLCLK
|
||||||
NCRBUTTONDOWN
|
NCRBUTTONDOWN
|
||||||
|
3
.github/actions/spell-check/patterns.txt
vendored
3
.github/actions/spell-check/patterns.txt
vendored
@ -10,6 +10,9 @@ data:[a-zA-Z=;,/0-9+-]+
|
|||||||
"Lorem[^"]+?\."
|
"Lorem[^"]+?\."
|
||||||
TestCase\("[^"]+"
|
TestCase\("[^"]+"
|
||||||
|
|
||||||
|
# Test line with hexadecimal colors
|
||||||
|
\[DataRow\("[0-9A-F]{6}", \d{3}, \d{3}, \d{3}\)\]
|
||||||
|
|
||||||
# Windows paths
|
# Windows paths
|
||||||
\\native
|
\\native
|
||||||
\\notifications
|
\\notifications
|
||||||
|
@ -23,7 +23,7 @@ namespace Microsoft.PowerToys.Settings.UI.Views
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <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>
|
/// </summary>
|
||||||
/// <param name="sender">The sender of this event</param>
|
/// <param name="sender">The sender of this event</param>
|
||||||
/// <param name="e">The arguments 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
|
* 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.
|
* 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
|
* Selection via SelectedItem and SelectedValue is still not working too
|
||||||
*/
|
*/
|
||||||
|
@ -74,15 +74,15 @@ namespace ColorPicker.Helpers
|
|||||||
/// <returns>A <see cref="string"/> representation of a HSB color</returns>
|
/// <returns>A <see cref="string"/> representation of a HSB color</returns>
|
||||||
private static string ColorToHSB(Color color)
|
private static string ColorToHSB(Color color)
|
||||||
{
|
{
|
||||||
var (hue, saturation, brightnes) = ColorHelper.ConvertToHSBColor(color);
|
var (hue, saturation, brightness) = ColorHelper.ConvertToHSBColor(color);
|
||||||
|
|
||||||
hue = Math.Round(hue);
|
hue = Math.Round(hue);
|
||||||
saturation = Math.Round(saturation * 100);
|
saturation = Math.Round(saturation * 100);
|
||||||
brightnes = Math.Round(brightnes * 100);
|
brightness = Math.Round(brightness * 100);
|
||||||
|
|
||||||
return $"hsb({hue.ToString(CultureInfo.InvariantCulture)}"
|
return $"hsb({hue.ToString(CultureInfo.InvariantCulture)}"
|
||||||
+ $", {saturation.ToString(CultureInfo.InvariantCulture)}%"
|
+ $", {saturation.ToString(CultureInfo.InvariantCulture)}%"
|
||||||
+ $", {brightnes.ToString(CultureInfo.InvariantCulture)}%)";
|
+ $", {brightness.ToString(CultureInfo.InvariantCulture)}%)";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user