arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.3k stars 390 forks source link

Serial Monitor control icon background color does not reflect status when using Theia themes #1053

Closed per1234 closed 2 years ago

per1234 commented 2 years ago

Describe the problem

The behavior of the Arduino IDE's Serial Monitor can be controlled by the user via icons on the toolbar:

The first two of these are toggles, where they alternate between an enabled and a disabled state on each click.

The current state of those two controls is indicated by coloration, most prominently by the background color (the foreground color does change, but almost imperceptibly).

πŸ› When using the "Dark (Theia)" or "Light (Theia)" themes in the Arduino IDE, the background color of the icon no longer changes to indicate its state.

Icons enabled and disabled coloration with "Dark (Theia)" theme in Arduino IDE 2.0.0-rc6-snapshot-b8c718c:

image

(note the gray background of the "Toggle Autoscroll" indicates it is enabled, while the black background of "Toggle Timestamp" indicates it is disabled)

Icons enabled and disabled coloration with "Dark (Theia)" theme in Arduino IDE 2.0.0-rc7:

image

(note the "Toggle Autoscroll" icon has a black background even though it is enabled)

To reproduce

  1. Select File > Preferences... from the Arduino IDE menus.
  2. Select "Dark (Theia)" from the "Theme" menu.
  3. Click the OK button.
  4. Select Tools > Serial Monitor from the Arduino IDE menus to open the "Serial Monitor" view, if it is not already open.
  5. Click on the "Toggle Autoscroll" and "Toggle Timestamp" toolbar icons. πŸ› The background color does not change.
  6. Select File > Preferences... from the Arduino IDE menus.
  7. Select "Light (Theia)" from the "Theme" menu.
  8. Click the OK button.
  9. Click on the "Toggle Autoscroll" and "Toggle Timestamp" toolbar icons. πŸ› The background color does not change.

Expected behavior

Serial Monitor control icon background color reflects the state.

Arduino IDE version

Original report

2.0.0-rc7

Last verified with

2.0.0-rc8-snapshot-f4a68e7

Operating system

Windows, Linux

Operating system version

Windows 10, Ubuntu 20.04

Additional context

I bisected the introduction of the issue to 1ae60ec9bcd8a9941285849dcb7c914bd60b69d3 (does not occur when using the build for b8c718ce9e53db81cffa5d4b32b61efc51ac1950).


Originally reported at https://forum.arduino.cc/t/monitor-toggle-autoscroll/1001575


The issue does not affect the other themes ("High Contrast (Theia)", "Light (Arduino)", "Dark (Arduino)")

Issue checklist

per1234 commented 2 years ago

Closing as declined because the "Dark (Theia)" and "Light (Theia)" themes are no longer supported by Arduino: https://github.com/arduino/arduino-ide/issues/1283