Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Commit 902387c

Browse files
committed
Replace highlighter with half opacity brush
1 parent fafc301 commit 902387c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

OnnxStack.UI/UserControls/PaintInputControl.xaml.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,12 @@ private void UpdateBrushAttributes()
244244
{
245245
Color = _selectedColor,
246246
Height = _drawingToolSize,
247-
Width = _drawingToolSize,
248-
IsHighlighter = CanvasDrawingTool == DrawingTool.Highlight
247+
Width = _drawingToolSize
249248
};
250249

250+
if (CanvasDrawingTool == DrawingTool.Highlight)
251+
BrushAttributes.Color = Color.FromArgb(128, BrushAttributes.Color.R, BrushAttributes.Color.G, BrushAttributes.Color.B);
252+
251253
CanvasEditingMode = CanvasDrawingTool != DrawingTool.Eraser
252254
? InkCanvasEditingMode.Ink
253255
: InkCanvasEditingMode.EraseByPoint;

0 commit comments

Comments
 (0)