ui: Local fields
This commit is contained in:
@@ -57,9 +57,6 @@ public class MaterialTab extends JLabel
|
|||||||
private static final Border UNSELECTED_BORDER = BorderFactory
|
private static final Border UNSELECTED_BORDER = BorderFactory
|
||||||
.createEmptyBorder(5, 10, 5, 10);
|
.createEmptyBorder(5, 10, 5, 10);
|
||||||
|
|
||||||
/* The tab's containing group */
|
|
||||||
private final MaterialTabGroup group;
|
|
||||||
|
|
||||||
/* The tab's associated content display */
|
/* The tab's associated content display */
|
||||||
@Getter
|
@Getter
|
||||||
private final JComponent content;
|
private final JComponent content;
|
||||||
@@ -75,7 +72,7 @@ public class MaterialTab extends JLabel
|
|||||||
{
|
{
|
||||||
super(string);
|
super(string);
|
||||||
|
|
||||||
this.group = group;
|
/* The tab's containing group */
|
||||||
this.content = content;
|
this.content = content;
|
||||||
|
|
||||||
if (selected)
|
if (selected)
|
||||||
|
|||||||
@@ -91,8 +91,6 @@ public class OverlayRenderer extends MouseAdapter implements KeyListener
|
|||||||
private boolean isResizeable;
|
private boolean isResizeable;
|
||||||
private OverlayBounds snapCorners;
|
private OverlayBounds snapCorners;
|
||||||
|
|
||||||
// Overlay Fonts
|
|
||||||
private Font clientFont;
|
|
||||||
private Font standardFont;
|
private Font standardFont;
|
||||||
private Font tooltipFont;
|
private Font tooltipFont;
|
||||||
private Font interfaceFont;
|
private Font interfaceFont;
|
||||||
@@ -115,10 +113,11 @@ public class OverlayRenderer extends MouseAdapter implements KeyListener
|
|||||||
|
|
||||||
private void updateConfig()
|
private void updateConfig()
|
||||||
{
|
{
|
||||||
this.clientFont = runeLiteConfig.clientFont();
|
// Overlay Fonts
|
||||||
this.standardFont = FontManager.getFontFromType(this.clientFont, runeLiteConfig.fontType());
|
Font clientFont = runeLiteConfig.clientFont();
|
||||||
this.tooltipFont = FontManager.getFontFromType(this.clientFont, runeLiteConfig.tooltipFontType());
|
this.standardFont = FontManager.getFontFromType(clientFont, runeLiteConfig.fontType());
|
||||||
this.interfaceFont = FontManager.getFontFromType(this.clientFont, runeLiteConfig.interfaceFontType());
|
this.tooltipFont = FontManager.getFontFromType(clientFont, runeLiteConfig.tooltipFontType());
|
||||||
|
this.interfaceFont = FontManager.getFontFromType(clientFont, runeLiteConfig.interfaceFontType());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
|
|||||||
Reference in New Issue
Block a user