Skip to content

Commit

Permalink
Blacklisted all themes other than Nimbus, color theme update
Browse files Browse the repository at this point in the history
  • Loading branch information
hvqzao committed May 21, 2019
1 parent 86c1c77 commit c31a207
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/hvqzao/wildcard/OutscopePane.form
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
</Component>
<Component class="javax.swing.JLabel" name="title">
<Properties>
<Property name="text" type="java.lang.String" value="&lt;html&gt;&lt;b style=&apos;color:#e58900;font-size:10px&apos;&gt;Scope&lt;/b&gt;&lt;/html&gt;"/>
<Property name="text" type="java.lang.String" value="&lt;html&gt;&lt;b style=&apos;color:#ff6633;font-size:10px&apos;&gt;Scope&lt;/b&gt;&lt;/html&gt;"/>
</Properties>
</Component>
<Component class="javax.swing.JButton" name="excludeButton">
Expand Down
2 changes: 1 addition & 1 deletion src/hvqzao/wildcard/OutscopePane.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private void initComponents() {

description.setText("<html>Scope control features.</html>");

title.setText("<html><b style='color:#e58900;font-size:10px'>Scope</b></html>");
title.setText("<html><b style='color:#ff6633;font-size:10px'>Scope</b></html>");

excludeButton.setText("Exclude common static files");
excludeButton.addActionListener(new java.awt.event.ActionListener() {
Expand Down
6 changes: 3 additions & 3 deletions src/hvqzao/wildcard/WildcardExtension.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Wildcard Burp Extension, (c) 2015-2017 Marcin Woloszyn (@hvqzao), Released under MIT license
// Wildcard Burp Extension, (c) 2015-2019 Marcin Woloszyn (@hvqzao), Released under MIT license
package hvqzao.wildcard;

import burp.IBurpExtender;
Expand Down Expand Up @@ -39,8 +39,8 @@ public void registerExtenderCallbacks(final IBurpExtenderCallbacks callbacks) {
// draw UI
SwingUtilities.invokeLater(() -> {
// abort and exit on dark theme
if ("darcula".equals(UIManager.getLookAndFeel().getName().toLowerCase())) {
new PrintWriter(callbacks.getStdout(), true).println("Dark theme is not compatible with this extension. Exiting.");
if ("nimbus".equals(UIManager.getLookAndFeel().getName().toLowerCase()) == false) {
new PrintWriter(callbacks.getStdout(), true).println("Other themes than Nimbus are not compatible with this extension. Exiting.");
callbacks.unloadExtension();
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/hvqzao/wildcard/WildcardOptionsPane.form
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
</Component>
<Component class="javax.swing.JLabel" name="settingsTitle">
<Properties>
<Property name="text" type="java.lang.String" value="&lt;html&gt;&lt;b style=&apos;color:#e58900;font-size:10px&apos;&gt;Settings&lt;/b&gt;&lt;/html&gt;"/>
<Property name="text" type="java.lang.String" value="&lt;html&gt;&lt;b style=&apos;color:#ff6633;font-size:10px&apos;&gt;Settings&lt;/b&gt;&lt;/html&gt;"/>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="settingsDescription">
Expand Down
7 changes: 4 additions & 3 deletions src/hvqzao/wildcard/WildcardOptionsPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class WildcardOptionsPane extends JPanel implements ITab, IExtensionState
private IBurpExtenderCallbacks callbacks;
private Component extensionTabLabelRestore;
private ArrayList<String> hijackModel;
private final String[] defaultBurpTabs = {"Target", "Proxy", "Spider", "Scanner", "Intruder", "Repeater", "Sequencer", "Decoder", "Comparer", "Extender", "Options", "User options", "Project options", "Alerts", "*"};
private final String[] defaultBurpTabs = {"Dashboard", "Target", "Proxy", "Spider", "Scanner", "Intruder", "Repeater", "Sequencer", "Decoder", "Comparer", "Extender", "Options", "User options", "Project options", "Alerts", "*"};
private final ArrayList<String> burpTabs = new ArrayList<>();
private final JTabbedPane extensionTabbedPane;
private JTabbedPane burpTabbedPane;
Expand Down Expand Up @@ -355,7 +355,8 @@ private void extensionTabHighlightOrange() {
extensionTabLabel.setForeground(Color.black);
extensionTabHighlightTimer = null;
});
extensionTabLabel.setForeground(new Color(229, 137, 0));
//extensionTabLabel.setForeground(new Color(229, 137, 0));
extensionTabLabel.setForeground(new Color(255, 102, 51));
extensionTabHighlightTimer.setRepeats(false);
extensionTabHighlightTimer.start();
}
Expand Down Expand Up @@ -390,7 +391,7 @@ private void initComponents() {
settingsDefaults.setMinimumSize(new java.awt.Dimension(24, 24));
settingsDefaults.setPreferredSize(new java.awt.Dimension(24, 24));

settingsTitle.setText("<html><b style='color:#e58900;font-size:10px'>Settings</b></html>");
settingsTitle.setText("<html><b style='color:#ff6633;font-size:10px'>Settings</b></html>");

settingsDescription.setText("<html>Use these settings to control extension behavior.</html>");

Expand Down

0 comments on commit c31a207

Please sign in to comment.