|
1 | 1 | package mdlaf.components.toolbar;
|
2 |
| - |
3 |
| -<<<<<<< refs/remotes/upstream/master |
4 |
| -import mdlaf.resources.MaterialDrawingUtils; |
5 |
| - |
6 |
| -import javax.swing.JComponent; |
7 |
| -import javax.swing.JToolBar; |
8 |
| -import javax.swing.UIManager; |
9 |
| -import javax.swing.plaf.ComponentUI; |
10 |
| -import javax.swing.plaf.basic.BasicToolBarUI; |
11 |
| -import java.awt.Graphics; |
12 |
| - |
13 |
| -public class MaterialToolBarUI extends BasicToolBarUI { |
14 |
| - |
15 |
| - public static ComponentUI createUI (JComponent c) { |
16 |
| - return new MaterialToolBarUI (); |
17 |
| - } |
18 |
| - |
19 |
| - @Override |
20 |
| - public void installUI (JComponent c) { |
21 |
| - super.installUI (c); |
22 |
| - JToolBar toolBar = (JToolBar) c; |
23 |
| - |
24 |
| - toolBar.setFont (UIManager.getFont ("ToolBar.font")); |
25 |
| - toolBar.setBackground (UIManager.getColor ("ToolBar.background")); |
26 |
| - toolBar.setForeground (UIManager.getColor ("ToolBar.foreground")); |
27 |
| - toolBar.setBorder (UIManager.getBorder ("ToolBar.border")); |
28 |
| - |
29 |
| - this.dockingBorderColor = null; |
30 |
| - this.floatingBorderColor = null; |
31 |
| - this.dockingColor = UIManager.getColor ("ToolBar.dockingBackground"); |
32 |
| - this.floatingColor = UIManager.getColor ("ToolBar.floatingBackground"); |
33 |
| - } |
34 |
| - |
35 |
| - @Override |
36 |
| - public void paint (Graphics g, JComponent c) { |
37 |
| - super.paint (MaterialDrawingUtils.getAliasedGraphics (g), c); |
38 |
| -======= |
39 | 2 | import java.awt.Graphics;
|
40 | 3 |
|
41 | 4 | import javax.swing.BorderFactory;
|
@@ -86,6 +49,5 @@ public void installUI(JComponent c) {
|
86 | 49 | @Override
|
87 | 50 | public void paint(Graphics g, JComponent c) {
|
88 | 51 | super.paint(MaterialDrawingUtils.getAliasedGraphics(g), c);
|
89 |
| ->>>>>>> Revert "github conflict resolution" |
90 | 52 | }
|
91 | 53 | }
|
0 commit comments