Skip to content

Commit 85bc27a

Browse files
committed
Resolve System LAF Search Panel
1 parent d2d5fdb commit 85bc27a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
import me.konloch.kontainer.io.DiskWriter;
2525
import org.apache.commons.io.FilenameUtils;
2626
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
27+
import the.bytecode.club.bytecodeviewer.Configuration;
2728
import the.bytecode.club.bytecodeviewer.decompilers.Decompiler;
2829
import the.bytecode.club.bytecodeviewer.gui.contextmenu.ContextMenu;
30+
import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme;
2931
import the.bytecode.club.bytecodeviewer.resources.IconResources;
3032
import the.bytecode.club.bytecodeviewer.resources.ResourceContainer;
3133
import 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
});

0 commit comments

Comments
 (0)