fix button placement in the CM

This commit is contained in:
Ben Fry
2015-09-22 19:03:35 -04:00
parent a017144d1a
commit 5f401d4fa1
3 changed files with 9 additions and 4 deletions

View File

@@ -181,7 +181,7 @@ class StatusPanel extends JPanel {
BUTTON_WIDTH, BUTTON_WIDTH, BUTTON_WIDTH)
.addComponent(updateButton)
.addComponent(removeButton))
.addGap(16)); // make buttons line up relative to the scrollbar
.addGap(12)); // make buttons line up relative to the scrollbar
layout.setVerticalGroup(layout
.createParallelGroup(GroupLayout.Alignment.LEADING)

View File

@@ -34,7 +34,7 @@ public class UpdateStatusPanel extends StatusPanel {
});
setBackground(new Color(0xebebeb));
layout = new GroupLayout(this);
this.setLayout(layout);
setLayout(layout);
layout.setAutoCreateContainerGaps(true);
layout.setAutoCreateGaps(true);
@@ -43,7 +43,9 @@ public class UpdateStatusPanel extends StatusPanel {
.createSequentialGroup()
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED,
GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)
.addComponent(updateButton, BUTTON_WIDTH, BUTTON_WIDTH, BUTTON_WIDTH));
.addComponent(updateButton, BUTTON_WIDTH, BUTTON_WIDTH, BUTTON_WIDTH)
.addGap(12)); // make button line up relative to the scrollbar
layout.setVerticalGroup(layout.createParallelGroup()
.addComponent(updateButton));
updateButton.setVisible(true);

View File

@@ -84,6 +84,9 @@ X updates tab has ugly horizontal line at top
X CM selected tabs are too tall
X https://github.com/processing/processing/issues/3598
X why the aqua background when opening the window?
X get rid of gross italic subheads on the Updates page
X "update all" is too far too the right
X other buttons were out of whack as well
watcher
X prevent re-prompting users when they say "no" to "sketch modified" message
@@ -170,6 +173,7 @@ _ does it even work for different contrib types?
manager / 3.0 final
_ don't focus the window on the search box on opening
_ status/name/author table header is alternating color
_ area above scroll bar looks like more scroll bar
_ table header is the wrong font
@@ -177,7 +181,6 @@ _ updates panel has the gray across, but nothing above the scrollbar
_ remove focus blue from the scrollable list
_ scrolling "past" top/bottom causes the screen to jiggle (OS X and Trackpad)
_ looks like ContributionListing.getScrollableUnitIncrement() returns early
_ get rid of gross italic subheads on the Updates page
gui / post 3.0