diff --git a/ShareX.ImageEffectsLib/ImageEffectsForm.Designer.cs b/ShareX.ImageEffectsLib/ImageEffectsForm.Designer.cs
index 1414dddba..2aa194200 100644
--- a/ShareX.ImageEffectsLib/ImageEffectsForm.Designer.cs
+++ b/ShareX.ImageEffectsLib/ImageEffectsForm.Designer.cs
@@ -53,6 +53,7 @@ private void InitializeComponent()
this.btnClose = new System.Windows.Forms.Button();
this.btnOK = new System.Windows.Forms.Button();
this.btnUploadImage = new System.Windows.Forms.Button();
+ this.btnRefresh = new System.Windows.Forms.Button();
this.cmsLoadImage.SuspendLayout();
this.SuspendLayout();
//
@@ -142,6 +143,7 @@ private void InitializeComponent()
this.pbResult.EnableRightClickMenu = true;
this.pbResult.FullscreenOnClick = true;
this.pbResult.Name = "pbResult";
+ this.pbResult.PictureBoxBackColor = System.Drawing.SystemColors.Control;
this.pbResult.ShowImageSizeLabel = true;
this.pbResult.DragDrop += new System.Windows.Forms.DragEventHandler(this.pbResult_DragDrop);
this.pbResult.DragEnter += new System.Windows.Forms.DragEventHandler(this.pbResult_DragEnter);
@@ -235,12 +237,20 @@ private void InitializeComponent()
this.btnUploadImage.UseVisualStyleBackColor = true;
this.btnUploadImage.Click += new System.EventHandler(this.btnUploadImage_Click);
//
+ // btnRefresh
+ //
+ resources.ApplyResources(this.btnRefresh, "btnRefresh");
+ this.btnRefresh.Name = "btnRefresh";
+ this.btnRefresh.UseVisualStyleBackColor = true;
+ this.btnRefresh.Click += new System.EventHandler(this.BtnRefresh_Click);
+ //
// ImageEffectsForm
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.SystemColors.Window;
this.CancelButton = this.btnClose;
+ this.Controls.Add(this.btnRefresh);
this.Controls.Add(this.btnUploadImage);
this.Controls.Add(this.btnOK);
this.Controls.Add(this.btnClose);
@@ -293,6 +303,7 @@ private void InitializeComponent()
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.Button btnUploadImage;
+ private System.Windows.Forms.Button btnRefresh;
}
}
diff --git a/ShareX.ImageEffectsLib/ImageEffectsForm.cs b/ShareX.ImageEffectsLib/ImageEffectsForm.cs
index 11bb6e80f..09af506f3 100644
--- a/ShareX.ImageEffectsLib/ImageEffectsForm.cs
+++ b/ShareX.ImageEffectsLib/ImageEffectsForm.cs
@@ -457,6 +457,11 @@ private void btnClear_Click(object sender, EventArgs e)
}
}
+ private void BtnRefresh_Click(object sender, EventArgs e)
+ {
+ UpdatePreview();
+ }
+
private void lvEffects_ItemMoved(object sender, int oldIndex, int newIndex)
{
ImageEffectPreset preset = GetSelectedPreset();
diff --git a/ShareX.ImageEffectsLib/ImageEffectsForm.resx b/ShareX.ImageEffectsLib/ImageEffectsForm.resx
index 45317967c..6abc83668 100644
--- a/ShareX.ImageEffectsLib/ImageEffectsForm.resx
+++ b/ShareX.ImageEffectsLib/ImageEffectsForm.resx
@@ -142,7 +142,7 @@
$this
- 18
+ 19
8, 40
@@ -166,7 +166,7 @@
$this
- 17
+ 18
Top, Bottom, Left
@@ -187,13 +187,13 @@
lvEffects
- ShareX.HelpersLib.MyListView, ShareX.HelpersLib, Version=12.2.0.0, Culture=neutral, PublicKeyToken=null
+ ShareX.HelpersLib.MyListView, ShareX.HelpersLib, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null
$this
- 19
+ 20
120, 40
@@ -217,7 +217,7 @@
$this
- 16
+ 17
344, 40
@@ -241,7 +241,7 @@
$this
- 14
+ 15
232, 40
@@ -265,7 +265,7 @@
$this
- 13
+ 14
Bottom, Left
@@ -298,7 +298,7 @@
$this
- 12
+ 13
Bottom, Left
@@ -316,13 +316,13 @@
eiImageEffects
- ShareX.HelpersLib.ExportImportControl, ShareX.HelpersLib, Version=12.2.0.0, Culture=neutral, PublicKeyToken=null
+ ShareX.HelpersLib.ExportImportControl, ShareX.HelpersLib, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null
$this
- 11
+ 12
Top, Bottom, Left, Right
@@ -340,13 +340,13 @@
pbResult
- ShareX.HelpersLib.MyPictureBox, ShareX.HelpersLib, Version=12.2.0.0, Culture=neutral, PublicKeyToken=null
+ ShareX.HelpersLib.MyPictureBox, ShareX.HelpersLib, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null
$this
- 15
+ 16
17, 17
@@ -406,13 +406,13 @@
mbLoadImage
- ShareX.HelpersLib.MenuButton, ShareX.HelpersLib, Version=12.2.0.0, Culture=neutral, PublicKeyToken=null
+ ShareX.HelpersLib.MenuButton, ShareX.HelpersLib, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null
$this
- 10
+ 11
8, 8
@@ -436,7 +436,7 @@
$this
- 9
+ 10
152, 8
@@ -460,7 +460,7 @@
$this
- 8
+ 9
296, 9
@@ -481,7 +481,7 @@
$this
- 7
+ 8
True
@@ -508,7 +508,7 @@
$this
- 6
+ 7
Top, Left, Right
@@ -532,7 +532,7 @@
$this
- 5
+ 6
Bottom, Right
@@ -559,7 +559,7 @@
$this
- 4
+ 5
Bottom, Right
@@ -589,7 +589,7 @@
$this
- 3
+ 4
Bottom, Left
@@ -619,7 +619,31 @@
$this
- 2
+ 3
+
+
+ 456, 40
+
+
+ 104, 24
+
+
+ 18
+
+
+ Refresh
+
+
+ btnRefresh
+
+
+ System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ $this
+
+
+ 0
True