Another fix for the visual artifact in the editor, removed the rounded corner of the toolstrips and made the overflow button even more "invisible". [skip ci]

This commit is contained in:
RKrom 2014-11-04 21:24:28 +01:00
parent d3dce880dd
commit 768efcf7fe

View file

@ -38,23 +38,28 @@ namespace Greenshot.Controls {
get { return SystemColors.Control; }
}
public override Color OverflowButtonGradientBegin {
get { return SystemColors.ControlDark; }
get { return SystemColors.Control; }
}
public override Color OverflowButtonGradientMiddle {
get { return SystemColors.ControlDark; }
get { return SystemColors.Control; }
}
public override Color OverflowButtonGradientEnd {
get { return SystemColors.ControlDark; }
get { return SystemColors.Control; }
}
}
/// <summary>
/// ToolStripProfessionalRenderer without having a visual artifact
/// See: http://stackoverflow.com/a/16926979
/// See: http://stackoverflow.com/a/16926979 and http://stackoverflow.com/a/13418840
/// </summary>
public class CustomToolStripProfessionalRenderer : ToolStripProfessionalRenderer {
public CustomToolStripProfessionalRenderer() : base(new CustomProfessionalColorTable()) {
RoundedEdges = false;
}
/// <summary>
/// By overriding the OnRenderToolStripBorder we can make the ToolStrip without border
/// </summary>
/// <param name="e"></param>
protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e) {
// Don't draw a border
}