Dark Mode for GroovyPad

This commit is contained in:
Reinhard Pointner 2019-05-22 18:46:00 +07:00
parent ececb1e645
commit d5c8551761
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package net.filebot.cli;
import static javax.swing.BorderFactory.*;
import static net.filebot.Logging.*;
import static net.filebot.ui.ThemeSupport.*;
import static net.filebot.util.ui.SwingUI.*;
import java.awt.BorderLayout;
@ -50,7 +51,7 @@ public class GroovyPad extends JFrame {
public GroovyPad() throws IOException {
super("Groovy Pad");
RTextScrollPane editorPane = createEditor(Theme.load(Theme.class.getResourceAsStream("themes/eclipse.xml")));
RTextScrollPane editorPane = createEditor(Theme.load(Theme.class.getResourceAsStream(getTheme().isDark() ? "themes/monokai.xml" : "themes/eclipse.xml")));
RTextScrollPane outputPane = createOutputLog(Theme.load(Theme.class.getResourceAsStream("themes/dark.xml")));
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, editorPane, outputPane);