mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-14 07:55:12 -05:00
Make Dpi scaling the default
Have settings toggle to fall back to Font based scaling
This commit is contained in:
4
PKHeX.WinForms/MainWindow/Main.Designer.cs
generated
4
PKHeX.WinForms/MainWindow/Main.Designer.cs
generated
@@ -477,8 +477,8 @@ public void InitializeComponent()
|
||||
// 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 Main()
|
||||
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]
|
||||
|
||||
Reference in New Issue
Block a user