Skip to content

Commit 2734248

Browse files
committed
UI font update
1 parent ba14494 commit 2734248

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

src/main/java/burp/ConfigSettings.java

+10-5
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,13 @@ protected void showSettings() {
114114
JPanel globalPanel = new JPanel(); // The global panel contains the global settings above the profile tabs
115115
globalPanel.setLayout(new BoxLayout(globalPanel, BoxLayout.PAGE_AXIS));
116116
JLabel titleGlobalConfig = new JLabel("Global Configuration Settings");
117-
titleGlobalConfig.setText("<html><font color=orange size=4><b>Global Configuration Settings</b></html>");
117+
titleGlobalConfig.setForeground(Color.ORANGE);
118+
titleGlobalConfig.setFont(titleGlobalConfig.getFont().deriveFont(Font.BOLD, titleGlobalConfig.getFont().getSize() + 4));
118119
globalPanel.add(titleGlobalConfig);
119120
// Checkboxes to enable/disable the extension for each Burp Suite tool
120121
JLabel labelTools = new JLabel("Enable the extension for the following Burp Suite tools:");
121-
labelTools.setText("<html><strong>Enable the extension for the following Burp Suite tools:</strong></html>");
122+
Font labelToolsFont = labelTools.getFont();
123+
labelTools.setFont(labelToolsFont.deriveFont(labelToolsFont.getStyle() | Font.BOLD)); // make text bold
122124
globalPanel.add(labelTools);
123125
if ((Signing.callbacks.loadExtensionSetting("enableProxy") != null) &&
124126
Signing.callbacks.loadExtensionSetting("enableProxy").equals("true")) {
@@ -150,7 +152,8 @@ protected void showSettings() {
150152
globalPanel.add(checkBoxToolRepeater);
151153
// Debugging settings
152154
JLabel labelDebugging = new JLabel("Debugging");
153-
labelDebugging.setText("<html><strong>Debugging:</strong></html>");
155+
Font labelDebuggingFont = labelDebugging.getFont();
156+
labelDebugging.setFont(labelDebuggingFont.deriveFont(labelDebuggingFont.getStyle() | Font.BOLD)); // make text bold
154157
globalPanel.add(labelDebugging);
155158
checkBoxDebug.setSelected(Signing.DEBUG); // set the checkbox if debugging logs is enabled
156159
globalPanel.add(checkBoxDebug);
@@ -176,7 +179,8 @@ public void mouseClicked(MouseEvent e) {
176179
@Override
177180
public void mouseEntered(MouseEvent e) {
178181
// the mouse has entered the label
179-
labelDoc.setText("<html><a href=''>" + doc + "</a></html>");
182+
Font labelDocFont = labelDebugging.getFont();
183+
labelDoc.setFont(labelDocFont.deriveFont(labelDocFont.getStyle() | Font.BOLD)); // make text bold
180184
}
181185

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

199204
rootPanel.add(globalPanel, BorderLayout.PAGE_START);

0 commit comments

Comments
 (0)