mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 06:34:19 +00:00
Make Dpi scaling the default
Have settings toggle to fall back to Font based scaling
This commit is contained in:
parent
ea052fb6d1
commit
41762f4f67
3 changed files with 7 additions and 2 deletions
4
PKHeX.WinForms/MainWindow/Main.Designer.cs
generated
4
PKHeX.WinForms/MainWindow/Main.Designer.cs
generated
|
@ -477,8 +477,8 @@ namespace PKHeX.WinForms
|
|||
// Main
|
||||
//
|
||||
AllowDrop = true;
|
||||
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
|
||||
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||
ClientSize = new System.Drawing.Size(856, 385);
|
||||
Controls.Add(splitContainer2);
|
||||
FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
|
|
|
@ -27,6 +27,8 @@ public partial class Main : Form
|
|||
FormLoadInitialSettings(args, out bool showChangelog, out bool BAKprompt);
|
||||
|
||||
InitializeComponent();
|
||||
if (Settings.Display.DisableScalingDpi)
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
C_SAV.SetEditEnvironment(new SaveDataEditor<PictureBox>(new FakeSaveFile(), PKME_Tabs));
|
||||
FormLoadAddEvents();
|
||||
#if DEBUG // translation updater -- all controls are added at this point -- call translate now
|
||||
|
|
|
@ -372,6 +372,9 @@ public sealed class DisplaySettings
|
|||
|
||||
[LocalizedDescription("Focus border indentation for custom drawn image controls.")]
|
||||
public int FocusBorderDeflate { get; set; } = 1;
|
||||
|
||||
[LocalizedDescription("Disables the GUI scaling based on Dpi on program startup, falling back to font scaling.")]
|
||||
public bool DisableScalingDpi { get; set; }
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
|
Loading…
Reference in a new issue