Make app ribbon y gap smaller for Windows
This commit is contained in:
parent
675878ff55
commit
0c09ea5ce0
@ -304,10 +304,12 @@ public class RocketPanel extends JPanel implements TreeSelectionListener, Change
|
|||||||
|
|
||||||
setPreferredSize(new Dimension(800, 300));
|
setPreferredSize(new Dimension(800, 300));
|
||||||
|
|
||||||
// MacOS has a larger y gap than other OS'es, so this fixes that
|
// MacOS and Windows have a larger y gap than Linux, so this fixes that
|
||||||
int gap = 0;
|
int gap = 0;
|
||||||
if (SystemInfo.getPlatform() == SystemInfo.Platform.MAC_OS) {
|
if (SystemInfo.getPlatform() == SystemInfo.Platform.MAC_OS) {
|
||||||
gap = -10;
|
gap = -10;
|
||||||
|
} else if (SystemInfo.getPlatform() == SystemInfo.Platform.WINDOWS) {
|
||||||
|
gap = -5;
|
||||||
}
|
}
|
||||||
JPanel ribbon = new JPanel(new MigLayout(String.format("inset 0, gapy %d, fill", gap)));
|
JPanel ribbon = new JPanel(new MigLayout(String.format("inset 0, gapy %d, fill", gap)));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user