Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.15.2
-
None
-
macOS 10.15.7
Description
Hyperlinks in text in a QLabel in "dark mode" are colored an illegibly dark shade of blue; they're almost completely unreadable. I've attached a screenshot. These QLabels are created in Qt Creator, and there's nothing special / unusual about them.
The same issue also occurs for my app when in "dark mode" on Linux, but since my app's Linux dark mode is governed by my own code, and a user pref, perhaps that is in some sense my bug. On macOS, though, dark mode is a system setting, and my app just goes along with that setting, so in that context, at least, this does seem like a bug.
Fixing the problem on Linux seems difficult, however, because the hyperlink colors seem to be applied by Qt internally, and as far as I can tell there is no setting in QPalette to change that color. If there's a straightforward workaround that would allow me to change the colors of links myself when in dark mode, please let me know in the comments. At present, it seems to me that the hyperlink color ought to be added to QPalette, but I'm new to Qt so my opinion isn't worth much. :->