5

Leading on from the question Can I change font Color and/or Type for IDE 1.5.6r2?, in 1.6.0, or 1.6.11 it does not seem to be possible to change console.color or console.error.color. To be precise, you can change the settings in the preferences.txt2 file, but they appear to be ignored when the IDE is restarted. Have these become hard coded? I see from the preference.txt example file that

# Some colors have been hardcoded into the source in app/ in order to ensure
# consistency with the images distributed and stored with the application.
# They have been commented out below so that users who install an old
# version of the software will not get incorrect colors left-over from this
# config file.

However, the settings to which I refer are not commented out, and so would led me to believe that they can be changed. Orange text on black is just horrific to read.

For example:

console.error.color=#FFF000
console.color=#FFCCCC

but I still get white/orange(red?) text for the output and error messages respectively.

I am making the edits while the Arduino IDE is not running.


1 In 1.6.3 the ignored console.color etc. lines appear to have been removed from the preferences.txt file.

2 C:\Users\username\AppData\Roaming\Arduino15\preferences.txt

asked Mar 17, 2015 at 18:41

2 Answers 2

10

It turns out that the theme.txt configuration file is not located alongside the preferences.txt file, but alongside/under the Arduino application's .jar files. Thus, for the current version (1.6.3):

  • on OS X, .../Arduino-1.6.3.app/Contents/Java/lib/theme/theme.txt
  • on Win7, C:\Program Files\Arduino\lib\theme\theme.txt
  • on Linux, .../arduino-1.6.3/lib/theme/theme.txt
  • on Windows 10, when installed as an App, C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\lib\theme\theme.txt, however it does not seem possible to edit it - it can be opened in notepad++ but a save fails.

See an associated Github issue, IDE Background and print color options needed, for a little more discussion.

answered Apr 10, 2015 at 13:11
4
  • Thanks for that. BTW, the Windows path is C:\Program Files\Arduino\lib\theme\theme.txt. It does beg the question why are the console.error and console.color lines in the preferences.txt file if they are ignored. The Arduino IDE truly is a shockingly terrible piece of software. However, having said that, I notice that in version 1.6.3 the lines appear to have been removed. Commented Apr 10, 2015 at 16:25
  • If you've put those lines in preferences.txt (as I did), then they'll still be there after the IDE has read and re-dumped the properties, even though the IDE ignores them. Myself, I don't much like the IDE editor, so I use an external editor (setting the appropriate preference), and just use the IDE to compile and upload – for that, for me, it works well enough. Anyone out there who can add the path to the theme file under Linux? Commented Apr 10, 2015 at 18:41
  • I've added the Windows and Linux paths to your answer. Hope you don't mind. Commented Apr 11, 2015 at 11:09
  • @Greenonline Looks great! Commented Apr 11, 2015 at 20:49
2
Greenonline
3,1527 gold badges36 silver badges48 bronze badges
answered Sep 13, 2018 at 8:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.