mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix QToolTip styling issue on Windows (#2120)
* Fix QToolTip styling issue on Windows * Remove QToolTip styling entirely
This commit is contained in:
parent
78cd785c63
commit
4750962098
1 changed files with 1 additions and 12 deletions
|
@ -54,9 +54,6 @@ QPushButton,
|
||||||
QComboBox,
|
QComboBox,
|
||||||
QSpinBox {{
|
QSpinBox {{
|
||||||
padding: 2px 6px;
|
padding: 2px 6px;
|
||||||
}}
|
|
||||||
QToolTip {{
|
|
||||||
background: {tm.var(colors.CANVAS_OVERLAY)};
|
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -451,7 +448,7 @@ QScrollBar::sub-line {{
|
||||||
|
|
||||||
|
|
||||||
def win10_styles(tm: ThemeManager) -> str:
|
def win10_styles(tm: ThemeManager) -> str:
|
||||||
styles = f"""
|
return f"""
|
||||||
/* day mode is missing a bottom border; background must be
|
/* day mode is missing a bottom border; background must be
|
||||||
also set for border to apply */
|
also set for border to apply */
|
||||||
QMenuBar {{
|
QMenuBar {{
|
||||||
|
@ -465,11 +462,3 @@ QTreeWidget {{
|
||||||
background: {tm.var(colors.CANVAS)};
|
background: {tm.var(colors.CANVAS)};
|
||||||
}}
|
}}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if tm.night_mode:
|
|
||||||
styles += """
|
|
||||||
QToolTip {
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
"""
|
|
||||||
return styles
|
|
||||||
|
|
Loading…
Reference in a new issue