Skip to content

Commit

Permalink
LT-21652: polish picture dialog (#1301)
Browse files Browse the repository at this point in the history
Use custom no border toolstrip renderer to eliminate
the white border artifact in AquireImageControl.
  • Loading branch information
aror92 authored Oct 31, 2023
1 parent 6945f25 commit 7db35fd
Show file tree
Hide file tree
Showing 3 changed files with 380 additions and 375 deletions.
107 changes: 55 additions & 52 deletions SIL.Windows.Forms/ImageToolbox/AcquireImageControl.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions SIL.Windows.Forms/ImageToolbox/AcquireImageControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using SIL.Reporting;
using System.Drawing.Imaging;
using SIL.IO;
using SIL.Windows.Forms.Extensions;
using WIA;

namespace SIL.Windows.Forms.ImageToolbox
Expand All @@ -34,6 +35,7 @@ public AcquireImageControl()
}

_galleryControl.ImageChanged += _galleryControl_ImageChanged;
toolStrip1.Renderer = new NoBorderToolStripRenderer();
}

void _galleryControl_ImageChanged(object sender, EventArgs e)
Expand Down
Loading

0 comments on commit 7db35fd

Please sign in to comment.