mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 07:58:12 +00:00
#447 standard non ribbon interface: advanced settings added to allow switch back:)
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
package com.jpexs.decompiler.flash.gui;
|
||||
|
||||
import com.jpexs.decompiler.flash.configuration.Configuration;
|
||||
import java.util.ResourceBundle;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JRootPane;
|
||||
@@ -30,7 +31,9 @@ public abstract class AppDialog extends JDialog {
|
||||
|
||||
public AppDialog() {
|
||||
View.installEscapeCloseOperation(this);
|
||||
getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
|
||||
if (Configuration.useRibbonInterface.get()) {
|
||||
getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
|
||||
}
|
||||
}
|
||||
|
||||
public String translate(String key) {
|
||||
|
||||
@@ -59,6 +59,7 @@ import javax.swing.JFrame;
|
||||
import javax.swing.JOptionPane;
|
||||
import javax.swing.SwingWorker;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.UnsupportedLookAndFeelException;
|
||||
import javax.swing.filechooser.FileFilter;
|
||||
|
||||
/**
|
||||
@@ -397,6 +398,7 @@ public class Main {
|
||||
mainFrame.setVisible(false);
|
||||
mainFrame = null;
|
||||
}
|
||||
initGui();
|
||||
reloadSWFs();
|
||||
}
|
||||
|
||||
@@ -592,6 +594,12 @@ public class Main {
|
||||
private static void initGui() {
|
||||
if (Configuration.useRibbonInterface.get()) {
|
||||
View.setLookAndFeel();
|
||||
} else {
|
||||
try {
|
||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
||||
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {
|
||||
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
View.execInEventDispatch(new Runnable() {
|
||||
@Override
|
||||
|
||||
@@ -296,6 +296,12 @@ public class MainFrameClassicMenu implements MainFrameMenu, ActionListener {
|
||||
}
|
||||
menuSettings.add(miLanguage);
|
||||
|
||||
JMenuItem advancedSettingsCommandButton = new JMenuItem(translate("menu.advancedsettings.advancedsettings"));
|
||||
advancedSettingsCommandButton.setActionCommand(ACTION_ADVANCED_SETTINGS);
|
||||
advancedSettingsCommandButton.setIcon(View.getIcon("settings16"));
|
||||
advancedSettingsCommandButton.addActionListener(this);
|
||||
menuSettings.add(advancedSettingsCommandButton);
|
||||
|
||||
menuBar.add(menuSettings);
|
||||
JMenu menuHelp = new JMenu(translate("menu.help"));
|
||||
JMenuItem miAbout = new JMenuItem(translate("menu.help.about"));
|
||||
|
||||
Reference in New Issue
Block a user