mirror of
https://github.com/Maassoft/ColorControl.git
synced 2026-10-21 08:09:49 -05:00
24 lines
456 B
C#
24 lines
456 B
C#
namespace ColorControl.Shared.Contracts;
|
|
|
|
public class DpiScaling
|
|
{
|
|
public bool ApplyScaling { get; set; }
|
|
public uint Percentage { get; set; }
|
|
|
|
public DpiScaling()
|
|
{
|
|
Percentage = 100;
|
|
}
|
|
|
|
public DpiScaling(DpiScaling dpiScaling)
|
|
{
|
|
ApplyScaling = dpiScaling.ApplyScaling;
|
|
Percentage = dpiScaling.Percentage;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{Percentage:0}%";
|
|
}
|
|
}
|