Fix QToolTip styling issue on Windows (#2120)

* Fix QToolTip styling issue on Windows

* Remove QToolTip styling entirely
This commit is contained in:
Matthias Metelka 2022-10-10 10:32:45 +02:00 committed by GitHub
parent 78cd785c63
commit 4750962098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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