mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-03 19:54:13 +13:00
Fix toolstrip visual artifact in right side
This commit is contained in:
parent
81a124453f
commit
48aaa5f56e
3 changed files with 42 additions and 0 deletions
|
@ -0,0 +1,40 @@
|
||||||
|
#region License Information (GPL v3)
|
||||||
|
|
||||||
|
/*
|
||||||
|
ShareX - A program that allows you to take screenshots and share any file type
|
||||||
|
Copyright (c) 2007-2016 ShareX Team
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
|
|
||||||
|
Optionally you can also view the license at <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#endregion License Information (GPL v3)
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
|
namespace ShareX.HelpersLib
|
||||||
|
{
|
||||||
|
public class CustomToolStripProfessionalRenderer : ToolStripProfessionalRenderer
|
||||||
|
{
|
||||||
|
protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -84,6 +84,7 @@
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Controls\CustomToolStripProfessionalRenderer.cs" />
|
||||||
<Compile Include="Controls\ToolStripEx.cs">
|
<Compile Include="Controls\ToolStripEx.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
|
|
@ -268,6 +268,7 @@ private void CreateMenu()
|
||||||
Location = new Point(0, 0),
|
Location = new Point(0, 0),
|
||||||
MinimumSize = new Size(100, 30),
|
MinimumSize = new Size(100, 30),
|
||||||
Padding = new Padding(0, 0, 0, 0),
|
Padding = new Padding(0, 0, 0, 0),
|
||||||
|
Renderer = new CustomToolStripProfessionalRenderer(),
|
||||||
TabIndex = 0,
|
TabIndex = 0,
|
||||||
Text = "ToolStrip"
|
Text = "ToolStrip"
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue