Skip to content

Commit 78a5237

Browse files
ctruedenclaude
andcommitted
Match new tabs' consoles to the editor theme
The console colors were derived when the tab was constructed, before the editor pane loaded its preferences (and thus its theme). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent cc8f97e commit 78a5237

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/main/java/org/scijava/ui/swing/script/TextEditor.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2149,6 +2149,7 @@ public TextEditorTab open(final File file) {
21492149
tab = new TextEditorTab(this);
21502150
context.inject(tab.editorPane);
21512151
tab.editorPane.loadPreferences();
2152+
tab.applyConsoleColors(); // the theme was just applied to the editor pane
21522153
addDefaultAccelerators(tab.editorPane);
21532154
} else {
21542155
// the Edit menu can only be populated after an editor pane exists, as it reads

0 commit comments

Comments
 (0)