|
@@ -88,12 +88,18 @@ public class AddonCell extends JPanel implements AddonToggleListener {
|
88
|
88
|
name.setFont(name.getFont().deriveFont(Font.BOLD));
|
89
|
89
|
status.setForeground(foreground);
|
90
|
90
|
|
|
91
|
+ final int initialPadding;
|
|
92
|
+ if (info.getPluginInfo().getMetaData().getParent() == null) {
|
|
93
|
+ initialPadding = 20;
|
|
94
|
+ } else {
|
|
95
|
+ initialPadding = 30;
|
|
96
|
+ }
|
91
|
97
|
add(icon, "gaptop rel, gapbottom rel, gapleft rel, "
|
92
|
|
- + "wmin 20, wmax 20");
|
93
|
|
- add(name, "gaptop rel, gapbottom rel, "
|
94
|
|
- + "wmin 50% - 20, wmax 50% - 20");
|
95
|
|
- add(status, "gaptop rel, gapbottom rel, gapright rel, "
|
96
|
|
- + "wmin 50% - 20, wmax 50% - 20");
|
|
98
|
+ + "wmin " + initialPadding + ", wmax " + initialPadding);
|
|
99
|
+ add(name, "gaptop rel, gapbottom rel, " + "wmin 50% - "
|
|
100
|
+ + initialPadding + ", wmax 50% - " + initialPadding);
|
|
101
|
+ add(status, "gaptop rel, gapbottom rel, gapright rel, " + "wmin 50% - "
|
|
102
|
+ + initialPadding + ", wmax 50% - " + initialPadding);
|
97
|
103
|
add(new JSeparator(), "newline, spanx, growx, pushx");
|
98
|
104
|
}
|
99
|
105
|
|