mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Add QMenuBar styles
with increased height for touchscreen users and more visible highlight color.
This commit is contained in:
parent
9baa3ba3c0
commit
6ae405a073
1 changed files with 13 additions and 0 deletions
|
@ -64,6 +64,19 @@ QToolTip {{
|
|||
|
||||
def menu_styles(tm: ThemeManager()) -> str:
|
||||
return f"""
|
||||
QMenuBar {{
|
||||
background-color: {tm.var(colors.CANVAS)};
|
||||
border-bottom: 1px solid {tm.var(colors.BORDER)};
|
||||
}}
|
||||
QMenuBar::item {{
|
||||
background-color: transparent;
|
||||
padding: 6px;
|
||||
margin: 2px;
|
||||
}}
|
||||
QMenuBar::item:selected {{
|
||||
background-color: {tm.var(colors.HIGHLIGHT_BG)};
|
||||
border-radius: {tm.var(props.BORDER_RADIUS)};
|
||||
}}
|
||||
QMenu {{
|
||||
background-color: {tm.var(colors.CANVAS_OVERLAY)};
|
||||
border: 1px solid {tm.var(colors.BORDER)};
|
||||
|
|
Loading…
Reference in a new issue