diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/LDCSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/LDCSearch.java index 494d9450..4ec27f6f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/LDCSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/LDCSearch.java @@ -11,6 +11,7 @@ import org.objectweb.asm.tree.InsnList; import org.objectweb.asm.tree.LdcInsnNode; import org.objectweb.asm.tree.MethodNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.searching.EnterKeyEvent; import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; @@ -53,6 +54,7 @@ public class LDCSearch implements SearchPanel { searchText = new JTextField(""); searchText.addKeyListener(EnterKeyEvent.SINGLETON); + LAFTheme.registerThemeUpdate(searchText); } @Override @@ -63,6 +65,7 @@ public class LDCSearch implements SearchPanel myPanel = new JPanel(new BorderLayout(16, 16)); myPanel.add(new TranslatedJLabel("Search String: ", TranslatedComponents.SEARCH_STRING), BorderLayout.WEST); myPanel.add(searchText, BorderLayout.CENTER); + LAFTheme.registerThemeUpdate(myPanel); } return myPanel; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MemberWithAnnotationSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MemberWithAnnotationSearch.java index 0887afff..ec572948 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MemberWithAnnotationSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MemberWithAnnotationSearch.java @@ -4,6 +4,7 @@ import org.objectweb.asm.Type; import org.objectweb.asm.tree.AnnotationNode; import org.objectweb.asm.tree.ClassNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.searching.EnterKeyEvent; import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; @@ -46,6 +47,7 @@ public class MemberWithAnnotationSearch implements SearchPanel { public MemberWithAnnotationSearch() { annotation = new JTextField(""); annotation.addKeyListener(EnterKeyEvent.SINGLETON); + LAFTheme.registerThemeUpdate(annotation); } @Override @@ -54,6 +56,7 @@ public class MemberWithAnnotationSearch implements SearchPanel { myPanel = new JPanel(new BorderLayout(16, 16)); myPanel.add(new TranslatedJLabel("Annotation name: ", TranslatedComponents.ANNOTATION_NAME), BorderLayout.WEST); myPanel.add(annotation, BorderLayout.CENTER); + LAFTheme.registerThemeUpdate(myPanel); } return myPanel; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MethodCallSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MethodCallSearch.java index 3a1ec508..25e5721a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MethodCallSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/MethodCallSearch.java @@ -12,6 +12,7 @@ import org.objectweb.asm.tree.InsnList; import org.objectweb.asm.tree.MethodInsnNode; import org.objectweb.asm.tree.MethodNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.searching.EnterKeyEvent; import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; @@ -60,6 +61,7 @@ public class MethodCallSearch implements SearchPanel mName.addKeyListener(EnterKeyEvent.SINGLETON); mDesc = new JTextField(""); mDesc.addKeyListener(EnterKeyEvent.SINGLETON); + LAFTheme.registerThemeUpdate(mOwner, mName, mDesc); } public JPanel getPanel() @@ -79,6 +81,7 @@ public class MethodCallSearch implements SearchPanel right.add(mDesc); myPanel.add(left, BorderLayout.WEST); myPanel.add(right, BorderLayout.CENTER); + LAFTheme.registerThemeUpdate(myPanel); } return myPanel; diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/RegexSearch.java b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/RegexSearch.java index e732fede..8e37fca2 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/RegexSearch.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/searching/impl/RegexSearch.java @@ -9,6 +9,7 @@ import org.objectweb.asm.Type; import org.objectweb.asm.tree.ClassNode; import org.objectweb.asm.tree.MethodNode; import the.bytecode.club.bytecodeviewer.BytecodeViewer; +import the.bytecode.club.bytecodeviewer.gui.theme.LAFTheme; import the.bytecode.club.bytecodeviewer.resources.ResourceContainer; import the.bytecode.club.bytecodeviewer.searching.EnterKeyEvent; import the.bytecode.club.bytecodeviewer.searching.LDCSearchTreeNodeResult; @@ -54,6 +55,7 @@ public class RegexSearch implements SearchPanel { searchText = new JTextField(""); searchText.addKeyListener(EnterKeyEvent.SINGLETON); + LAFTheme.registerThemeUpdate(searchText); } @Override @@ -64,6 +66,7 @@ public class RegexSearch implements SearchPanel myPanel = new JPanel(new BorderLayout(16, 16)); myPanel.add(new TranslatedJLabel("Search Regex: ", TranslatedComponents.SEARCH_REGEX), BorderLayout.WEST); myPanel.add(searchText, BorderLayout.CENTER); + LAFTheme.registerThemeUpdate(myPanel); } return myPanel;