Made a hack for Nimbus LAF to add transparency to JInternalFrames. Updated CombatDialog. Updated Mage-Theme-Plugin (jar) with background. Fixed "Games played:" title length, so game count can be seen for big numbers.

This commit is contained in:
magenoxx 2010-11-16 18:31:10 +00:00
parent c6ff81e619
commit a731fba667
7 changed files with 161 additions and 3 deletions

View file

@ -54,9 +54,11 @@ import javax.swing.JOptionPane;
import javax.swing.JToolBar.Separator;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.plaf.synth.SynthLookAndFeel;
import mage.cards.Card;
import mage.cards.ExpansionSet;
import mage.client.components.MageSynthStyleFactory;
import mage.client.dialog.AboutDialog;
import mage.client.dialog.CombatDialog;
import mage.client.dialog.ConnectDialog;
@ -111,6 +113,8 @@ public class MageFrame extends javax.swing.JFrame {
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
MageSynthStyleFactory f = new MageSynthStyleFactory(SynthLookAndFeel.getStyleFactory());
SynthLookAndFeel.setStyleFactory(f);
} catch (Exception ex) {
logger.log(Level.SEVERE, null, ex);
}
@ -152,11 +156,11 @@ public class MageFrame extends javax.swing.JFrame {
if (Plugins.getInstance().isCounterPluginLoaded()) {
int i = Plugins.getInstance().getGamesPlayed();
JLabel label = new JLabel(" Games played: " + String.valueOf(i));
JLabel label = new JLabel(" Games played: " + String.valueOf(i));
desktopPane.add(label);
label.setVisible(true);
label.setForeground(Color.white);
label.setBounds(0, 0, 100, 30);
label.setBounds(0, 0, 180, 30);
}
}