Skip to content

Commit 831c1d5

Browse files
author
IMS
authored
Merge pull request IrisShaders#26 from JosueGalRe/fix/center-iris-logo
center iris logo on windows
2 parents af0d6ff + 1dc4330 commit 831c1d5

2 files changed

Lines changed: 51 additions & 48 deletions

File tree

src/main/java/net/hypercubemc/iris_installer/NewInstaller.form

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
</NonVisualComponents>
88
<Properties>
99
<Property name="defaultCloseOperation" type="int" value="3"/>
10+
<Property name="resizable" type="boolean" value="false"/>
1011
</Properties>
1112
<SyntheticProperties>
1213
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
@@ -28,35 +29,38 @@
2829
<DimensionLayout dim="0">
2930
<Group type="103" groupAlignment="0" attributes="0">
3031
<Group type="102" alignment="1" attributes="0">
31-
<EmptySpace min="-2" pref="19" max="-2" attributes="0"/>
32-
<Component id="progressBar" max="32767" attributes="0"/>
33-
<EmptySpace type="separate" max="-2" attributes="0"/>
34-
<Component id="installButton" min="-2" pref="171" max="-2" attributes="0"/>
35-
<EmptySpace min="-2" pref="26" max="-2" attributes="0"/>
32+
<EmptySpace pref="196" max="32767" attributes="0"/>
33+
<Component id="irisInstallerLabel" min="-2" max="-2" attributes="0"/>
34+
<EmptySpace min="-2" pref="196" max="-2" attributes="0"/>
3635
</Group>
3736
<Group type="102" attributes="0">
38-
<EmptySpace min="-2" pref="19" max="-2" attributes="0"/>
37+
<EmptySpace min="19" pref="19" max="-2" attributes="0"/>
3938
<Group type="103" groupAlignment="0" attributes="0">
40-
<Component id="installationType" min="-2" max="-2" attributes="0"/>
41-
<Component id="betaSelection" min="-2" max="-2" attributes="0"/>
42-
<Component id="outdatedText2" min="-2" max="-2" attributes="0"/>
43-
<Component id="outdatedText1" min="-2" max="-2" attributes="0"/>
44-
<Component id="gameVersionLabel" min="-2" pref="227" max="-2" attributes="0"/>
45-
<Component id="gameVersionList" min="-2" pref="183" max="-2" attributes="0"/>
46-
<Group type="102" alignment="0" attributes="0">
47-
<Component id="standaloneType" min="-2" max="-2" attributes="0"/>
48-
<EmptySpace type="unrelated" max="-2" attributes="0"/>
49-
<Component id="fabricType" min="-2" max="-2" attributes="0"/>
39+
<Group type="102" alignment="1" attributes="0">
40+
<Component id="progressBar" max="32767" attributes="0"/>
41+
<EmptySpace type="separate" max="-2" attributes="0"/>
42+
<Component id="installButton" min="-2" pref="171" max="-2" attributes="0"/>
43+
<EmptySpace min="-2" pref="26" max="-2" attributes="0"/>
44+
</Group>
45+
<Group type="102" attributes="0">
46+
<Group type="103" groupAlignment="0" attributes="0">
47+
<Component id="installationType" min="-2" max="-2" attributes="0"/>
48+
<Component id="betaSelection" min="-2" max="-2" attributes="0"/>
49+
<Component id="outdatedText2" min="-2" max="-2" attributes="0"/>
50+
<Component id="outdatedText1" min="-2" max="-2" attributes="0"/>
51+
<Component id="gameVersionLabel" min="-2" pref="227" max="-2" attributes="0"/>
52+
<Component id="gameVersionList" min="-2" pref="183" max="-2" attributes="0"/>
53+
<Group type="102" alignment="0" attributes="0">
54+
<Component id="standaloneType" min="-2" max="-2" attributes="0"/>
55+
<EmptySpace type="unrelated" max="-2" attributes="0"/>
56+
<Component id="fabricType" min="-2" max="-2" attributes="0"/>
57+
</Group>
58+
<Component id="installationDirectory" alignment="0" min="-2" max="-2" attributes="0"/>
59+
<Component id="directoryName" alignment="0" min="-2" pref="302" max="-2" attributes="0"/>
60+
</Group>
61+
<EmptySpace max="32767" attributes="0"/>
5062
</Group>
51-
<Component id="installationDirectory" alignment="0" min="-2" max="-2" attributes="0"/>
52-
<Component id="directoryName" alignment="0" min="-2" pref="302" max="-2" attributes="0"/>
5363
</Group>
54-
<EmptySpace pref="242" max="32767" attributes="0"/>
55-
</Group>
56-
<Group type="102" alignment="0" attributes="0">
57-
<EmptySpace min="-2" pref="161" max="-2" attributes="0"/>
58-
<Component id="irisInstallerLabel" pref="490" max="32767" attributes="0"/>
59-
<EmptySpace max="-2" attributes="0"/>
6064
</Group>
6165
</Group>
6266
</DimensionLayout>
@@ -140,9 +144,6 @@
140144
</AuxValues>
141145
</Component>
142146
<Component class="javax.swing.JProgressBar" name="progressBar">
143-
<Properties>
144-
<Property name="value" type="int" value="50"/>
145-
</Properties>
146147
</Component>
147148
<Component class="javax.swing.JLabel" name="gameVersionLabel">
148149
<Properties>

