Minor Fixes

This commit is contained in:
ME1312 2017-01-12 16:42:32 -05:00
parent 86647430de
commit 9aeb835ed7
3 changed files with 0 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -228,8 +228,6 @@ public class ConsoleWindow implements SubLogFilter {
}
});
vScroll.getVerticalScrollBar().setBackground(new Color(69, 73, 74));
vScroll.getHorizontalScrollBar().setBackground(new Color(69, 73, 74));
vScroll.getHorizontalScrollBar().addAdjustmentListener(event -> {
if (!eScroll.contains(event.getValue())) {
eScroll.add(event.getValue());
@ -238,7 +236,6 @@ public class ConsoleWindow implements SubLogFilter {
eScroll.remove((Object) event.getValue());
}
});
hScroll.setBackground(new Color(69, 73, 74));
hScroll.addAdjustmentListener(event -> {
if (!eScroll.contains(event.getValue())) {
eScroll.add(event.getValue());
@ -654,17 +651,14 @@ public class ConsoleWindow implements SubLogFilter {
this.radius = radius;
}
public Insets getBorderInsets(Component c) {
return new Insets(this.radius+1, this.radius+1, this.radius+2, this.radius);
}
public boolean isBorderOpaque() {
return true;
}
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
g.setColor(color);
g.drawRoundRect(x, y, width-1, height-1, radius, radius);