Description
Describe the problem
Arduino IDE has a "Suggest" (AKA autocomplete/Intellisense) feature. When triggered, a menu is displayed offering suggested completions for the line at the cursor position in the editor.
This menu uses several colors to convey information, including:
- The part of the suggestion text that has already been written in the editor is indicated by a special text foreground color
- The item in the suggestion list menu currently selected is indicated by a special background color
🐛 When the "Light" theme is in use, the light blue color used by the former has very poor contrast against the light teal color used by the latter.
To reproduce
- Select File > Preferences from the Arduino IDE menus.
- Select "Light" from the "Theme" menu in the "Preferences" dialog.
- Click the "OK" button.
- Select Tools > Board > Arduino UNO from the Arduino IDE menus.
- Type
delay
on a line in the editor. - Press the Ctrl+Space keyboard shortcut ("Trigger Suggest).
🐛 The delay
text in the selected suggestion menu item is very difficult to read due to poor contrast:
Expected behavior
All foreground colors used by officially supported themes have good contrast against all possible background colors for that element.
Arduino IDE version
Operating system
- Windows
- macOS
Operating system version
- Windows 11
- macOS Sonoma
Additional context
I bisected the regression to 9a6a457 / #2144 (the fault does not occur when using the build from the previous commit e17472e)
I noticed that the fault does not occur on the first run after clearing the "user data" folder:
-
Select File > Quit (or Arduino > Quit Arduino for macOS users) from the Arduino IDE menus if it is running.
-
Rename or delete the "user data" folder, which is located at the following path:
- Windows:
(where
C:\Users\<username>\AppData\Roaming\arduino-ide\
<username>
is your Windows username)
❗ If looking for it with your file manager or command line, note that theAppData
folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items". - Linux:
(where
/home/<username>/.config/arduino-ide/
<username>
is your Linux username)
❗ The.config
folder may be hidden by default in your file manager and terminal. - macOS:
(where
/Users/<username>/Library/Application Support/arduino-ide/
<username>
is your macOS username)
❗ TheLibrary
folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
⚠ Please be very careful when deleting things from your computer. When in doubt, back up!
- Windows:
-
Start Arduino IDE.
-
Perform the steps described in the "To reproduce" section of this report.
🙂 The colors have good contrast, as was the case when using versions of Arduino IDE prior to the regression. -
Select File > Quit from the Arduino IDE menus
-
Start Arduino IDE.
-
Perform the steps described in the "To reproduce" section of this report.
🐛 The colors now have poor contrast.
Originally reported by @ubidefeo
Workaround
Select a different theme in the Arduino IDE preferences.
Additional reports
- Context tips impossible to read because of text & background colours combination #2629
- https://forum.arduino.cc/t/variable-info-box/1253174/7
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details