mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-30 20:20:34 +12:00
Limit context menu opacity minimum to 10
This commit is contained in:
parent
9e4de8cb0c
commit
38e9aaba41
|
@ -75,7 +75,7 @@ public class ShareXTheme
|
|||
public int ContextMenuOpacity { get; set; } = 100;
|
||||
|
||||
[Browsable(false)]
|
||||
public double ContextMenuOpacityDouble => ContextMenuOpacity.Clamp(0, 100) / 100d;
|
||||
public double ContextMenuOpacityDouble => ContextMenuOpacity.Clamp(10, 100) / 100d;
|
||||
|
||||
[Editor(typeof(MyColorEditor), typeof(UITypeEditor)), TypeConverter(typeof(MyColorConverter))]
|
||||
public Color SeparatorLightColor { get; set; }
|
||||
|
@ -129,7 +129,7 @@ public static ShareXTheme GetLightTheme()
|
|||
MenuHighlightBorderColor = Color.FromArgb(96, 143, 226),
|
||||
MenuBorderColor = Color.FromArgb(201, 201, 201),
|
||||
MenuCheckBackgroundColor = Color.FromArgb(225, 233, 244),
|
||||
ContextMenuOpacity = 90,
|
||||
ContextMenuOpacity = 95,
|
||||
SeparatorLightColor = Color.FromArgb(253, 253, 253),
|
||||
SeparatorDarkColor = Color.FromArgb(189, 189, 189)
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue