Skip to content

Commit 9622af8

Browse files
author
Federico Fissore
committed
Preferences: nicer icon button for additional boards support urls
1 parent 6848614 commit 9622af8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

app/src/cc/arduino/view/preferences/Preferences.form

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
<EmptySpace max="-2" attributes="0"/>
4848
<Component id="additionalBoardsManagerField" min="-2" pref="500" max="-2" attributes="0"/>
4949
<EmptySpace max="-2" attributes="0"/>
50-
<Component id="extendedAdditionalUrlFieldWindow" min="-2" pref="36" max="-2" attributes="0"/>
50+
<Component id="extendedAdditionalUrlFieldWindow" min="-2" max="-2" attributes="0"/>
5151
</Group>
5252
<Group type="102" attributes="0">
5353
<Group type="103" groupAlignment="0" attributes="0">
@@ -130,7 +130,7 @@
130130
<Component id="additionalBoardsManagerLabel" alignment="3" min="-2" max="-2" attributes="0"/>
131131
<Component id="additionalBoardsManagerField" alignment="3" min="-2" max="-2" attributes="0"/>
132132
</Group>
133-
<Component id="extendedAdditionalUrlFieldWindow" min="-2" pref="27" max="-2" attributes="0"/>
133+
<Component id="extendedAdditionalUrlFieldWindow" min="-2" max="-2" attributes="0"/>
134134
</Group>
135135
<EmptySpace max="-2" attributes="0"/>
136136
<Component id="morePreferencesLabel" min="-2" max="-2" attributes="0"/>
@@ -292,6 +292,9 @@
292292
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
293293
<Connection code="new ImageIcon(Base.getThemeImage(&quot;newwindow.gif&quot;, this))" type="code"/>
294294
</Property>
295+
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
296+
<Insets value="[1, 1, 1, 1]"/>
297+
</Property>
295298
</Properties>
296299
<Events>
297300
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="extendedAdditionalUrlFieldWindowActionPerformed"/>

app/src/cc/arduino/view/preferences/Preferences.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
275275
additionalBoardsManagerField.setToolTipText(_("Enter a comma separated list of urls"));
276276

277277
extendedAdditionalUrlFieldWindow.setIcon(new ImageIcon(Base.getThemeImage("newwindow.gif", this)));
278+
extendedAdditionalUrlFieldWindow.setMargin(new java.awt.Insets(1, 1, 1, 1));
278279
extendedAdditionalUrlFieldWindow.addActionListener(new java.awt.event.ActionListener() {
279280
public void actionPerformed(java.awt.event.ActionEvent evt) {
280281
extendedAdditionalUrlFieldWindowActionPerformed(evt);
@@ -360,7 +361,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
360361
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
361362
.addComponent(additionalBoardsManagerField, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE)
362363
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
363-
.addComponent(extendedAdditionalUrlFieldWindow, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
364+
.addComponent(extendedAdditionalUrlFieldWindow))
364365
.addGroup(layout.createSequentialGroup()
365366
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
366367
.addComponent(sketchbookLocationLabel)
@@ -425,7 +426,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
425426
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
426427
.addComponent(additionalBoardsManagerLabel)
427428
.addComponent(additionalBoardsManagerField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
428-
.addComponent(extendedAdditionalUrlFieldWindow, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))
429+
.addComponent(extendedAdditionalUrlFieldWindow))
429430
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
430431
.addComponent(morePreferencesLabel)
431432
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)

0 commit comments

Comments
 (0)