From aa9a734f695d0b0981aa3c0aaa2745ce86832f08 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 31 May 2023 15:17:07 +1000 Subject: [PATCH] Workaround Ubuntu ignoring tooltip palette in dark mode https://forums.ankiweb.net/t/tooltip-hover-appearance-looks-strange/30384 --- qt/aqt/stylesheets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/stylesheets.py b/qt/aqt/stylesheets.py index a5cd50841..265f03ddd 100644 --- a/qt/aqt/stylesheets.py +++ b/qt/aqt/stylesheets.py @@ -107,6 +107,7 @@ class CustomStyles: QLabel:disabled {{ color: {tm.var(colors.FG_DISABLED)}; }} + QToolTip {{ color: {tm.var(colors.FG)}; background-color: {tm.var(colors.CANVAS)}; }} """ def menu(self, tm: ThemeManager) -> str: