$x, $y support for screen color picker

This commit is contained in:
Jaex 2015-01-27 11:11:31 +02:00
parent f431b7e154
commit a600d69b93
2 changed files with 5 additions and 3 deletions

View file

@ -521,7 +521,9 @@ public static void OpenScreenColorPicker(TaskSettings taskSettings = null)
text = text.Replace("$r", pointInfo.Color.R.ToString(), StringComparison.InvariantCultureIgnoreCase).
Replace("$g", pointInfo.Color.G.ToString(), StringComparison.InvariantCultureIgnoreCase).
Replace("$b", pointInfo.Color.B.ToString(), StringComparison.InvariantCultureIgnoreCase).
Replace("$hex", ColorHelpers.ColorToHex(pointInfo.Color), StringComparison.InvariantCultureIgnoreCase);
Replace("$hex", ColorHelpers.ColorToHex(pointInfo.Color), StringComparison.InvariantCultureIgnoreCase).
Replace("$x", pointInfo.Position.X.ToString(), StringComparison.InvariantCultureIgnoreCase).
Replace("$y", pointInfo.Position.Y.ToString(), StringComparison.InvariantCultureIgnoreCase);
ClipboardHelpers.CopyText(text);

View file

@ -276,7 +276,7 @@ public class TaskSettingsCapture
#region Capture / General
public bool ShowCursor = true;
public bool CaptureTransparent = !Helpers.IsWindows8OrGreater();
public bool CaptureTransparent = false;
public bool CaptureShadow = true;
public int CaptureShadowOffset = 20;
public bool CaptureClientArea = false;
@ -433,7 +433,7 @@ public Size ToastWindowSize
[Category("Name pattern"), DefaultValue(50), Description("Maximum name pattern title (%t) length for file name.")]
public int NamePatternMaxTitleLength { get; set; }
[Category("Tools"), DefaultValue("$r, $g, $b"), Description("When using screen color picker what to copy to clipboard automatically. Formats: $r, $g, $b, $hex")]
[Category("Tools"), DefaultValue("$r, $g, $b"), Description("When using screen color picker what to copy to clipboard automatically. Formats: $r, $g, $b, $hex, $x, $y")]
public string ScreenColorPickerFormat { get; set; }
public TaskSettingsAdvanced()