Skip to content

Error line editor decorator not visible when using "High Contrast" themes #1271

Open
@per1234

Description

@per1234

Describe the problem

When an error occurs during compilation, the Arduino IDE indicates the related line in the sketch code by changing its background color in the editor (#1064).

🐛 This error line highlight is not visible when using the "Light High Contrast" or "Dark High Contrast" themes.

To reproduce

  1. Select File > Preferences... from the Arduino IDE menus.
  2. Select "Dark High Contrast" from the "Theme" menu.
  3. Click the OK button.
  4. Create a sketch that will produce a compilation error:
    void setup() {}
    
    #error
    
    void loop() {}
  5. Select Sketch > Verify/Compile from the Arduino IDE menus.

🐛 The line related to the compilation error is not highlighted.

image

Expected behavior

Error line is highlighted in editor when using the "High Contrast" themes, as is done with the other themes:

image

Arduino IDE version

Original report

d7f7010

Last verified with

8f8b46f

Operating system

Windows

Operating system version

10

Additional context

I verified that the highlight was missing from the introduction of the feature at 4611381, rather than being a later regression.


Originally reported by @UKHeliBob at https://forum.arduino.cc/t/highlighting-of-errors/1018281

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

Metadata

Metadata

Assignees

Labels

topic: themeRelated to GUI themingtype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions