More DPI
This commit is contained in:
parent
7799698754
commit
430040886e
@ -51,6 +51,8 @@ namespace BismNormalizer.TabularCompare.UI
|
|||||||
//DPI
|
//DPI
|
||||||
float dpiScaleFactorFudged = _dpiScaleFactor * HighDPIUtils.PrimaryFudgeFactor;
|
float dpiScaleFactorFudged = _dpiScaleFactor * HighDPIUtils.PrimaryFudgeFactor;
|
||||||
|
|
||||||
|
if (Settings.Default.OptionHighDpiLocal)
|
||||||
|
{
|
||||||
this.Scale(new SizeF(dpiScaleFactorFudged * 0.44f, dpiScaleFactorFudged * 0.38f));
|
this.Scale(new SizeF(dpiScaleFactorFudged * 0.44f, dpiScaleFactorFudged * 0.38f));
|
||||||
this.Width = Convert.ToInt32(this.Width * dpiScaleFactorFudged * 0.8f);
|
this.Width = Convert.ToInt32(this.Width * dpiScaleFactorFudged * 0.8f);
|
||||||
foreach (Control control in HighDPIUtils.GetChildInControl(this))
|
foreach (Control control in HighDPIUtils.GetChildInControl(this))
|
||||||
@ -70,6 +72,18 @@ namespace BismNormalizer.TabularCompare.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Scale(new SizeF(dpiScaleFactorFudged * 0.44f, dpiScaleFactorFudged * 0.38f));
|
||||||
|
this.Width = Convert.ToInt32(this.Width * dpiScaleFactorFudged * 0.6f);
|
||||||
|
foreach (Control control in HighDPIUtils.GetChildInControl(this))
|
||||||
|
{
|
||||||
|
control.Font = new Font(control.Font.FontFamily,
|
||||||
|
control.Font.Size * dpiScaleFactorFudged * HighDPIUtils.PrimaryFudgeFactor,
|
||||||
|
control.Font.Style);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.KeyPreview = true;
|
this.KeyPreview = true;
|
||||||
|
|
||||||
|
@ -56,6 +56,9 @@ namespace BismNormalizer.TabularCompare.UI
|
|||||||
{
|
{
|
||||||
//DPI
|
//DPI
|
||||||
float dpiScaleFactorFudged = _dpiScaleFactor * HighDPIUtils.PrimaryFudgeFactor;
|
float dpiScaleFactorFudged = _dpiScaleFactor * HighDPIUtils.PrimaryFudgeFactor;
|
||||||
|
|
||||||
|
if (Settings.Default.OptionHighDpiLocal)
|
||||||
|
{
|
||||||
this.Scale(new SizeF(dpiScaleFactorFudged * 0.44f, dpiScaleFactorFudged * 0.35f));
|
this.Scale(new SizeF(dpiScaleFactorFudged * 0.44f, dpiScaleFactorFudged * 0.35f));
|
||||||
this.Width = Convert.ToInt32(this.Width * dpiScaleFactorFudged * 0.6f);
|
this.Width = Convert.ToInt32(this.Width * dpiScaleFactorFudged * 0.6f);
|
||||||
|
|
||||||
@ -76,6 +79,18 @@ namespace BismNormalizer.TabularCompare.UI
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this.Scale(new SizeF(dpiScaleFactorFudged * 0.44f, dpiScaleFactorFudged * 0.38f));
|
||||||
|
this.Width = Convert.ToInt32(this.Width * dpiScaleFactorFudged * 0.6f);
|
||||||
|
foreach (Control control in HighDPIUtils.GetChildInControl(this))
|
||||||
|
{
|
||||||
|
control.Font = new Font(control.Font.FontFamily,
|
||||||
|
control.Font.Size * dpiScaleFactorFudged * HighDPIUtils.PrimaryFudgeFactor,
|
||||||
|
control.Font.Style);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.KeyPreview = true;
|
this.KeyPreview = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user