Skip to content

Commit

Permalink
UI font update
Browse files Browse the repository at this point in the history
  • Loading branch information
sanktjodel committed Aug 16, 2022
1 parent ba14494 commit 2734248
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/main/java/burp/ConfigSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@ protected void showSettings() {
JPanel globalPanel = new JPanel(); // The global panel contains the global settings above the profile tabs
globalPanel.setLayout(new BoxLayout(globalPanel, BoxLayout.PAGE_AXIS));
JLabel titleGlobalConfig = new JLabel("Global Configuration Settings");
titleGlobalConfig.setText("<html><font color=orange size=4><b>Global Configuration Settings</b></html>");
titleGlobalConfig.setForeground(Color.ORANGE);
titleGlobalConfig.setFont(titleGlobalConfig.getFont().deriveFont(Font.BOLD, titleGlobalConfig.getFont().getSize() + 4));
globalPanel.add(titleGlobalConfig);
// Checkboxes to enable/disable the extension for each Burp Suite tool
JLabel labelTools = new JLabel("Enable the extension for the following Burp Suite tools:");
labelTools.setText("<html><strong>Enable the extension for the following Burp Suite tools:</strong></html>");
Font labelToolsFont = labelTools.getFont();
labelTools.setFont(labelToolsFont.deriveFont(labelToolsFont.getStyle() | Font.BOLD)); // make text bold
globalPanel.add(labelTools);
if ((Signing.callbacks.loadExtensionSetting("enableProxy") != null) &&
Signing.callbacks.loadExtensionSetting("enableProxy").equals("true")) {
Expand Down Expand Up @@ -150,7 +152,8 @@ protected void showSettings() {
globalPanel.add(checkBoxToolRepeater);
// Debugging settings
JLabel labelDebugging = new JLabel("Debugging");
labelDebugging.setText("<html><strong>Debugging:</strong></html>");
Font labelDebuggingFont = labelDebugging.getFont();
labelDebugging.setFont(labelDebuggingFont.deriveFont(labelDebuggingFont.getStyle() | Font.BOLD)); // make text bold
globalPanel.add(labelDebugging);
checkBoxDebug.setSelected(Signing.DEBUG); // set the checkbox if debugging logs is enabled
globalPanel.add(checkBoxDebug);
Expand All @@ -176,7 +179,8 @@ public void mouseClicked(MouseEvent e) {
@Override
public void mouseEntered(MouseEvent e) {
// the mouse has entered the label
labelDoc.setText("<html><a href=''>" + doc + "</a></html>");
Font labelDocFont = labelDebugging.getFont();
labelDoc.setFont(labelDocFont.deriveFont(labelDocFont.getStyle() | Font.BOLD)); // make text bold
}

@Override
Expand All @@ -193,7 +197,8 @@ public void mouseExited(MouseEvent e) {
maxSize = new Dimension(Short.MAX_VALUE, 25);
globalPanel.add(new Box.Filler(minSize, prefSize, maxSize));
JLabel titleProfileConfig = new JLabel("Profile Configuration");
titleProfileConfig.setText("<html><font color=orange size=4><b>Profile Configuration</b></html>");
titleProfileConfig.setForeground(Color.ORANGE);
titleProfileConfig.setFont(titleProfileConfig.getFont().deriveFont(Font.BOLD, titleProfileConfig.getFont().getSize() + 4));
globalPanel.add(titleProfileConfig);

rootPanel.add(globalPanel, BorderLayout.PAGE_START);
Expand Down

0 comments on commit 2734248

Please sign in to comment.