From c6aa3c2ce1f926b82add055d7b4e3d8a9ba14771 Mon Sep 17 00:00:00 2001 From: Jaex Date: Sat, 21 May 2016 00:13:00 +0300 Subject: [PATCH] Show border color, border size, fill color options for text drawing --- ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs | 3 +++ ShareX.ScreenCaptureLib/Shapes/TextDrawingOptions.cs | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs b/ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs index c25ef2887..931985b1b 100644 --- a/ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs +++ b/ShareX.ScreenCaptureLib/Shapes/ShapeManager.cs @@ -596,6 +596,7 @@ private void CreateContextMenu() case ShapeType.DrawingEllipse: case ShapeType.DrawingLine: case ShapeType.DrawingArrow: + case ShapeType.DrawingText: case ShapeType.DrawingBlur: case ShapeType.DrawingPixelate: case ShapeType.DrawingHighlight: @@ -614,6 +615,7 @@ private void CreateContextMenu() case ShapeType.DrawingEllipse: case ShapeType.DrawingLine: case ShapeType.DrawingArrow: + case ShapeType.DrawingText: tsmiBorderColor.Visible = true; tslnudBorderSize.Visible = true; break; @@ -627,6 +629,7 @@ private void CreateContextMenu() case ShapeType.DrawingRectangle: case ShapeType.DrawingRoundedRectangle: case ShapeType.DrawingEllipse: + case ShapeType.DrawingText: tsmiFillColor.Visible = true; break; } diff --git a/ShareX.ScreenCaptureLib/Shapes/TextDrawingOptions.cs b/ShareX.ScreenCaptureLib/Shapes/TextDrawingOptions.cs index 890e13fd6..179115a30 100644 --- a/ShareX.ScreenCaptureLib/Shapes/TextDrawingOptions.cs +++ b/ShareX.ScreenCaptureLib/Shapes/TextDrawingOptions.cs @@ -39,8 +39,8 @@ public class TextDrawingOptions public bool Bold { get; set; } = false; public bool Italic { get; set; } = false; public bool Underline { get; set; } = false; - public StringAlignment AlignmentHorizontal { get; set; } = StringAlignment.Near; - public StringAlignment AlignmentVertical { get; set; } = StringAlignment.Near; + public StringAlignment AlignmentHorizontal { get; set; } = StringAlignment.Center; + public StringAlignment AlignmentVertical { get; set; } = StringAlignment.Center; public FontStyle Style {