@@ -16,11 +16,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
16
You should have received a copy of the GNU General Public License
17
17
along with this program. If not, see <https://www.gnu.org/licenses/>.
18
18
*/
19
- using System ;
20
- using System . Collections . Generic ;
21
- using System . Linq ;
22
- using System . Text ;
23
- using System . Threading . Tasks ;
24
19
using System . Windows ;
25
20
using System . Windows . Documents ;
26
21
using System . Windows . Media ;
@@ -42,7 +37,7 @@ protected override void OnRender(DrawingContext drawingContext)
42
37
var pen = new Pen ( brush , 6 ) ;
43
38
var whitePen = new Pen ( Brushes . White , 8 ) ;
44
39
drawingContext . DrawRectangle ( Brushes . Transparent , pen , adornedElementRect ) ;
45
- var miniRect = new Rect ( adornedElementRect . Right - 50 , adornedElementRect . Bottom - 50 ,
40
+ var miniRect = new Rect ( adornedElementRect . Right - 50 , adornedElementRect . Bottom - 50 ,
46
41
50 , 50 ) ;
47
42
drawingContext . DrawRectangle ( brush , pen , miniRect ) ;
48
43
var p1 = new Point ( adornedElementRect . Right - 40 , adornedElementRect . Bottom - 25 ) ;
@@ -51,8 +46,8 @@ protected override void OnRender(DrawingContext drawingContext)
51
46
var p3 = new Point ( p2 . X + 20 , p2 . Y - 20 ) ;
52
47
drawingContext . DrawLine ( whitePen , p1 , p2 ) ;
53
48
drawingContext . DrawLine ( whitePen , p4 , p3 ) ;
54
- }
55
-
56
-
49
+ }
50
+
51
+
57
52
}
58
53
}
0 commit comments