View Single Post
Old 07-21-2023, 11:55 AM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,480
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@kovid: this seems to be caused by the adjustment for dark theme when painting highlighted (hovered) tag browser labels done in gui2.library.views.paint_text at line 70. According to my experiments (on Windows) the painter must have a correct dark mode pen set if the item is not being highlighted. If the pen is not set then Qt seems to use a black pen, which is replaced later the correct color.

I pushed a PR with my fix. I freely admit that I might have broken something, but I don't see anything. It is also possible that the non-hover pen should be something other than Qt.GlobalColor.white. Finally, it is possible that this should be done in a style sheet somewhere instead of in code.
chaley is offline   Reply With Quote