Add mouse hover changes to various ui elements
This commit adds the following with the main aim of improving the overall ui experience: InfoPanel: changes the panels to act more like buttons, they highlight on hover and the cursor changes to a pointer (since they are hyperlinks). NewsFeedPanel: changes the cursor to a pointer on hover to indicate a hyperlink HighscorePanel: changes the buttons below the search bar to highlight on hover to help indicate a clickable element. FarmingPanel: same as above expect for the patch buttons GE Panel: same as above but for the offer and search button ConfigPanel: Changes the cog color on hover to help indicate clickable element.
This commit is contained in:
@@ -288,6 +288,14 @@ public class SwingUtil
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Re-size a BufferedImage to the given dimensions.
|
||||
*
|
||||
* @param image the BufferedImage.
|
||||
* @param newWidth The width to set the BufferedImage to.
|
||||
* @param newHeight The height to set the BufferedImage to.
|
||||
* @return The BufferedImage with the specified dimensions
|
||||
*/
|
||||
private static BufferedImage resizeImage(BufferedImage image, int newWidth, int newHeight)
|
||||
{
|
||||
final Image tmp = image.getScaledInstance(newWidth, newHeight, Image.SCALE_SMOOTH);
|
||||
|
||||
Reference in New Issue
Block a user