Added context menu font option to theme

This commit is contained in:
Jaex 2020-09-16 02:16:53 +03:00
parent 894a41bc4e
commit 88541bb6df
2 changed files with 4 additions and 1 deletions

View File

@ -229,6 +229,7 @@ namespace ShareX.HelpersLib
if (cms != null)
{
cms.Renderer = new ToolStripDarkRenderer();
cms.Font = Theme.ContextMenuFont;
cms.Opacity = Theme.ContextMenuOpacityDouble;
ApplyCustomThemeToToolStripItemCollection(cms.Items);
}

View File

@ -72,6 +72,8 @@ namespace ShareX.HelpersLib
[Editor(typeof(MyColorEditor), typeof(UITypeEditor)), TypeConverter(typeof(MyColorConverter))]
public Color MenuCheckBackgroundColor { get; set; }
public Font ContextMenuFont { get; set; } = new Font("Segoe UI", 10);
public int ContextMenuOpacity { get; set; } = 100;
[Browsable(false)]
@ -91,7 +93,7 @@ namespace ShareX.HelpersLib
}
public static ShareXTheme GetDarkTheme()
{
{
return new ShareXTheme()
{
Name = "Dark",