@@ -85,9 +85,9 @@ public override Bitmap Image
85
85
86
86
protected override void OnRefreshChanges ( )
87
87
{
88
- if ( VS2005DockPaneStrip . ColorDocumentActiveText != ForeColor )
88
+ if ( VS2005DockPaneStrip . ImageColor != ForeColor )
89
89
{
90
- ForeColor = VS2005DockPaneStrip . ColorDocumentActiveText ;
90
+ ForeColor = VS2005DockPaneStrip . ImageColor ;
91
91
Invalidate ( ) ;
92
92
}
93
93
}
@@ -422,7 +422,17 @@ private static int DocumentTextGapRight
422
422
get { return ScaleHelper . Scale ( _DocumentTextGapRight ) ; }
423
423
}
424
424
425
- private static Pen PenToolWindowTabBorder
425
+ private static Pen PenToolWindowTabActiveBorder
426
+ {
427
+ get
428
+ {
429
+ Color color = PluginCore . PluginBase . MainForm . GetThemeColor ( "VS2005DockPaneStrip.ToolActiveBorderColor" ) ;
430
+ if ( color != Color . Empty ) return new Pen ( color ) ;
431
+ else return SystemPens . ControlDark ;
432
+ }
433
+ }
434
+
435
+ private static Pen PenToolWindowTabInactiveBorder
426
436
{
427
437
get
428
438
{
@@ -493,7 +503,7 @@ private static Color ColorToolWindowActiveText
493
503
{
494
504
get
495
505
{
496
- Color color = PluginCore . PluginBase . MainForm . GetThemeColor ( "VS2005DockPaneStrip.ForeColor " ) ;
506
+ Color color = PluginCore . PluginBase . MainForm . GetThemeColor ( "VS2005DockPaneStrip.ToolActiveForeColor " ) ;
497
507
if ( color != Color . Empty ) return color ;
498
508
else return SystemColors . ControlText ;
499
509
}
@@ -503,7 +513,7 @@ private static Color ColorDocumentActiveText
503
513
{
504
514
get
505
515
{
506
- Color color = PluginCore . PluginBase . MainForm . GetThemeColor ( "VS2005DockPaneStrip.TabForeColor " ) ;
516
+ Color color = PluginCore . PluginBase . MainForm . GetThemeColor ( "VS2005DockPaneStrip.DocTabActiveForeColor " ) ;
507
517
if ( color != Color . Empty ) return color ;
508
518
else return SystemColors . ControlText ;
509
519
}
@@ -529,6 +539,16 @@ private static Color ColorDocumentInactiveText
529
539
}
530
540
}
531
541
542
+ private static Color ImageColor
543
+ {
544
+ get
545
+ {
546
+ Color color = PluginCore . PluginBase . MainForm . GetThemeColor ( "VS2005DockPaneStrip.ImageColor" ) ;
547
+ if ( color != Color . Empty ) return color ;
548
+ else return SystemColors . ControlText ;
549
+ }
550
+ }
551
+
532
552
#endregion
533
553
534
554
public VS2005DockPaneStrip ( DockPane pane ) : base ( pane )
@@ -1023,7 +1043,7 @@ private void DrawTabStrip_ToolWindow(Graphics g)
1023
1043
{
1024
1044
Rectangle rectTabStrip = TabStripRectangle ;
1025
1045
1026
- g . DrawLine ( PenToolWindowTabBorder , rectTabStrip . Left , rectTabStrip . Top ,
1046
+ g . DrawLine ( PenToolWindowTabActiveBorder , rectTabStrip . Left , rectTabStrip . Top ,
1027
1047
rectTabStrip . Right , rectTabStrip . Top ) ;
1028
1048
1029
1049
for ( int i = 0 ; i < Tabs . Count ; i ++ )
@@ -1183,12 +1203,12 @@ private void DrawTab_ToolWindow(Graphics g, TabVS2005 tab, Rectangle rect)
1183
1203
if ( DockPane . ActiveContent == tab . Content )
1184
1204
{
1185
1205
g . FillPath ( BrushToolWindowActiveBackground , path ) ;
1186
- g . DrawPath ( PenToolWindowTabBorder , path ) ;
1206
+ g . DrawPath ( PenToolWindowTabActiveBorder , path ) ;
1187
1207
1188
1208
// NICK: eliminate line between tab and content
1189
- RectangleF r = path . GetBounds ( ) ;
1190
- using ( Pen pen = new Pen ( Color . FromArgb ( 240 , 239 , 243 ) ) )
1191
- g . DrawLine ( pen , r . Left + 1 , r . Top , r . Right - 1 , r . Top ) ;
1209
+ // RectangleF r = path.GetBounds();
1210
+ // using (Pen pen = new Pen(BackColor ))
1211
+ // g.DrawLine(pen, r.Left + 1, r.Top, r.Right - 1, r.Top);
1192
1212
1193
1213
TextRenderer . DrawText ( g , tab . Content . DockHandler . TabText , Font , rectText , ColorToolWindowActiveText , ToolWindowTextFormat ) ;
1194
1214
}
0 commit comments