From 47509620982df1aec533737d46294781f479ee20 Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Mon, 10 Oct 2022 10:32:45 +0200 Subject: [PATCH] Fix QToolTip styling issue on Windows (#2120) * Fix QToolTip styling issue on Windows * Remove QToolTip styling entirely --- qt/aqt/stylesheets.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/qt/aqt/stylesheets.py b/qt/aqt/stylesheets.py index 6dae425e7..98bebf6d3 100644 --- a/qt/aqt/stylesheets.py +++ b/qt/aqt/stylesheets.py @@ -54,9 +54,6 @@ QPushButton, QComboBox, QSpinBox {{ padding: 2px 6px; -}} -QToolTip {{ - background: {tm.var(colors.CANVAS_OVERLAY)}; }} """ @@ -451,7 +448,7 @@ QScrollBar::sub-line {{ def win10_styles(tm: ThemeManager) -> str: - styles = f""" + return f""" /* day mode is missing a bottom border; background must be also set for border to apply */ QMenuBar {{ @@ -465,11 +462,3 @@ QTreeWidget {{ background: {tm.var(colors.CANVAS)}; }} """ - - if tm.night_mode: - styles += """ -QToolTip { - border: 0; -} - """ - return styles