mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
Updates tab has the line
This commit is contained in:
@@ -261,7 +261,7 @@ public class ContributionManagerDialog {
|
||||
@Override
|
||||
protected void paintComponent(Graphics g) {
|
||||
g.setClip(Toolkit.createRoundRect(0, 0,
|
||||
getWidth(), getHeight()- 2,
|
||||
getWidth(), getHeight(),
|
||||
temp == 0 ? 6 : 0,
|
||||
temp == 3 ? 6 : 0,
|
||||
0, 0));
|
||||
@@ -283,7 +283,7 @@ public class ContributionManagerDialog {
|
||||
@Override
|
||||
protected void paintComponent(Graphics g) {
|
||||
g.setClip(Toolkit.createRoundRect(0, 0,
|
||||
getWidth(), getHeight() - 2,
|
||||
getWidth(), getHeight(),
|
||||
6,
|
||||
6,
|
||||
0, 0));
|
||||
|
||||
@@ -3,6 +3,7 @@ package processing.app.contrib;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.util.Comparator;
|
||||
@@ -52,7 +53,15 @@ public class UpdateContributionTab extends ContributionTab {
|
||||
progressBar = new JProgressBar();
|
||||
progressBar.setVisible(false);
|
||||
buildErrorPanel();
|
||||
panel = new JPanel(false);
|
||||
panel = new JPanel(false){
|
||||
@Override
|
||||
protected void paintComponent(Graphics g) {
|
||||
super.paintComponent(g);
|
||||
g.setColor(new Color(0xe0fffd));
|
||||
g.fillRect(getX(), panel.getY() - ContributionManagerDialog.TAB_HEIGHT - 2 , panel.getWidth(), 2);
|
||||
|
||||
}
|
||||
};
|
||||
loaderLabel = new JLabel(Toolkit.getLibIcon("icons/loader.gif"));
|
||||
loaderLabel.setOpaque(false);
|
||||
loaderLabel.setBackground(Color.WHITE);
|
||||
@@ -68,6 +77,7 @@ public class UpdateContributionTab extends ContributionTab {
|
||||
|
||||
layout.setVerticalGroup(layout
|
||||
.createSequentialGroup()
|
||||
.addGap(2)
|
||||
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
|
||||
.addComponent(loaderLabel)
|
||||
.addComponent(contributionListPanel))
|
||||
|
||||
Reference in New Issue
Block a user