Propagate DPI Changes down to Drawable Containers and Adorners and Resize Grippers Accordingly (#200)

* Propagate DPI Changes down to Drawable Containers and Adorners and Resize Grippers Accordingly
* Make Grippers Slightly Larger
* Add White Border to Grippers for Better Contrast on Dark Backgrounds
This commit is contained in:
jklingen 2020-08-06 21:29:55 +02:00 committed by GitHub
parent 926855cd70
commit f159a871ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 185 additions and 128 deletions

View file

@ -120,6 +120,12 @@ namespace GreenshotPlugin.Interfaces.Drawing
/// Available adorners for the DrawableContainer
/// </summary>
IList<IAdorner> Adorners { get; }
/// <summary>
/// Adjust UI elements to the supplied DPI settings
/// </summary>
/// <param name="dpi"></param>
void AdjustToDpi(uint dpi);
}
public interface IDrawableContainerList : IList<IDrawableContainer>, IDisposable
@ -167,6 +173,7 @@ namespace GreenshotPlugin.Interfaces.Drawing
void PushElementsToBottom(IDrawableContainerList elements);
void ShowContextMenu(MouseEventArgs e, ISurface surface);
void HandleFieldChangedEvent(object sender, FieldChangedEventArgs e);
void AdjustToDpi(uint dpi);
}
public interface ITextContainer : IDrawableContainer