-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathThemedColorTable.vb
58 lines (48 loc) · 1.81 KB
/
ThemedColorTable.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Public Class ThemedColorTable : Inherits ProfessionalColorTable
Public Shared darkMode As Boolean = False
Public Overrides ReadOnly Property ToolStripBorder As Color
Get
Return If(darkMode, Color.Gray, MyBase.ToolStripBorder)
End Get
End Property
Public Overrides ReadOnly Property ToolStripDropDownBackground As Color
Get
Return If(darkMode, Color.Black, MyBase.ToolStripDropDownBackground)
End Get
End Property
Public Overrides ReadOnly Property ToolStripGradientBegin As Color
Get
Return If(darkMode, Color.Black, MyBase.ToolStripGradientBegin)
End Get
End Property
Public Overrides ReadOnly Property ToolStripGradientEnd As Color
Get
Return If(darkMode, Color.Black, MyBase.ToolStripGradientEnd)
End Get
End Property
Public Overrides ReadOnly Property ToolStripGradientMiddle As Color
Get
Return If(darkMode, Color.Black, MyBase.ToolStripGradientMiddle)
End Get
End Property
Public Overrides ReadOnly Property ImageMarginGradientBegin As Color
Get
Return If(darkMode, Color.Black, MyBase.ImageMarginGradientBegin)
End Get
End Property
Public Overrides ReadOnly Property ImageMarginGradientMiddle As Color
Get
Return If(darkMode, Color.Black, MyBase.ImageMarginGradientMiddle)
End Get
End Property
Public Overrides ReadOnly Property ImageMarginGradientEnd As Color
Get
Return If(darkMode, Color.Black, MyBase.ImageMarginGradientEnd)
End Get
End Property
Public Overrides ReadOnly Property MenuItemSelected As Color
Get
Return If(darkMode, Color.DarkGray, MyBase.MenuItemSelected)
End Get
End Property
End Class