Skip to content

Commit

Permalink
Fixes bulenkov#13. Thank you markiewb!
Browse files Browse the repository at this point in the history
  • Loading branch information
Revivius committed Jan 22, 2016
1 parent 030b92c commit 0ea7397
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/main/java/com/revivius/nb/darcula/ToolbarXP.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ public void paintComponent(Graphics g) {
int x = 3;
for (int i = 4; i < getHeight() - 4; i += 4) {
//first draw the rectangular highlight below each dot
g.setColor(UIManager.getColor("controlLtHighlight")); //NOI18N
g.setColor(UIManager.getColor("controlLtHighlight").brighter()); //NOI18N
g.fillRect(x + 1, i + 1, 2, 2);
//Get the shadow color. We'll paint the darkest dot first,
//and work our way to the lightest
Color col = UIManager.getColor("controlShadow"); //NOI18N
Color col = UIManager.getColor("controlShadow").brighter(); //NOI18N
g.setColor(col);
//draw the darkest dot
g.drawLine(x + 1, i + 1, x + 1, i + 1);
Expand Down Expand Up @@ -92,14 +92,6 @@ public Dimension getMinimumSize() {
return dim;
}

/**
* @return preferred size
*/
@Override
public Dimension getPreferredSize() {
return new Dimension(GRIP_WIDTH, getParent().getHeight() - 4);
}

@Override
public Dimension getMaximumSize() {
return max;
Expand Down

0 comments on commit 0ea7397

Please sign in to comment.