|
1 | 1 | package mdlaf;
|
2 | 2 |
|
| 3 | +import javafx.scene.paint.Material; |
3 | 4 | import mdlaf.components.button.MaterialButtonUI;
|
4 | 5 | import mdlaf.components.checkBoxMenuItem.MaterialCheckBoxMenuItemUI;
|
5 | 6 | import mdlaf.components.checkbox.MaterialCheckBoxUI;
|
|
21 | 22 | import mdlaf.components.table.MaterialTableHeaderUI;
|
22 | 23 | import mdlaf.components.table.MaterialTableUI;
|
23 | 24 | import mdlaf.components.textfield.MaterialTextFieldUI;
|
| 25 | +import mdlaf.components.textpane.MaterialTextPaneUI; |
24 | 26 | import mdlaf.components.togglebutton.MaterialToggleButtonUI;
|
25 | 27 | import mdlaf.components.toolbar.MaterialToolBarUI;
|
26 | 28 | import mdlaf.components.tree.MaterialTreeUI;
|
@@ -59,18 +61,7 @@ public class MaterialLookAndFeel extends MetalLookAndFeel {
|
59 | 61 | private static final String progressBarUI = MaterialProgressBarUI.class.getCanonicalName();
|
60 | 62 | private static final String radioButtonMenuItemUI = MaterialRadioButtonMenuItemUI.class.getCanonicalName();
|
61 | 63 | private static final String checkBoxMenuItemUI = MaterialCheckBoxMenuItemUI.class.getCanonicalName();
|
62 |
| - |
63 |
| - public static String getCheckBoxMenuItemUI() { |
64 |
| - return checkBoxMenuItemUI; |
65 |
| - } |
66 |
| - |
67 |
| - public static String getRadioButtonMenuItemUI() { |
68 |
| - return radioButtonMenuItemUI; |
69 |
| - } |
70 |
| - |
71 |
| - public static String getProgressbarui() { |
72 |
| - return progressBarUI; |
73 |
| - } |
| 64 | + private static final String textPaneUI = MaterialTextPaneUI.class.getCanonicalName(); |
74 | 65 |
|
75 | 66 | @Override
|
76 | 67 | public String getName () {
|
@@ -124,6 +115,7 @@ protected void initClassDefaults (UIDefaults table) {
|
124 | 115 | table.put("ProgressBarUI", progressBarUI);
|
125 | 116 | table.put("RadioButtonMenuItemUI", radioButtonMenuItemUI);
|
126 | 117 | table.put("CheckBoxMenuItemUI", checkBoxMenuItemUI);
|
| 118 | + table.put("TextPaneUI", textPaneUI); |
127 | 119 | }
|
128 | 120 |
|
129 | 121 | @Override
|
@@ -292,5 +284,11 @@ protected void initComponentDefaults (UIDefaults table) {
|
292 | 284 | table.put ("CheckBoxMenuItem.border", BorderFactory.createEmptyBorder (5, 5, 5, 5));
|
293 | 285 | table.put("CheckBoxMenuItem.checkIcon", new ImageIcon(MaterialImages.UNCHECKED_BOX));
|
294 | 286 | table.put("CheckBoxMenuItem.selectedCheckIcon", new ImageIcon(MaterialImages.PAINTED_CHECKED_BOX));
|
| 287 | + |
| 288 | + table.put("TextPane.border", MaterialBorders.DEFAULT_SHADOW_BORDER); |
| 289 | + table.put("TextPane.background", MaterialColors.GRAY_50); |
| 290 | + table.put("TextPane.selectionBackground", MaterialColors.LIGHT_BLUE_200); |
| 291 | + table.put("TextPane.inactiveForeground", MaterialColors.GRAY_500); |
| 292 | + table.put("TextPane.font", MaterialFonts.BLACK_ITALIC); |
295 | 293 | }
|
296 | 294 | }
|
0 commit comments