|
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;
|
|
15 | 16 | import mdlaf.components.radiobutton.MaterialRadioButtonUI;
|
16 | 17 | import mdlaf.components.radiobuttonmenuitem.MaterialRadioButtonMenuItemUI;
|
17 | 18 | import mdlaf.components.scrollbar.MaterialScrollBarUI;
|
| 19 | +import mdlaf.components.separator.MaterialSeparatorUI; |
18 | 20 | import mdlaf.components.slider.MaterialSliderUI;
|
19 | 21 | import mdlaf.components.spinner.MaterialSpinnerUI;
|
20 | 22 | import mdlaf.components.tabbedpane.MaterialTabbedPaneUI;
|
21 | 23 | import mdlaf.components.table.MaterialTableHeaderUI;
|
22 | 24 | import mdlaf.components.table.MaterialTableUI;
|
23 | 25 | import mdlaf.components.textfield.MaterialTextFieldUI;
|
| 26 | +import mdlaf.components.textpane.MaterialTextPaneUI; |
24 | 27 | import mdlaf.components.togglebutton.MaterialToggleButtonUI;
|
25 | 28 | import mdlaf.components.toolbar.MaterialToolBarUI;
|
26 | 29 | import mdlaf.components.tree.MaterialTreeUI;
|
@@ -59,18 +62,9 @@ public class MaterialLookAndFeel extends MetalLookAndFeel {
|
59 | 62 | private static final String progressBarUI = MaterialProgressBarUI.class.getCanonicalName();
|
60 | 63 | private static final String radioButtonMenuItemUI = MaterialRadioButtonMenuItemUI.class.getCanonicalName();
|
61 | 64 | 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 |
| - } |
| 65 | + private static final String textPaneUI = MaterialTextPaneUI.class.getCanonicalName(); |
| 66 | + private static final String editorPane = MaterialTextPaneUI.class.getCanonicalName(); |
| 67 | + private static final String separatorUI = MaterialSeparatorUI.class.getCanonicalName(); |
74 | 68 |
|
75 | 69 | @Override
|
76 | 70 | public String getName () {
|
@@ -124,6 +118,9 @@ protected void initClassDefaults (UIDefaults table) {
|
124 | 118 | table.put("ProgressBarUI", progressBarUI);
|
125 | 119 | table.put("RadioButtonMenuItemUI", radioButtonMenuItemUI);
|
126 | 120 | table.put("CheckBoxMenuItemUI", checkBoxMenuItemUI);
|
| 121 | + table.put("TextPaneUI", textPaneUI); |
| 122 | + table.put("EditorPaneUI", editorPane); |
| 123 | + table.put("SeparatorUI", separatorUI); |
127 | 124 | }
|
128 | 125 |
|
129 | 126 | @Override
|
@@ -292,5 +289,20 @@ protected void initComponentDefaults (UIDefaults table) {
|
292 | 289 | table.put ("CheckBoxMenuItem.border", BorderFactory.createEmptyBorder (5, 5, 5, 5));
|
293 | 290 | table.put("CheckBoxMenuItem.checkIcon", new ImageIcon(MaterialImages.UNCHECKED_BOX));
|
294 | 291 | table.put("CheckBoxMenuItem.selectedCheckIcon", new ImageIcon(MaterialImages.PAINTED_CHECKED_BOX));
|
| 292 | + |
| 293 | + table.put("TextPane.border", MaterialBorders.DEFAULT_SHADOW_BORDER); |
| 294 | + table.put("TextPane.background", MaterialColors.GRAY_50); |
| 295 | + table.put("TextPane.selectionBackground", MaterialColors.LIGHT_BLUE_200); |
| 296 | + table.put("TextPane.inactiveForeground", MaterialColors.GRAY_500); |
| 297 | + table.put("TextPane.font", MaterialFonts.BLACK_ITALIC); |
| 298 | + |
| 299 | + table.put("EditorPane.border", MaterialBorders.DEFAULT_SHADOW_BORDER); |
| 300 | + table.put("EditorPane.background", MaterialColors.GRAY_50); |
| 301 | + table.put("EditorPane.selectionBackground", MaterialColors.LIGHT_BLUE_200); |
| 302 | + table.put("EditorPane.inactiveForeground", MaterialColors.GRAY_500); |
| 303 | + table.put("EditorPane.font", MaterialFonts.BLACK_ITALIC); |
| 304 | + |
| 305 | + table.put("Separator.background", MaterialColors.GRAY_300); |
| 306 | + table.put("Separator.foreground", MaterialColors.GRAY_300); |
295 | 307 | }
|
296 | 308 | }
|
0 commit comments