File tree Expand file tree Collapse file tree
src/main/java/the/bytecode/club/bytecodeviewer/gui/resourcelist Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424import me .konloch .kontainer .io .DiskWriter ;
2525import org .apache .commons .io .FilenameUtils ;
2626import the .bytecode .club .bytecodeviewer .BytecodeViewer ;
27+ import the .bytecode .club .bytecodeviewer .Configuration ;
2728import the .bytecode .club .bytecodeviewer .decompilers .Decompiler ;
2829import the .bytecode .club .bytecodeviewer .gui .contextmenu .ContextMenu ;
30+ import the .bytecode .club .bytecodeviewer .gui .theme .LAFTheme ;
2931import the .bytecode .club .bytecodeviewer .resources .IconResources ;
3032import the .bytecode .club .bytecodeviewer .resources .ResourceContainer ;
3133import the .bytecode .club .bytecodeviewer .resources .importing .Import ;
@@ -512,7 +514,9 @@ public void focusGained(final FocusEvent arg0)
512514 if (quickSearch .getText ().equals (TranslatedStrings .QUICK_FILE_SEARCH_NO_FILE_EXTENSION .toString ()))
513515 {
514516 quickSearch .setText ("" );
515- quickSearch .setForeground (quickSearch .getSelectedTextColor ());
517+
518+ if (Configuration .lafTheme != LAFTheme .SYSTEM )
519+ quickSearch .setForeground (quickSearch .getSelectedTextColor ());
516520 }
517521 }
518522
@@ -522,7 +526,9 @@ public void focusLost(final FocusEvent arg0)
522526 if (quickSearch .getText ().isEmpty ())
523527 {
524528 quickSearch .setText (TranslatedStrings .QUICK_FILE_SEARCH_NO_FILE_EXTENSION .toString ());
525- quickSearch .setForeground (quickSearch .getDisabledTextColor ());
529+
530+ if (Configuration .lafTheme != LAFTheme .SYSTEM )
531+ quickSearch .setForeground (quickSearch .getDisabledTextColor ());
526532 }
527533 }
528534 });
You can’t perform that action at this time.
0 commit comments