Skip to content

Commit daf8705

Browse files
committed
Fix quick search foreground color for different themes.
1 parent d15aa0a commit daf8705

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist/ResourceListPane.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public ResourceListPane()
104104

105105
tree.setRootVisible(false);
106106
tree.setShowsRootHandles(true);
107-
quickSearch.setForeground(Color.gray);
107+
quickSearch.setForeground(quickSearch.getDisabledTextColor());
108108

109109
attachTreeListeners();
110110
attachQuickSearchListeners();
@@ -524,7 +524,7 @@ public void focusGained(final FocusEvent arg0)
524524
if (quickSearch.getText().equals(TranslatedStrings.QUICK_FILE_SEARCH_NO_FILE_EXTENSION.toString()))
525525
{
526526
quickSearch.setText("");
527-
quickSearch.setForeground(Color.black);
527+
quickSearch.setForeground(quickSearch.getSelectedTextColor());
528528
}
529529
}
530530

@@ -534,7 +534,7 @@ public void focusLost(final FocusEvent arg0)
534534
if (quickSearch.getText().isEmpty())
535535
{
536536
quickSearch.setText(TranslatedStrings.QUICK_FILE_SEARCH_NO_FILE_EXTENSION.toString());
537-
quickSearch.setForeground(Color.gray);
537+
quickSearch.setForeground(quickSearch.getDisabledTextColor());
538538
}
539539
}
540540
});

0 commit comments

Comments
 (0)