Page MenuHome GnuPG

pinentry-qt: Show passphrase icon nearly invisible in dark mode and high contrast
Closed, ResolvedPublic

Description

In dark mode or in the dark high contrast modes the icon to reveal the passphrase is close to invisible.

High contrast mode in Windows 10:

Related Objects

Event Timeline

aheinecke created this task.
aheinecke claimed this task.

Tested on Linux, modern Windows and Windows 10 2016.

I was curious to test if this all worked by using the new Qt6 dark mode query:

/* Check for dark scheme to determine the icons */
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
    QStyleHints *styleHints = qApp->styleHints();
    if (styleHints && styleHints->colorScheme() == Qt::ColorScheme::Dark) {
        mIconSuffix = QStringLiteral("_dark");
    }
#endif

And it worked in the high contrast and dark mode scenarios.