mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
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:
parent
926855cd70
commit
f159a871ca
10 changed files with 185 additions and 128 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue