Added icons for after capture tasks menu
|
@ -453,6 +453,7 @@ private void AddMultiEnumItems<T>(Action<T> selectedEnum, params ToolStripDropDo
|
|||
for (int i = 0; i < enums.Length; i++)
|
||||
{
|
||||
ToolStripMenuItem tsmi = new ToolStripMenuItem(enums[i]);
|
||||
tsmi.Image = FindMenuIcon<T>(i + 1);
|
||||
|
||||
int index = i;
|
||||
|
||||
|
@ -611,6 +612,56 @@ private void UpdateContextMenu()
|
|||
Refresh();
|
||||
}
|
||||
|
||||
private Image FindMenuIcon<T>(int index)
|
||||
{
|
||||
T e = Helpers.GetEnumFromIndex<T>(index);
|
||||
|
||||
if (e is AfterCaptureTasks)
|
||||
{
|
||||
AfterCaptureTasks afterCaptureTask = (AfterCaptureTasks)(object)e;
|
||||
|
||||
switch (afterCaptureTask)
|
||||
{
|
||||
case AfterCaptureTasks.ShowQuickTaskMenu:
|
||||
return Resources.ui_menu_blue;
|
||||
case AfterCaptureTasks.ShowAfterCaptureWindow:
|
||||
return Resources.application_text_image;
|
||||
case AfterCaptureTasks.AddImageEffects:
|
||||
return Resources.image_saturation;
|
||||
case AfterCaptureTasks.AnnotateImage:
|
||||
return Resources.image_pencil;
|
||||
case AfterCaptureTasks.CopyImageToClipboard:
|
||||
return Resources.clipboard_paste_image;
|
||||
case AfterCaptureTasks.SendImageToPrinter:
|
||||
return Resources.printer;
|
||||
case AfterCaptureTasks.SaveImageToFile:
|
||||
return Resources.disk;
|
||||
case AfterCaptureTasks.SaveImageToFileWithDialog:
|
||||
return Resources.disk_rename;
|
||||
case AfterCaptureTasks.SaveThumbnailImageToFile:
|
||||
return Resources.disk_small;
|
||||
case AfterCaptureTasks.PerformActions:
|
||||
return Resources.application_terminal;
|
||||
case AfterCaptureTasks.CopyFileToClipboard:
|
||||
return Resources.clipboard_block;
|
||||
case AfterCaptureTasks.CopyFilePathToClipboard:
|
||||
return Resources.clipboard_list;
|
||||
case AfterCaptureTasks.ShowInExplorer:
|
||||
return Resources.folder_stand;
|
||||
case AfterCaptureTasks.DoOCR:
|
||||
return Resources.edit_drop_cap;
|
||||
case AfterCaptureTasks.ShowBeforeUploadWindow:
|
||||
return Resources.application__arrow;
|
||||
case AfterCaptureTasks.UploadImageToHost:
|
||||
return Resources.upload_cloud;
|
||||
case AfterCaptureTasks.DeleteFile:
|
||||
return Resources.bin;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private void CleanCustomClipboardFormats()
|
||||
{
|
||||
tssCopy5.Visible = false;
|
||||
|
|
112
ShareX/Properties/Resources.Designer.cs
generated
|
@ -141,6 +141,16 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap application__arrow {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("application__arrow", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -221,6 +231,26 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap application_terminal {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("application_terminal", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap application_text_image {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("application_text_image", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Choose screenshots folder path.
|
||||
/// </summary>
|
||||
|
@ -492,6 +522,16 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap clipboard_block {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("clipboard_block", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -502,6 +542,16 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap clipboard_paste_image {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("clipboard_paste_image", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Supported variables: {0} and other variables such as {1} etc..
|
||||
/// </summary>
|
||||
|
@ -612,6 +662,16 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap disk {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("disk", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -622,6 +682,26 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap disk_rename {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("disk_rename", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap disk_small {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("disk_small", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -687,7 +767,7 @@ public class Resources {
|
|||
/// </summary>
|
||||
public static System.Drawing.Bitmap edit_drop_cap {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("edit-drop-cap", resourceCulture);
|
||||
object obj = ResourceManager.GetObject("edit_drop_cap", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
@ -817,6 +897,16 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap folder_stand {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("folder_stand", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
@ -1363,6 +1453,16 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap printer {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("printer", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Error.
|
||||
/// </summary>
|
||||
|
@ -1911,6 +2011,16 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap ui_menu_blue {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("ui_menu_blue", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
|
|
@ -793,7 +793,40 @@ Would you like to restart ShareX?</value>
|
|||
<data name="ScreenColorPicker_UpdateControls_Start_screen_color_picker" xml:space="preserve">
|
||||
<value>Start screen color picker</value>
|
||||
</data>
|
||||
<data name="edit-drop-cap" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<data name="edit_drop_cap" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\edit-drop-cap.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="application_terminal" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-terminal.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="application_text_image" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application-text-image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="application__arrow" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\application--arrow.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="clipboard_block" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clipboard-block.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="clipboard_paste_image" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\clipboard-paste-image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="disk" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\disk.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="disk_rename" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\disk-rename.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="disk_small" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\disk-small.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="folder_stand" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\folder-stand.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="printer" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\printer.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="ui_menu_blue" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\ui-menu-blue.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
BIN
ShareX/Resources/application--arrow.png
Normal file
After Width: | Height: | Size: 471 B |
BIN
ShareX/Resources/application-terminal.png
Normal file
After Width: | Height: | Size: 520 B |
BIN
ShareX/Resources/application-text-image.png
Normal file
After Width: | Height: | Size: 498 B |
BIN
ShareX/Resources/clipboard-block.png
Normal file
After Width: | Height: | Size: 649 B |
BIN
ShareX/Resources/clipboard-paste-image.png
Normal file
After Width: | Height: | Size: 726 B |
BIN
ShareX/Resources/disk-rename.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
ShareX/Resources/disk-small.png
Normal file
After Width: | Height: | Size: 383 B |
BIN
ShareX/Resources/disk.png
Normal file
After Width: | Height: | Size: 475 B |
BIN
ShareX/Resources/folder-stand.png
Normal file
After Width: | Height: | Size: 619 B |
BIN
ShareX/Resources/printer.png
Normal file
After Width: | Height: | Size: 722 B |
BIN
ShareX/Resources/ui-menu-blue.png
Normal file
After Width: | Height: | Size: 358 B |
|
@ -1245,6 +1245,17 @@
|
|||
<None Include="Resources\layer_fullscreen.png" />
|
||||
<None Include="Resources\layers.png" />
|
||||
<None Include="Resources\edit-drop-cap.png" />
|
||||
<None Include="Resources\ui-menu-blue.png" />
|
||||
<None Include="Resources\application-text-image.png" />
|
||||
<None Include="Resources\clipboard-paste-image.png" />
|
||||
<None Include="Resources\printer.png" />
|
||||
<None Include="Resources\disk.png" />
|
||||
<None Include="Resources\disk-rename.png" />
|
||||
<None Include="Resources\disk-small.png" />
|
||||
<None Include="Resources\application-terminal.png" />
|
||||
<None Include="Resources\clipboard-block.png" />
|
||||
<None Include="Resources\folder-stand.png" />
|
||||
<None Include="Resources\application--arrow.png" />
|
||||
<Content Include="ShareX_Icon.ico" />
|
||||
<None Include="Resources\globe--pencil.png" />
|
||||
<None Include="Resources\camcorder--pencil.png" />
|
||||
|
|