mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:46:30 +00:00
small visual adjusments
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Azaion.Annotator.Controls;
|
||||
public class AnnotationControl : Border
|
||||
{
|
||||
private readonly Action<object, MouseButtonEventArgs> _resizeStart;
|
||||
private const double RESIZE_RECT_SIZE = 10;
|
||||
private const double RESIZE_RECT_SIZE = 9;
|
||||
|
||||
private readonly Grid _grid;
|
||||
private readonly TextBlock _classNameLabel;
|
||||
@@ -52,14 +52,14 @@ public class AnnotationControl : Border
|
||||
VerticalAlignment = VerticalAlignment.Top,
|
||||
Margin = new Thickness(0, 15, 0, 0),
|
||||
FontSize = 14,
|
||||
Cursor = Cursors.Arrow
|
||||
Cursor = Cursors.SizeAll
|
||||
};
|
||||
_selectionFrame = new Rectangle
|
||||
{
|
||||
HorizontalAlignment = HorizontalAlignment.Stretch,
|
||||
VerticalAlignment = VerticalAlignment.Stretch,
|
||||
Stroke = new SolidColorBrush(Colors.Black),
|
||||
StrokeThickness = 3,
|
||||
StrokeThickness = 2,
|
||||
Visibility = Visibility.Collapsed
|
||||
};
|
||||
|
||||
@@ -79,9 +79,7 @@ public class AnnotationControl : Border
|
||||
AddRect("rLB", HorizontalAlignment.Left, VerticalAlignment.Bottom, Cursors.SizeNESW),
|
||||
AddRect("rCB", HorizontalAlignment.Center, VerticalAlignment.Bottom, Cursors.SizeNS),
|
||||
AddRect("rRB", HorizontalAlignment.Right, VerticalAlignment.Bottom, Cursors.SizeNWSE)
|
||||
},
|
||||
|
||||
Background = new SolidColorBrush(annotationClass.Color)
|
||||
}
|
||||
};
|
||||
Child = _grid;
|
||||
Cursor = Cursors.SizeAll;
|
||||
@@ -97,7 +95,7 @@ public class AnnotationControl : Border
|
||||
VerticalAlignment = va,
|
||||
Width = RESIZE_RECT_SIZE,
|
||||
Height = RESIZE_RECT_SIZE,
|
||||
Stroke = new SolidColorBrush(Color.FromRgb(10, 10, 10)), // small rectangles color
|
||||
Stroke = new SolidColorBrush(Color.FromArgb(230, 40, 40, 40)), // small rectangles color
|
||||
Fill = new SolidColorBrush(Color.FromArgb(1, 255, 255, 255)),
|
||||
Cursor = crs,
|
||||
Name = name,
|
||||
|
||||
Reference in New Issue
Block a user