src/main/java/net/hypercubemc/iris_installer/NewInstaller.java

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ private void initComponents() {
358358
directoryName = new javax.swing.JButton();
359359

360360
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
361+
setResizable(false);
361362

362363
irisInstallerLabel.setFont(new java.awt.Font("sansserif", 0, 36)); // NOI18N
363364
irisInstallerLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iris_profile_icon.png"))); // NOI18N
@@ -404,31 +405,32 @@ private void initComponents() {
404405
layout.setHorizontalGroup(
405406
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
406407
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
407-
.addGap(19, 19, 19)
408-
.addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
409-
.addGap(18, 18, 18)
410-
.addComponent(installButton, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)
411-
.addGap(26, 26, 26))
408+
.addContainerGap(196, Short.MAX_VALUE)
409+
.addComponent(irisInstallerLabel)
410+
.addGap(196, 196, 196))
412411
.addGroup(layout.createSequentialGroup()
413412
.addGap(19, 19, 19)
414413
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
415-
.addComponent(installationType)
416-
.addComponent(betaSelection)
417-
.addComponent(outdatedText2)
418-
.addComponent(outdatedText1)
419-
.addComponent(gameVersionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)
420-
.addComponent(gameVersionList, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
414+
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
415+
.addComponent(progressBar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
416+
.addGap(18, 18, 18)
417+
.addComponent(installButton, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)
418+
.addGap(26, 26, 26))
421419
.addGroup(layout.createSequentialGroup()
422-
.addComponent(standaloneType)
423-
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
424-
.addComponent(fabricType))
425-
.addComponent(installationDirectory)
426-
.addComponent(directoryName, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE))
427-
.addContainerGap(242, Short.MAX_VALUE))
428-
.addGroup(layout.createSequentialGroup()
429-
.addGap(161, 161, 161)
430-
.addComponent(irisInstallerLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 490, Short.MAX_VALUE)
431-
.addContainerGap())
420+
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
421+
.addComponent(installationType)
422+
.addComponent(betaSelection)
423+
.addComponent(outdatedText2)
424+
.addComponent(outdatedText1)
425+
.addComponent(gameVersionLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)
426+
.addComponent(gameVersionList, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE)
427+
.addGroup(layout.createSequentialGroup()
428+
.addComponent(standaloneType)
429+
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
430+
.addComponent(fabricType))
431+
.addComponent(installationDirectory)
432+
.addComponent(directoryName, javax.swing.GroupLayout.PREFERRED_SIZE, 302, javax.swing.GroupLayout.PREFERRED_SIZE))
433+
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
432434
);
433435
layout.setVerticalGroup(
434436
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

0 commit comments

Comments
 (0)