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:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user