Replaced the EnableButtonScaling with the possibility to specify the ButtonIconSize directly. Also removed a lot of the fixed size, as they are calculated correctly. Changed the background of the Toolstrips to System.Drawing.SystemColors.Control.

This commit is contained in:
RKrom 2014-11-03 11:19:28 +01:00
parent 7fdd324ef0
commit 634a4cf262
3 changed files with 87 additions and 231 deletions

View file

@ -54,17 +54,19 @@ namespace Greenshot.Configuration {
public bool ReuseEditor;
[IniProperty("FreehandSensitivity", Description = "The smaller this number, the less smoothing is used. Decrease for detailed drawing, e.g. when using a pen. Increase for smoother lines. e.g. when you want to draw a smooth line.", DefaultValue = "3")]
public int FreehandSensitivity;
[IniProperty("EnableButtonScaling", Description = "Experimental DPI scaling for the buttons", DefaultValue = "false")]
public bool EnableButtonScaling;
[IniProperty("SuppressSaveDialogAtClose", Description="Suppressed the 'do you want to save' dialog when closing the editor.", DefaultValue="False")]
public bool SuppressSaveDialogAtClose;
[IniProperty("ButtonIconSize", Description = "Defines the size of the icons for the buttons in the editor, default value 16,16 anything bigger will cause scaling", DefaultValue = "16,16")]
public Size ButtonIconSize;
public override void AfterLoad() {
base.AfterLoad();
if (RecentColors == null) {
RecentColors = new List<Color>();
}
if (ButtonIconSize == Size.Empty) {
ButtonIconSize = new Size(16,16);
}
}
/// <param name="requestingType">Type of the class for which to create the field</param>
/// <param name="fieldType">FieldType of the field to construct</param>