mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-30 20:20:34 +12:00
Added context menu font option to theme
This commit is contained in:
parent
894a41bc4e
commit
88541bb6df
|
@ -229,6 +229,7 @@ public static void ApplyCustomThemeToContextMenuStrip(ContextMenuStrip cms)
|
|||
if (cms != null)
|
||||
{
|
||||
cms.Renderer = new ToolStripDarkRenderer();
|
||||
cms.Font = Theme.ContextMenuFont;
|
||||
cms.Opacity = Theme.ContextMenuOpacityDouble;
|
||||
ApplyCustomThemeToToolStripItemCollection(cms.Items);
|
||||
}
|
||||
|
|
|
@ -72,6 +72,8 @@ public class ShareXTheme
|
|||
[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 @@ public ShareXTheme()
|
|||
}
|
||||
|
||||
public static ShareXTheme GetDarkTheme()
|
||||
{
|
||||
{
|
||||
return new ShareXTheme()
|
||||
{
|
||||
Name = "Dark",
|
||||
|
|
Loading…
Reference in a new issue