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
|
||||
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
|
||||
|
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[^"]+?\."
|
||||
TestCase\("[^"]+"
|
||||
|
||||
# Test line with hexadecimal colors
|
||||
\[DataRow\("[0-9A-F]{6}", \d{3}, \d{3}, \d{3}\)\]
|
||||
|
||||
# Windows paths
|
||||
\\native
|
||||
\\notifications
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user