let UI dialogs inherit dpi scale mode to be consistent

This commit is contained in:
Kang Yu 2024-03-15 16:28:34 -07:00
parent 961de8a3da
commit f44a4b32e6
5 changed files with 4 additions and 11 deletions

View file

@ -64,8 +64,7 @@ namespace PersistentWindows.Common
//
// DbKeySelect
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.selected);
this.Controls.Add(this.Ok);

View file

@ -85,8 +85,8 @@ namespace PersistentWindows.Common
// LaunchProcess
//
this.AcceptButton = this.Yes;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.Notice);

View file

@ -327,9 +327,6 @@
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>8, 16</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>670, 399</value>
</data>

View file

@ -47,7 +47,6 @@ namespace PersistentWindows.Common
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(41, 79);
this.label1.Name = "label1";
@ -57,8 +56,7 @@ namespace PersistentWindows.Common
//
// LayoutProfile
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.ClientSize = new System.Drawing.Size(510, 225);
this.Controls.Add(this.label1);
this.Controls.Add(this.SnapshotName);

View file

@ -68,8 +68,7 @@ namespace PersistentWindows.Common
// NameDbEntry
//
this.AcceptButton = this.button1;
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
this.ClientSize = new System.Drawing.Size(609, 300);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);