mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12:00
$x, $y support for screen color picker
This commit is contained in:
parent
f431b7e154
commit
a600d69b93
|
@ -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);
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue