| author | wenzelm |
| Sun, 21 Aug 2022 12:35:45 +0200 | |
| changeset 75944 | abc3e052ba5d |
| parent 73653 | d9823224fcfe |
| child 81297 | 07f64697408e |
| permissions | -rw-r--r-- |
|
73653
d9823224fcfe
build auxiliary jEdit component in Isabelle/Scala;
wenzelm
parents:
72983
diff
changeset
|
1 |
diff -ru jedit5.6.0/jEdit/org/gjt/sp/jedit/gui/PanelWindowContainer.java jedit5.6.0-patched/jEdit/org/gjt/sp/jedit/gui/PanelWindowContainer.java |
|
d9823224fcfe
build auxiliary jEdit component in Isabelle/Scala;
wenzelm
parents:
72983
diff
changeset
|
2 |
--- jedit5.6.0/jEdit/org/gjt/sp/jedit/gui/PanelWindowContainer.java 2020-09-03 05:31:02.000000000 +0200 |
|
d9823224fcfe
build auxiliary jEdit component in Isabelle/Scala;
wenzelm
parents:
72983
diff
changeset
|
3 |
+++ jedit5.6.0-patched/jEdit/org/gjt/sp/jedit/gui/PanelWindowContainer.java 2021-05-10 11:23:04.107511056 +0200 |
| 72983 | 4 |
@@ -52,6 +52,7 @@ |
5 |
import javax.swing.JComponent; |
|
6 |
import javax.swing.JPanel; |
|
7 |
import javax.swing.JPopupMenu; |
|
8 |
+import javax.swing.JMenuItem; |
|
9 |
import javax.swing.JToggleButton; |
|
10 |
import javax.swing.UIManager; |
|
11 |
import javax.swing.border.Border; |
|
12 |
@@ -163,6 +164,7 @@ |
|
13 |
{
|
|
14 |
button = new JToggleButton(); |
|
15 |
button.setMargin(new Insets(1,1,1,1)); |
|
16 |
+ button.setFont(new JMenuItem().getFont()); |
|
17 |
} |
|
18 |
GenericGUIUtilities.setButtonContentMargin(button, new Insets(6,6,6,6)); |
|
19 |
button.setRequestFocusEnabled(false); |
|
20 |
@@ -690,8 +692,6 @@ |
|
21 |
renderHints = new RenderingHints( |
|
22 |
RenderingHints.KEY_ANTIALIASING, |
|
23 |
RenderingHints.VALUE_ANTIALIAS_ON); |
|
24 |
- renderHints.put(RenderingHints.KEY_FRACTIONALMETRICS, |
|
25 |
- RenderingHints.VALUE_FRACTIONALMETRICS_ON); |
|
26 |
renderHints.put(RenderingHints.KEY_RENDERING, |
|
27 |
RenderingHints.VALUE_RENDER_QUALITY); |
|
28 |
} //}}} |