runelite-client: add substance graphite look and feel
This commit is contained in:
@@ -68,6 +68,17 @@
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.pushingpixels</groupId>
|
||||
<artifactId>substance</artifactId>
|
||||
<version>7.0.01</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.pushingpixels</groupId>
|
||||
<artifactId>trident</artifactId>
|
||||
<version>1.4</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>net.runelite</groupId>
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
*/
|
||||
package net.runelite.client;
|
||||
|
||||
import net.runelite.client.game.ItemManager;
|
||||
import com.google.common.eventbus.EventBus;
|
||||
import com.google.common.eventbus.SubscriberExceptionContext;
|
||||
import com.google.gson.Gson;
|
||||
@@ -41,14 +40,19 @@ import java.io.InputStreamReader;
|
||||
import java.util.concurrent.Executors;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JPopupMenu;
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.UnsupportedLookAndFeelException;
|
||||
import joptsimple.OptionParser;
|
||||
import joptsimple.OptionSet;
|
||||
import net.runelite.api.Client;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.account.AccountSession;
|
||||
import net.runelite.client.config.ConfigManager;
|
||||
import net.runelite.client.events.SessionClose;
|
||||
import net.runelite.client.events.SessionOpen;
|
||||
import net.runelite.client.game.ItemManager;
|
||||
import net.runelite.client.menus.MenuManager;
|
||||
import net.runelite.client.plugins.PluginManager;
|
||||
import net.runelite.client.task.Scheduler;
|
||||
@@ -56,6 +60,7 @@ import net.runelite.client.ui.ClientUI;
|
||||
import net.runelite.client.ui.overlay.OverlayRenderer;
|
||||
import net.runelite.client.ui.overlay.infobox.InfoBoxManager;
|
||||
import net.runelite.http.api.account.AccountClient;
|
||||
import org.pushingpixels.substance.api.skin.SubstanceGraphiteLookAndFeel;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -121,6 +126,18 @@ public class RuneLite
|
||||
{
|
||||
SwingUtilities.invokeAndWait(() ->
|
||||
{
|
||||
JFrame.setDefaultLookAndFeelDecorated(true);
|
||||
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
|
||||
|
||||
try
|
||||
{
|
||||
UIManager.setLookAndFeel(new SubstanceGraphiteLookAndFeel());
|
||||
}
|
||||
catch (UnsupportedLookAndFeelException ex)
|
||||
{
|
||||
logger.warn("unable to set look and feel", ex);
|
||||
}
|
||||
|
||||
gui = new ClientUI();
|
||||
|
||||
setupTrayIcon();
|
||||
|
||||
@@ -52,8 +52,8 @@ public class ConfigPanel extends PluginPanel
|
||||
private static final Logger logger = LoggerFactory.getLogger(ConfigPanel.class);
|
||||
|
||||
private static final EmptyBorder BORDER_PADDING = new EmptyBorder(6, 6, 6, 6);
|
||||
private static final int TEXT_FIELD_WIDTH = 12;
|
||||
private static final int SPINNER_FIELD_WIDTH = 10;
|
||||
private static final int TEXT_FIELD_WIDTH = 7;
|
||||
private static final int SPINNER_FIELD_WIDTH = 6;
|
||||
|
||||
private final RuneLite runelite = RuneLite.getRunelite();
|
||||
|
||||
|
||||
@@ -92,8 +92,7 @@ public class HiscorePanel extends PluginPanel
|
||||
setSize(PANEL_WIDTH, PANEL_HEIGHT);
|
||||
setVisible(true);
|
||||
|
||||
input = new JTextField();
|
||||
input.setColumns(16);
|
||||
input = new JTextField(11);
|
||||
add(input);
|
||||
|
||||
lookupButton = new JButton("Lookup");
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 463 B After Width: | Height: | Size: 566 B |
Binary file not shown.
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 365 B |
Binary file not shown.
|
Before Width: | Height: | Size: 634 B After Width: | Height: | Size: 623 B |
Reference in New Issue
Block a user