Automattic / simplenote-electron

Simplenote for Web, Windows, and Linux
https://app.simplenote.com
GNU General Public License v2.0
4.78k stars 557 forks source link

Cursor Not Visible on Windows 10 High Contrast Mode #3051

Open erricgunawan opened 2 years ago

erricgunawan commented 2 years ago

After a change to the rendering engine a few months ago, the cursor is invisible on the Windows 10 Simplenote app when Windows High Contrast Mode is enabled (LShift+LAlt+PrtSc). Disabling HCM fixes the issue.

This also occurs on the web version in Chromium builds and the solution is changing the #forced-colors flag to disabled.

Expected

Cursor should be visible in the HCM (High Contrast Mode).

Observed

Cursor is not visible.

Reproduced

  1. Enable High Contrast Mode (LShift+LAlt+PrtSc) on Windows 10
  2. Observe the cursor

Where did you see the bug

It occurs on all versions of Windows 10 (at least since v1903) when enabling High Contrast Mode (LAlt+LShift+PrtScn) It doesn't occur on Simplenote v. 2.11.0 It occurs on newer versions such as 2.21.0 with the new rendering engine

On Chromium browsers such as Google Chrome and Vivaldi, the solution is setting the #forced-colors flag to disabled.

Chromium changed its text rendering engine in 2020, and it became necessary to change the flag with HCM enabled. There's an assumption that Simplenote might now use this engine.

Report from 4552849-zen

angelinaDW commented 2 years ago

Still happening as of 7/29/2022. Highlighting text doesn't work either.

erricgunawan commented 7 months ago

Possibly also happens in Windows 11 (report from Forum):

Cursor Windows 11 Contrast Theme Not Visible

… the Simplenote desktop app for Windows 11 is not compatible with the contrast theme I am using; which I don’t believe to be special in any way. The following incompatibilities occur, in order of importance:

The cursor is black against a black background, i.e. invisible.

The menu bar is white, not black or grey as is usual with contrast windows

To reproduce, enable an accessibility contrast theme with black background and use Simplenote on Windows 11. Observe the black cursor and see that it’s not visible. Then look at the menu bar and see that it’s white which is not only jarring to the eye but also makes the green text (that I happen to be using) low-contrast and hard to read.

Please make the cursor the same color as the font, as Google Chrome does (Google implements high contrast compatibility to an industry-leading degree), and also change the color of the menu bar to be more high contrast, preferably dark when using a dark contrast theme.

Screenshot:

low-contrast menu bar; impossible to screenshot an invisible cursor.