Fix welcome border dark mode
This commit is contained in:
parent
8802c48201
commit
f77b76b649
@ -61,7 +61,6 @@ public class WelcomeDialog extends JDialog {
|
|||||||
textPane.setContentType("text/html");
|
textPane.setContentType("text/html");
|
||||||
textPane.setMargin(new Insets(10, 10, 10, 10));
|
textPane.setMargin(new Insets(10, 10, 10, 10));
|
||||||
textPane.putClientProperty(JTextPane.HONOR_DISPLAY_PROPERTIES, true);
|
textPane.putClientProperty(JTextPane.HONOR_DISPLAY_PROPERTIES, true);
|
||||||
textPane.setBorder(GUIUtil.getUITheme().getBorder());
|
|
||||||
|
|
||||||
String sb = "<html>" +
|
String sb = "<html>" +
|
||||||
MarkdownUtil.toHtml(releaseNotes) + "<br><br>" +
|
MarkdownUtil.toHtml(releaseNotes) + "<br><br>" +
|
||||||
@ -82,7 +81,9 @@ public class WelcomeDialog extends JDialog {
|
|||||||
textPane.setText(sb);
|
textPane.setText(sb);
|
||||||
textPane.setCaretPosition(0); // Scroll to the top
|
textPane.setCaretPosition(0); // Scroll to the top
|
||||||
|
|
||||||
panel.add(new JScrollPane(textPane), "skip 1, left, spanx, grow, push, gapbottom 6px, wrap");
|
JScrollPane scrollPane = new JScrollPane(textPane);
|
||||||
|
scrollPane.setBorder(GUIUtil.getUITheme().getBorder());
|
||||||
|
panel.add(scrollPane, "skip 1, left, spanx, grow, push, gapbottom 6px, wrap");
|
||||||
|
|
||||||
// Don't show this dialog again
|
// Don't show this dialog again
|
||||||
JCheckBox dontShowAgain = new JCheckBox(trans.get("welcome.dlg.checkbox.dontShowAgain"));
|
JCheckBox dontShowAgain = new JCheckBox(trans.get("welcome.dlg.checkbox.dontShowAgain"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user