mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-16 10:55:11 +01:00
Fixed pixel gap in progress bar
This commit is contained in:
parent
899203b710
commit
94b3d7de09
@ -93,15 +93,12 @@ public class SplashScreen extends JFrame {
|
|||||||
@Override
|
@Override
|
||||||
protected void paintComponent(Graphics g) {
|
protected void paintComponent(Graphics g) {
|
||||||
if (g instanceof Graphics2D g2d) {
|
if (g instanceof Graphics2D g2d) {
|
||||||
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
|
|
||||||
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
|
||||||
g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);
|
|
||||||
g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
|
g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
g.setColor(Color.WHITE);
|
g.setColor(Color.WHITE);
|
||||||
g.drawRect(0, 5, this.getWidth(), this.getHeight() - 5);
|
g.fillRect(0, 5, this.getWidth(), this.getHeight() - 5);
|
||||||
g.drawRect(1, 6, this.getWidth() - 2, this.getHeight() - 7);
|
|
||||||
g.setColor(new Color(0, 69, 104));
|
g.setColor(new Color(0, 69, 104));
|
||||||
g.fillRect(2, 7, this.getWidth() - 4, this.getHeight() - 9);
|
g.fillRect(2, 7, this.getWidth() - 4, this.getHeight() - 9);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user