Fixed some more DPI issues, this time in the settings.

This commit is contained in:
Robin Krom 2022-01-25 12:33:06 +01:00
commit 82fa94f566
No known key found for this signature in database
GPG key ID: BCC01364F1371490
3 changed files with 10 additions and 12 deletions

View file

@ -21,8 +21,6 @@
using System; using System;
using System.Windows.Forms; using System.Windows.Forms;
using Greenshot.Base.UnmanagedHelpers;
using Greenshot.Base.UnmanagedHelpers.Enums;
using log4net; using log4net;
namespace Greenshot.Base.Controls namespace Greenshot.Base.Controls

View file

@ -1257,8 +1257,8 @@ namespace Greenshot.Forms {
// //
// SettingsForm // SettingsForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(451, 431); this.ClientSize = new System.Drawing.Size(451, 431);
this.Controls.Add(this.tabcontrol); this.Controls.Add(this.tabcontrol);
this.Controls.Add(this.settings_confirm); this.Controls.Add(this.settings_confirm);

View file

@ -94,6 +94,14 @@ namespace Greenshot.Forms
// Changes for BUG-2077 // Changes for BUG-2077
numericUpDown_daysbetweencheck.ValueChanged += NumericUpDownDaysbetweencheckOnValueChanged; numericUpDown_daysbetweencheck.ValueChanged += NumericUpDownDaysbetweencheckOnValueChanged;
// Expert mode, the clipboard formats
foreach (ClipboardFormat clipboardFormat in Enum.GetValues(typeof(ClipboardFormat)))
{
ListViewItem item = listview_clipboardformats.Items.Add(Language.Translate(clipboardFormat));
item.Tag = clipboardFormat;
item.Checked = coreConfiguration.ClipboardFormats.Contains(clipboardFormat);
}
_daysBetweenCheckPreviousValue = (int) numericUpDown_daysbetweencheck.Value; _daysBetweenCheckPreviousValue = (int) numericUpDown_daysbetweencheck.Value;
DisplayPluginTab(); DisplayPluginTab();
UpdateUi(); UpdateUi();
@ -470,14 +478,6 @@ namespace Greenshot.Forms
{ {
colorButton_window_background.SelectedColor = coreConfiguration.DWMBackgroundColor; colorButton_window_background.SelectedColor = coreConfiguration.DWMBackgroundColor;
// Expert mode, the clipboard formats
foreach (ClipboardFormat clipboardFormat in Enum.GetValues(typeof(ClipboardFormat)))
{
ListViewItem item = listview_clipboardformats.Items.Add(Language.Translate(clipboardFormat));
item.Tag = clipboardFormat;
item.Checked = coreConfiguration.ClipboardFormats.Contains(clipboardFormat);
}
if (Language.CurrentLanguage != null) if (Language.CurrentLanguage != null)
{ {
combobox_language.SelectedValue = Language.CurrentLanguage; combobox_language.SelectedValue = Language.CurrentLanguage;