forked from External/mage
GUI, preferences: reworked size settings:
- added size settings for player's panel size (closes #12455, closes #12451, closes #5605); - size settings can be edit by slider or by text edit; - size settings for fonts has preview button with real text sample; - improved some tabs and hints for better UX; - improved GUI rendering performance;
This commit is contained in:
parent
921e656e3c
commit
1f3fad6594
15 changed files with 3224 additions and 5913 deletions
|
|
@ -131,6 +131,7 @@ public class HoverButton extends JPanel implements MouseListener {
|
|||
|
||||
@Override
|
||||
public void paintComponent(Graphics g) {
|
||||
// must ignore look and fill, so no calls of super.paintComponent(g);
|
||||
Graphics2D g2d = (Graphics2D) g;
|
||||
if (isEnabled()) {
|
||||
if (isHovered || textAlwaysVisible) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue