mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-27 05:30:47 +00:00
Issue #292 Change background color in SWF preview
This commit is contained in:
@@ -37,6 +37,7 @@ import javax.swing.KeyStroke;
|
||||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.UnsupportedLookAndFeelException;
|
||||
import javax.swing.plaf.basic.BasicColorChooserUI;
|
||||
import org.pushingpixels.flamingo.api.common.icon.ImageWrapperResizableIcon;
|
||||
import org.pushingpixels.substance.api.SubstanceConstants;
|
||||
import org.pushingpixels.substance.api.SubstanceLookAndFeel;
|
||||
@@ -49,6 +50,8 @@ import org.pushingpixels.substance.api.skin.SubstanceOfficeBlue2007LookAndFeel;
|
||||
*/
|
||||
public class View {
|
||||
|
||||
public static Color swfBackgroundColor = Color.white;
|
||||
|
||||
/**
|
||||
* Sets windows Look and Feel
|
||||
*/
|
||||
@@ -69,7 +72,9 @@ public class View {
|
||||
UIManager.put(SubstanceLookAndFeel.COLORIZATION_FACTOR, 0.999);//This works for not changing labels color and not changing Dialogs title
|
||||
UIManager.put("Tree.expandedIcon", getIcon("expand16"));
|
||||
UIManager.put("Tree.collapsedIcon", getIcon("collapse16"));
|
||||
|
||||
UIManager.put("ColorChooserUI", BasicColorChooserUI.class.getName());
|
||||
UIManager.put("ColorChooser.swatchesRecentSwatchSize", new Dimension(20, 20));
|
||||
UIManager.put("ColorChooser.swatchesSwatchSize", new Dimension(20, 20));
|
||||
UIManager.put("RibbonApplicationMenuPopupPanelUI", MyRibbonApplicationMenuPopupPanelUI.class.getName());
|
||||
UIManager.put("RibbonApplicationMenuButtonUI", MyRibbonApplicationMenuButtonUI.class.getName());
|
||||
UIManager.put("ProgressBarUI", MyProgressBarUI.class.getName());
|
||||
|
||||
Reference in New Issue
Block a user