forked from External/mage
Change all line endings to LF
This commit is contained in:
parent
13d9a56b7a
commit
430ae503c7
17069 changed files with 1263498 additions and 1263497 deletions
|
|
@ -1,30 +1,30 @@
|
|||
package mage.client.components;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.plaf.synth.Region;
|
||||
import javax.swing.plaf.synth.SynthStyle;
|
||||
import javax.swing.plaf.synth.SynthStyleFactory;
|
||||
|
||||
/**
|
||||
* Class makes {@link JInternalFrame} translucent background possible.
|
||||
* This class provides fix that makes setOpaque(false) and setBackgroundColor(any color) working,
|
||||
* especially for Nimbus LAF that has great problems with it.
|
||||
*
|
||||
* @version 0.1 16.11.2010
|
||||
* @author nantuko
|
||||
*/
|
||||
public class MageSynthStyleFactory extends SynthStyleFactory {
|
||||
private SynthStyleFactory wrappedFactory;
|
||||
|
||||
public MageSynthStyleFactory(SynthStyleFactory factory) {
|
||||
this.wrappedFactory = factory;
|
||||
}
|
||||
|
||||
public SynthStyle getStyle(JComponent c, Region id) {
|
||||
SynthStyle s = wrappedFactory.getStyle(c, id);
|
||||
if (id == Region.INTERNAL_FRAME) {
|
||||
s = new TranslucentSynthSytle(s);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
package mage.client.components;
|
||||
|
||||
import javax.swing.JComponent;
|
||||
import javax.swing.plaf.synth.Region;
|
||||
import javax.swing.plaf.synth.SynthStyle;
|
||||
import javax.swing.plaf.synth.SynthStyleFactory;
|
||||
|
||||
/**
|
||||
* Class makes {@link JInternalFrame} translucent background possible.
|
||||
* This class provides fix that makes setOpaque(false) and setBackgroundColor(any color) working,
|
||||
* especially for Nimbus LAF that has great problems with it.
|
||||
*
|
||||
* @version 0.1 16.11.2010
|
||||
* @author nantuko
|
||||
*/
|
||||
public class MageSynthStyleFactory extends SynthStyleFactory {
|
||||
private SynthStyleFactory wrappedFactory;
|
||||
|
||||
public MageSynthStyleFactory(SynthStyleFactory factory) {
|
||||
this.wrappedFactory = factory;
|
||||
}
|
||||
|
||||
public SynthStyle getStyle(JComponent c, Region id) {
|
||||
SynthStyle s = wrappedFactory.getStyle(c, id);
|
||||
if (id == Region.INTERNAL_FRAME) {
|
||||
s = new TranslucentSynthSytle(s);
|
||||
}
|
||||
return s;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue