1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-17 22:23:10 +03:00

Restored background color when switching off "external editor" flag in preferences. Fixes #3197

This commit is contained in:
Federico Fissore
2015-05-21 09:37:35 +02:00
parent e8eb06aa17
commit 67b65ddd77

View File

@ -477,14 +477,13 @@ public class Editor extends JFrame implements RunnerListener {
if (external) { if (external) {
// disable line highlight and turn off the caret when disabling // disable line highlight and turn off the caret when disabling
Color color = Theme.getColor("editor.external.bgcolor"); textarea.setBackground(Theme.getColor("editor.external.bgcolor"));
textarea.setBackground(color);
textarea.setHighlightCurrentLine(false); textarea.setHighlightCurrentLine(false);
textarea.setEditable(false); textarea.setEditable(false);
} else { } else {
boolean highlight = PreferencesData.getBoolean("editor.linehighlight"); textarea.setBackground(Theme.getColor("editor.bgcolor"));
textarea.setHighlightCurrentLine(highlight); textarea.setHighlightCurrentLine(PreferencesData.getBoolean("editor.linehighlight"));
textarea.setEditable(true); textarea.setEditable(true);
} }