Skip to content

Commit 5ce1161

Browse files
author
slavara
committed
Support for themes of context menu
1 parent 12d0062 commit 5ce1161

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

QuickNavigate/Forms/ClassModelExplorerForm.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Linq;
55
using System.Windows.Forms;
66
using ASCompletion.Model;
7+
using JetBrains.Annotations;
78
using PluginCore;
89

910
namespace QuickNavigate.Forms
@@ -17,10 +18,10 @@ public class ClassModelExplorerForm : Form
1718
public event ShowInHandler ShowInClassHierarchy;
1819
public event ShowInHandler ShowInProjectManager;
1920
public event ShowInHandler ShowInFileExplorer;
20-
protected readonly Settings Settings;
21-
protected readonly ContextMenu InputEmptyContextMenu = new ContextMenu();
21+
[NotNull] protected readonly Settings Settings;
22+
[NotNull] protected readonly ContextMenu InputEmptyContextMenu = new ContextMenu();
2223

23-
public ClassModelExplorerForm(Settings settings)
24+
public ClassModelExplorerForm([NotNull] Settings settings)
2425
{
2526
Settings = settings;
2627
InitializeContextMenu();
@@ -37,7 +38,7 @@ protected override void Dispose(bool disposing)
3738

3839
protected void InitializeContextMenu()
3940
{
40-
ContextMenuStrip = new ContextMenuStrip();
41+
ContextMenuStrip = new ContextMenuStrip {Renderer = new DockPanelStripRenderer(false)};
4142
ContextMenuStrip.Items.Add(new ToolStripMenuItem("&Goto Position Or Line", PluginBase.MainForm.FindImage("67"), OnGotoLineOrPosition)
4243
{
4344
ShortcutKeyDisplayString = "G"

0 commit comments

Comments
 (0)