@@ -25,14 +25,10 @@ public static void FixVisualStyle(this Control container)
25
25
. ForEach ( SetupGroupBox ) ;
26
26
container . DescendantsToFix < TreeView > ( )
27
27
. ForEach ( SetupTreeView ) ;
28
- container . DescendantsToFix < ListBox > ( )
29
- . ForEach ( SetupListBox ) ;
30
28
container . DescendantsToFix < TabControl > ( )
31
29
. ForEach ( SetupTabControl ) ;
32
30
container . DescendantsToFix < TextBoxBase > ( )
33
31
. ForEach ( SetupTextBoxBase ) ;
34
- container . DescendantsToFix < ComboBox > ( )
35
- . ForEach ( SetupComboBox ) ;
36
32
container . DescendantsToFix < LinkLabel > ( )
37
33
. ForEach ( SetupLinkLabel ) ;
38
34
container . DescendantsToFix < ToolStrip > ( )
@@ -71,22 +67,13 @@ private static void SetupTextBoxBase(TextBoxBase textBox)
71
67
private static void SetupToolStrip ( ToolStrip strip )
72
68
{
73
69
strip . UseExtendedThemeAwareRenderer ( ) ;
74
- strip . Items . OfType < ToolStripLabel > ( )
75
- . ForEach ( SetupToolStripLabel ) ;
76
70
}
77
71
78
72
private static void SetupContextMenu ( ContextMenuStrip strip )
79
73
{
80
74
strip . UseExtendedThemeAwareRenderer ( ) ;
81
75
}
82
76
83
- private static void SetupToolStripLabel ( ToolStripLabel label )
84
- {
85
- label . LinkColor = label . LinkColor . AdaptTextColor ( ) ;
86
- label . VisitedLinkColor = label . VisitedLinkColor . AdaptTextColor ( ) ;
87
- label . ActiveLinkColor = label . ActiveLinkColor . AdaptTextColor ( ) ;
88
- }
89
-
90
77
private static void SetupLinkLabel ( this LinkLabel label )
91
78
{
92
79
label . LinkColor = label . LinkColor . AdaptTextColor ( ) ;
@@ -116,23 +103,6 @@ private static void SetupTabPage(TabPage page)
116
103
117
104
private static void SetupTreeView ( TreeView view )
118
105
{
119
- IntPtr unused = view . Handle ; // force handle creation
120
- view . TouchBackColor ( ) ;
121
- view . TouchForeColor ( ) ;
122
- view . LineColor = SystemColors . ControlDark ;
123
- }
124
-
125
- private static void SetupListBox ( ListBox view )
126
- {
127
- if ( view . BorderStyle == BorderStyle . Fixed3D )
128
- {
129
- view . BorderStyle = BorderStyle . FixedSingle ;
130
- }
131
- }
132
-
133
- private static void SetupComboBox ( this ComboBox menu )
134
- {
135
- menu . TouchBackColor ( ) ;
136
106
}
137
107
138
108
private static void TouchBackColor ( this Control c )
0 commit comments