Make Grand Exchange plugin panel background color consistent
Make Grand Exchange plugin panel background color consistent with rest of RuneLite sidebar plugins.
This commit is contained in:
@@ -59,7 +59,7 @@ class GrandExchangeItemPanel extends JPanel
|
|||||||
layout.setHgap(5);
|
layout.setHgap(5);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
setToolTipText(name);
|
setToolTipText(name);
|
||||||
setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
|
|
||||||
Color background = getBackground();
|
Color background = getBackground();
|
||||||
List<JPanel> panels = new ArrayList<>();
|
List<JPanel> panels = new ArrayList<>();
|
||||||
@@ -72,7 +72,7 @@ class GrandExchangeItemPanel extends JPanel
|
|||||||
{
|
{
|
||||||
for (JPanel panel : panels)
|
for (JPanel panel : panels)
|
||||||
{
|
{
|
||||||
matchComponentBackground(panel, background.brighter());
|
matchComponentBackground(panel, ColorScheme.DARK_GRAY_HOVER_COLOR);
|
||||||
}
|
}
|
||||||
setCursor(new Cursor(Cursor.HAND_CURSOR));
|
setCursor(new Cursor(Cursor.HAND_CURSOR));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,22 +106,22 @@ public class GrandExchangeOfferSlot extends JPanel
|
|||||||
public void mouseEntered(MouseEvent mouseEvent)
|
public void mouseEntered(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
super.mouseEntered(mouseEvent);
|
super.mouseEntered(mouseEvent);
|
||||||
container.setBackground(ColorScheme.MEDIUM_GRAY_COLOR.brighter());
|
container.setBackground(ColorScheme.DARKER_GRAY_HOVER_COLOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void mouseExited(MouseEvent mouseEvent)
|
public void mouseExited(MouseEvent mouseEvent)
|
||||||
{
|
{
|
||||||
super.mouseExited(mouseEvent);
|
super.mouseExited(mouseEvent);
|
||||||
container.setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
container.setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
container.setLayout(cardLayout);
|
container.setLayout(cardLayout);
|
||||||
container.setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
container.setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
|
|
||||||
JPanel faceCard = new JPanel();
|
JPanel faceCard = new JPanel();
|
||||||
faceCard.setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
faceCard.setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
faceCard.setLayout(new BorderLayout());
|
faceCard.setLayout(new BorderLayout());
|
||||||
faceCard.addMouseListener(ml);
|
faceCard.addMouseListener(ml);
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ public class GrandExchangeOfferSlot extends JPanel
|
|||||||
switchFaceViewIcon.setPreferredSize(new Dimension(30, 45));
|
switchFaceViewIcon.setPreferredSize(new Dimension(30, 45));
|
||||||
|
|
||||||
JPanel offerFaceDetails = new JPanel();
|
JPanel offerFaceDetails = new JPanel();
|
||||||
offerFaceDetails.setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
offerFaceDetails.setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
offerFaceDetails.setLayout(new GridLayout(2, 1, 0, 2));
|
offerFaceDetails.setLayout(new GridLayout(2, 1, 0, 2));
|
||||||
|
|
||||||
offerFaceDetails.add(itemName);
|
offerFaceDetails.add(itemName);
|
||||||
@@ -155,7 +155,7 @@ public class GrandExchangeOfferSlot extends JPanel
|
|||||||
faceCard.add(switchFaceViewIcon, BorderLayout.EAST);
|
faceCard.add(switchFaceViewIcon, BorderLayout.EAST);
|
||||||
|
|
||||||
JPanel detailsCard = new JPanel();
|
JPanel detailsCard = new JPanel();
|
||||||
detailsCard.setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
detailsCard.setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
detailsCard.setLayout(new BorderLayout());
|
detailsCard.setLayout(new BorderLayout());
|
||||||
detailsCard.setBorder(new EmptyBorder(0, 15, 0, 0));
|
detailsCard.setBorder(new EmptyBorder(0, 15, 0, 0));
|
||||||
detailsCard.addMouseListener(ml);
|
detailsCard.addMouseListener(ml);
|
||||||
@@ -175,7 +175,7 @@ public class GrandExchangeOfferSlot extends JPanel
|
|||||||
switchDetailsViewIcon.setPreferredSize(new Dimension(30, 45));
|
switchDetailsViewIcon.setPreferredSize(new Dimension(30, 45));
|
||||||
|
|
||||||
JPanel offerDetails = new JPanel();
|
JPanel offerDetails = new JPanel();
|
||||||
offerDetails.setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
offerDetails.setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
offerDetails.setLayout(new GridLayout(2, 1));
|
offerDetails.setLayout(new GridLayout(2, 1));
|
||||||
|
|
||||||
offerDetails.add(itemPrice);
|
offerDetails.add(itemPrice);
|
||||||
|
|||||||
@@ -102,8 +102,8 @@ class GrandExchangeSearchPanel extends JPanel
|
|||||||
|
|
||||||
searchBar.setIcon(IconTextField.Icon.SEARCH);
|
searchBar.setIcon(IconTextField.Icon.SEARCH);
|
||||||
searchBar.setPreferredSize(new Dimension(100, 30));
|
searchBar.setPreferredSize(new Dimension(100, 30));
|
||||||
searchBar.setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
searchBar.setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
searchBar.setHoverBackgroundColor(ColorScheme.MEDIUM_GRAY_COLOR.brighter());
|
searchBar.setHoverBackgroundColor(ColorScheme.DARK_GRAY_HOVER_COLOR);
|
||||||
searchBar.addActionListener(e -> executor.execute(() -> priceLookup(false)));
|
searchBar.addActionListener(e -> executor.execute(() -> priceLookup(false)));
|
||||||
|
|
||||||
searchItemsPanel.setLayout(new GridBagLayout());
|
searchItemsPanel.setLayout(new GridBagLayout());
|
||||||
@@ -164,7 +164,7 @@ class GrandExchangeSearchPanel extends JPanel
|
|||||||
|
|
||||||
// Input is not empty, add searching label
|
// Input is not empty, add searching label
|
||||||
searchItemsPanel.removeAll();
|
searchItemsPanel.removeAll();
|
||||||
searchBar.setBackground(ColorScheme.MEDIUM_GRAY_COLOR);
|
searchBar.setBackground(ColorScheme.DARKER_GRAY_COLOR);
|
||||||
searchBar.setEditable(false);
|
searchBar.setEditable(false);
|
||||||
searchBar.setIcon(IconTextField.Icon.LOADING);
|
searchBar.setIcon(IconTextField.Icon.LOADING);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user