We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8eb06a commit 67b65ddCopy full SHA for 67b65dd
app/src/processing/app/Editor.java
@@ -477,14 +477,13 @@ public void applyPreferences() {
477
478
if (external) {
479
// disable line highlight and turn off the caret when disabling
480
- Color color = Theme.getColor("editor.external.bgcolor");
481
- textarea.setBackground(color);
+ textarea.setBackground(Theme.getColor("editor.external.bgcolor"));
482
textarea.setHighlightCurrentLine(false);
483
textarea.setEditable(false);
484
485
} else {
486
- boolean highlight = PreferencesData.getBoolean("editor.linehighlight");
487
- textarea.setHighlightCurrentLine(highlight);
+ textarea.setBackground(Theme.getColor("editor.bgcolor"));
+ textarea.setHighlightCurrentLine(PreferencesData.getBoolean("editor.linehighlight"));
488
textarea.setEditable(true);
489
}
490
0 commit comments