mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-02 21:20:28 +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)
|
if (cms != null)
|
||||||
{
|
{
|
||||||
cms.Renderer = new ToolStripDarkRenderer();
|
cms.Renderer = new ToolStripDarkRenderer();
|
||||||
|
cms.Font = Theme.ContextMenuFont;
|
||||||
cms.Opacity = Theme.ContextMenuOpacityDouble;
|
cms.Opacity = Theme.ContextMenuOpacityDouble;
|
||||||
ApplyCustomThemeToToolStripItemCollection(cms.Items);
|
ApplyCustomThemeToToolStripItemCollection(cms.Items);
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,6 +72,8 @@ public class ShareXTheme
|
||||||
[Editor(typeof(MyColorEditor), typeof(UITypeEditor)), TypeConverter(typeof(MyColorConverter))]
|
[Editor(typeof(MyColorEditor), typeof(UITypeEditor)), TypeConverter(typeof(MyColorConverter))]
|
||||||
public Color MenuCheckBackgroundColor { get; set; }
|
public Color MenuCheckBackgroundColor { get; set; }
|
||||||
|
|
||||||
|
public Font ContextMenuFont { get; set; } = new Font("Segoe UI", 10);
|
||||||
|
|
||||||
public int ContextMenuOpacity { get; set; } = 100;
|
public int ContextMenuOpacity { get; set; } = 100;
|
||||||
|
|
||||||
[Browsable(false)]
|
[Browsable(false)]
|
||||||
|
@ -91,7 +93,7 @@ public ShareXTheme()
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ShareXTheme GetDarkTheme()
|
public static ShareXTheme GetDarkTheme()
|
||||||
{
|
{
|
||||||
return new ShareXTheme()
|
return new ShareXTheme()
|
||||||
{
|
{
|
||||||
Name = "Dark",
|
Name = "Dark",
|
||||||
|
|
Loading…
Reference in a new issue