mirror of
https://github.com/ME1312/SubServers-2.git
synced 2025-02-08 07:41:27 +01:00
Minor Fixes
This commit is contained in:
parent
86647430de
commit
9aeb835ed7
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user