Using non transparent background image for Image effects window

This commit is contained in:
Jaex 2014-10-13 02:46:23 +03:00
parent c4052956ed
commit a61953c705
6 changed files with 26 additions and 2 deletions

View file

@ -461,6 +461,9 @@
<ItemGroup>
<None Include="Resources\cross.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\ShareX_Logo_Black.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View file

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
// Runtime Version:4.0.30319.34209
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -110,6 +110,16 @@ internal static System.Drawing.Bitmap ShareX_Logo {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap ShareX_Logo_Black {
get {
object obj = ResourceManager.GetObject("ShareX_Logo_Black", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>

View file

@ -136,4 +136,7 @@
<data name="ShareX_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\resources\sharex_icon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ShareX_Logo_Black" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ShareX_Logo_Black.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View file

@ -45,5 +45,13 @@ public static Image Logo
return Resources.ShareX_Logo;
}
}
public static Image LogoBlack
{
get
{
return Resources.ShareX_Logo_Black;
}
}
}
}

View file

@ -621,7 +621,7 @@ private void chkShowImageEffectsWindowAfterCapture_CheckedChanged(object sender,
private void btnImageEffects_Click(object sender, EventArgs e)
{
using (ImageEffectsForm imageEffectsForm = new ImageEffectsForm(ShareXResources.Logo, TaskSettings.ImageSettings.ImageEffects))
using (ImageEffectsForm imageEffectsForm = new ImageEffectsForm(ShareXResources.LogoBlack, TaskSettings.ImageSettings.ImageEffects))
{
if (imageEffectsForm.ShowDialog() == DialogResult.OK)
{