mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 17:56:51 +13:00
fixed #531: Added Hex color info to screen color picker
This commit is contained in:
parent
8797bb7fc4
commit
e0e06c82fc
2 changed files with 4 additions and 3 deletions
|
@ -308,7 +308,8 @@ private void DrawScreenColorPickerInfo(Graphics g)
|
|||
g.DrawRectangleProper(Pens.Black, colorBox);
|
||||
}
|
||||
|
||||
string infoText = string.Format(Resources.RectangleRegion_GetColorPickerText, color.R, color.G, color.B, CurrentPosition.X, CurrentPosition.Y);
|
||||
string infoText = string.Format(Resources.RectangleRegion_GetColorPickerText, color.R, color.G, color.B, ColorHelpers.ColorToHex(color),
|
||||
CurrentPosition.X, CurrentPosition.Y);
|
||||
|
||||
ImageHelpers.DrawTextWithOutline(g, infoText, new PointF(CurrentPosition.X + 25, CurrentPosition.Y + 5), textFont, Color.White, Color.Black);
|
||||
}
|
||||
|
|
|
@ -164,7 +164,7 @@ Distance: {6:0.00} px / Angle: {7:0.00}°</value>
|
|||
<value>Ctrl: Drawing mode ░ Space: Fullscreen capture</value>
|
||||
</data>
|
||||
<data name="RectangleRegion_GetColorPickerText" xml:space="preserve">
|
||||
<value>R: {0}, G: {1}, B: {2}
|
||||
X: {3}, Y: {4}</value>
|
||||
<value>R: {0}, G: {1}, B: {2}, Hex: {3}
|
||||
X: {4}, Y: {5}</value>
|
||||
<comment>@Invariant</comment></data>
|
||||
</root>
|
Loading…
Reference in a new issue