mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +13:00
Show tool options for speech balloon
This commit is contained in:
parent
43a3558995
commit
3eb7ffbea8
1 changed files with 12 additions and 8 deletions
|
@ -384,7 +384,7 @@ private void CreateContextMenu()
|
|||
|
||||
Color borderColor;
|
||||
|
||||
if (shapeType == ShapeType.DrawingText)
|
||||
if (shapeType == ShapeType.DrawingText || shapeType == ShapeType.DrawingSpeechBalloon)
|
||||
{
|
||||
borderColor = AnnotationOptions.TextBorderColor;
|
||||
}
|
||||
|
@ -401,7 +401,7 @@ private void CreateContextMenu()
|
|||
{
|
||||
if (dialogColor.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (shapeType == ShapeType.DrawingText)
|
||||
if (shapeType == ShapeType.DrawingText || shapeType == ShapeType.DrawingSpeechBalloon)
|
||||
{
|
||||
AnnotationOptions.TextBorderColor = dialogColor.NewColor;
|
||||
}
|
||||
|
@ -433,7 +433,7 @@ private void CreateContextMenu()
|
|||
|
||||
int borderSize = (int)tslnudBorderSize.Content.Value;
|
||||
|
||||
if (shapeType == ShapeType.DrawingText)
|
||||
if (shapeType == ShapeType.DrawingText || shapeType == ShapeType.DrawingSpeechBalloon)
|
||||
{
|
||||
AnnotationOptions.TextBorderSize = borderSize;
|
||||
}
|
||||
|
@ -460,7 +460,7 @@ private void CreateContextMenu()
|
|||
|
||||
Color fillColor;
|
||||
|
||||
if (shapeType == ShapeType.DrawingText)
|
||||
if (shapeType == ShapeType.DrawingText || shapeType == ShapeType.DrawingSpeechBalloon)
|
||||
{
|
||||
fillColor = AnnotationOptions.TextFillColor;
|
||||
}
|
||||
|
@ -477,7 +477,7 @@ private void CreateContextMenu()
|
|||
{
|
||||
if (dialogColor.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (shapeType == ShapeType.DrawingText)
|
||||
if (shapeType == ShapeType.DrawingText || shapeType == ShapeType.DrawingSpeechBalloon)
|
||||
{
|
||||
AnnotationOptions.TextFillColor = dialogColor.NewColor;
|
||||
}
|
||||
|
@ -695,7 +695,7 @@ private void UpdateContextMenu()
|
|||
|
||||
Color borderColor;
|
||||
|
||||
if (shapeType == ShapeType.DrawingText)
|
||||
if (shapeType == ShapeType.DrawingText || shapeType == ShapeType.DrawingSpeechBalloon)
|
||||
{
|
||||
borderColor = AnnotationOptions.TextBorderColor;
|
||||
}
|
||||
|
@ -713,7 +713,7 @@ private void UpdateContextMenu()
|
|||
|
||||
int borderSize;
|
||||
|
||||
if (shapeType == ShapeType.DrawingText)
|
||||
if (shapeType == ShapeType.DrawingText || shapeType == ShapeType.DrawingSpeechBalloon)
|
||||
{
|
||||
borderSize = AnnotationOptions.TextBorderSize;
|
||||
}
|
||||
|
@ -730,7 +730,7 @@ private void UpdateContextMenu()
|
|||
|
||||
Color fillColor;
|
||||
|
||||
if (shapeType == ShapeType.DrawingText)
|
||||
if (shapeType == ShapeType.DrawingText || shapeType == ShapeType.DrawingSpeechBalloon)
|
||||
{
|
||||
fillColor = AnnotationOptions.TextFillColor;
|
||||
}
|
||||
|
@ -768,6 +768,7 @@ private void UpdateContextMenu()
|
|||
case ShapeType.DrawingLine:
|
||||
case ShapeType.DrawingArrow:
|
||||
case ShapeType.DrawingText:
|
||||
case ShapeType.DrawingSpeechBalloon:
|
||||
case ShapeType.DrawingStep:
|
||||
case ShapeType.DrawingBlur:
|
||||
case ShapeType.DrawingPixelate:
|
||||
|
@ -789,6 +790,7 @@ private void UpdateContextMenu()
|
|||
case ShapeType.DrawingLine:
|
||||
case ShapeType.DrawingArrow:
|
||||
case ShapeType.DrawingText:
|
||||
case ShapeType.DrawingSpeechBalloon:
|
||||
case ShapeType.DrawingStep:
|
||||
tsmiBorderColor.Visible = true;
|
||||
tslnudBorderSize.Visible = true;
|
||||
|
@ -804,6 +806,7 @@ private void UpdateContextMenu()
|
|||
case ShapeType.DrawingRoundedRectangle:
|
||||
case ShapeType.DrawingEllipse:
|
||||
case ShapeType.DrawingText:
|
||||
case ShapeType.DrawingSpeechBalloon:
|
||||
case ShapeType.DrawingStep:
|
||||
tsmiFillColor.Visible = true;
|
||||
break;
|
||||
|
@ -1413,6 +1416,7 @@ private void CheckHover()
|
|||
case ShapeType.DrawingLine:
|
||||
case ShapeType.DrawingArrow:
|
||||
case ShapeType.DrawingText:
|
||||
case ShapeType.DrawingSpeechBalloon:
|
||||
case ShapeType.DrawingStep:
|
||||
case ShapeType.DrawingImage:
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue