ui: Local fields

This commit is contained in:
sdburns1998
2019-07-07 22:02:52 +02:00
parent b37f02869f
commit a24f87e738
2 changed files with 6 additions and 10 deletions

View File

@@ -57,9 +57,6 @@ public class MaterialTab extends JLabel
private static final Border UNSELECTED_BORDER = BorderFactory
.createEmptyBorder(5, 10, 5, 10);
/* The tab's containing group */
private final MaterialTabGroup group;
/* The tab's associated content display */
@Getter
private final JComponent content;
@@ -75,7 +72,7 @@ public class MaterialTab extends JLabel
{
super(string);
this.group = group;
/* The tab's containing group */
this.content = content;
if (selected)

View File

@@ -91,8 +91,6 @@ public class OverlayRenderer extends MouseAdapter implements KeyListener
private boolean isResizeable;
private OverlayBounds snapCorners;
// Overlay Fonts
private Font clientFont;
private Font standardFont;
private Font tooltipFont;
private Font interfaceFont;
@@ -115,10 +113,11 @@ public class OverlayRenderer extends MouseAdapter implements KeyListener
private void updateConfig()
{
this.clientFont = runeLiteConfig.clientFont();
this.standardFont = FontManager.getFontFromType(this.clientFont, runeLiteConfig.fontType());
this.tooltipFont = FontManager.getFontFromType(this.clientFont, runeLiteConfig.tooltipFontType());
this.interfaceFont = FontManager.getFontFromType(this.clientFont, runeLiteConfig.interfaceFontType());
// Overlay Fonts
Font clientFont = runeLiteConfig.clientFont();
this.standardFont = FontManager.getFontFromType(clientFont, runeLiteConfig.fontType());
this.tooltipFont = FontManager.getFontFromType(clientFont, runeLiteConfig.tooltipFontType());
this.interfaceFont = FontManager.getFontFromType(clientFont, runeLiteConfig.interfaceFontType());
}
@Subscribe