File tree Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Expand file tree Collapse file tree 4 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -471,8 +471,15 @@ private void SetMatch(TreeNode node)
471
471
{
472
472
if ( lastMatch != null )
473
473
{
474
- lastMatch . BackColor = SystemColors . Window ;
475
- lastMatch . ForeColor = SystemColors . WindowText ;
474
+ //lastMatch.BackColor = SystemColors.Window;
475
+ //lastMatch.ForeColor = SystemColors.WindowText;
476
+ Color back = PluginBase . MainForm . GetThemeColor ( "FixedTreeView.BackColor" ) ;
477
+ Color fore = PluginBase . MainForm . GetThemeColor ( "FixedTreeView.ForeColor" ) ;
478
+ if ( back == Color . Empty ) lastMatch . BackColor = System . Drawing . SystemColors . Window ;
479
+ else lastMatch . BackColor = back ;
480
+ if ( fore == Color . Empty ) lastMatch . ForeColor = System . Drawing . SystemColors . WindowText ;
481
+ else lastMatch . ForeColor = fore ;
482
+
476
483
}
477
484
lastMatch = node ;
478
485
if ( lastMatch != null )
Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ private void SetHighlight(TreeNode node)
495
495
if ( currentHighlight != null )
496
496
{
497
497
//currentHighlight.BackColor = System.Drawing.SystemColors.Window;
498
- currentHighlight . ForeColor = System . Drawing . SystemColors . WindowText ;
498
+ currentHighlight . ForeColor = outlineTree . ForeColor ;
499
499
}
500
500
outlineTree . SelectedNode = currentHighlight = node ;
501
501
if ( currentHighlight != null )
@@ -1093,7 +1093,9 @@ void FindProcTxtEnter(object sender, System.EventArgs e)
1093
1093
if ( findProcTxt . Text == searchInvitation )
1094
1094
{
1095
1095
findProcTxt . Text = "" ;
1096
- findProcTxt . ForeColor = System . Drawing . SystemColors . WindowText ;
1096
+ Color fore = PluginBase . MainForm . GetThemeColor ( "ToolStripTextBoxControl.ForeColor" ) ;
1097
+ if ( fore == Color . Empty ) findProcTxt . ForeColor = System . Drawing . SystemColors . WindowText ;
1098
+ else findProcTxt . ForeColor = fore ;
1097
1099
}
1098
1100
}
1099
1101
@@ -1171,8 +1173,7 @@ private TreeNode FindMatch(TreeNodeCollection nodes)
1171
1173
{
1172
1174
foreach ( TreeNode node in nodes )
1173
1175
{
1174
- if ( node . BackColor == System . Drawing . Color . LightSkyBlue )
1175
- return node ;
1176
+ if ( node . BackColor == SystemColors . Highlight ) return node ;
1176
1177
if ( node . Nodes . Count > 0 )
1177
1178
{
1178
1179
TreeNode subnode = FindMatch ( node . Nodes ) ;
Original file line number Diff line number Diff line change @@ -525,7 +525,9 @@ private void FindTextBoxEnter(Object sender, System.EventArgs e)
525
525
if ( this . findTextBox . Text == searchInvitation )
526
526
{
527
527
this . findTextBox . Text = "" ;
528
- this . findTextBox . ForeColor = System . Drawing . SystemColors . WindowText ;
528
+ Color fore = PluginBase . MainForm . GetThemeColor ( "ToolStripTextBoxControl.ForeColor" ) ;
529
+ if ( fore == Color . Empty ) this . findTextBox . ForeColor = System . Drawing . SystemColors . WindowText ;
530
+ else this . findTextBox . ForeColor = fore ;
529
531
}
530
532
}
531
533
Original file line number Diff line number Diff line change @@ -943,7 +943,7 @@ public void NextEntry(Object sender, System.EventArgs e)
943
943
if ( this . entriesView . Items . Count == 0 ) return ;
944
944
if ( this . entryIndex >= 0 && this . entryIndex < this . entriesView . Items . Count )
945
945
{
946
- this . entriesView . Items [ this . entryIndex ] . ForeColor = SystemColors . WindowText ;
946
+ this . entriesView . Items [ this . entryIndex ] . ForeColor = this . entriesView . ForeColor ;
947
947
}
948
948
this . entryIndex = ( this . entryIndex + 1 ) % this . entriesView . Items . Count ;
949
949
this . entriesView . SelectedItems . Clear ( ) ;
@@ -961,7 +961,7 @@ public void PreviousEntry(Object sender, System.EventArgs e)
961
961
if ( this . entriesView . Items . Count == 0 ) return ;
962
962
if ( this . entryIndex >= 0 && this . entryIndex < this . entriesView . Items . Count )
963
963
{
964
- this . entriesView . Items [ this . entryIndex ] . ForeColor = SystemColors . WindowText ;
964
+ this . entriesView . Items [ this . entryIndex ] . ForeColor = this . entriesView . ForeColor ;
965
965
}
966
966
if ( -- this . entryIndex < 0 ) this . entryIndex = this . entriesView . Items . Count - 1 ;
967
967
this . entriesView . SelectedItems . Clear ( ) ;
You can’t perform that action at this time.
0 commit comments