From 77423786d12e3769a85728eabb687bb78b8dac83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 7 Jul 2025 21:27:03 +0200 Subject: [PATCH] Heap widget visibility fixes --- src/com/jpexs/decompiler/flash/gui/AppDialog.java | 2 +- src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/AppDialog.java b/src/com/jpexs/decompiler/flash/gui/AppDialog.java index 1282dd920..0938f0be5 100644 --- a/src/com/jpexs/decompiler/flash/gui/AppDialog.java +++ b/src/com/jpexs/decompiler/flash/gui/AppDialog.java @@ -51,8 +51,8 @@ public abstract class AppDialog extends JDialog { View.installEscapeCloseOperation(this); if (Configuration.useRibbonInterface.get()) { getRootPane().setWindowDecorationStyle(JRootPane.FRAME); + SubstanceLookAndFeel.setWidgetVisible(this.rootPane, false, SubstanceConstants.SubstanceWidgetType.TITLE_PANE_HEAP_STATUS); } - SubstanceLookAndFeel.setWidgetVisible(this.rootPane, false, SubstanceConstants.SubstanceWidgetType.TITLE_PANE_HEAP_STATUS); } public ResourceBundle getResourceBundle() { diff --git a/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java b/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java index 72456d052..a6e30fcdb 100644 --- a/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java +++ b/src/com/jpexs/decompiler/flash/gui/ErrorLogFrame.java @@ -57,10 +57,13 @@ import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; +import javax.swing.JRootPane; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JToggleButton; import javax.swing.filechooser.FileFilter; +import org.pushingpixels.substance.api.SubstanceConstants; +import org.pushingpixels.substance.api.SubstanceLookAndFeel; /** * @author JPEXS @@ -231,6 +234,10 @@ public class ErrorLogFrame extends AppFrame { } }; handler.setLevel(Level.WARNING); + + if (Configuration.useRibbonInterface.get()) { + SubstanceLookAndFeel.setWidgetVisible(this.rootPane, false, SubstanceConstants.SubstanceWidgetType.TITLE_PANE_HEAP_STATUS); + } } public void clearLog() {