mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
Fix QTabView focused tab style
This commit is contained in:
parent
cf58470052
commit
352e2b4aa2
1 changed files with 6 additions and 18 deletions
|
|
@ -148,10 +148,9 @@ class CustomStyles:
|
|||
border-bottom: 1px solid {tm.var(colors.SHADOW)};
|
||||
}}
|
||||
QPushButton:default {{
|
||||
background: {tm.var(colors.BUTTON_PRIMARY_BG)};
|
||||
border: 1px solid {tm.var(colors.BORDER_FOCUS)};
|
||||
}}
|
||||
QPushButton:focus,
|
||||
QTabBar::tab:focus {{
|
||||
QPushButton:focus {{
|
||||
border: 2px solid {tm.var(colors.BORDER_FOCUS)};
|
||||
outline: none;
|
||||
}}
|
||||
|
|
@ -170,12 +169,7 @@ class CustomStyles:
|
|||
};
|
||||
}}
|
||||
QPushButton:default:hover {{
|
||||
background: {
|
||||
button_gradient(
|
||||
tm.var(colors.BUTTON_PRIMARY_GRADIENT_START),
|
||||
tm.var(colors.BUTTON_PRIMARY_GRADIENT_END)
|
||||
)
|
||||
};
|
||||
border-width: 2px;
|
||||
}}
|
||||
QPushButton:pressed,
|
||||
QPushButton:checked,
|
||||
|
|
@ -191,15 +185,6 @@ class CustomStyles:
|
|||
)
|
||||
};
|
||||
}}
|
||||
QPushButton:default:pressed {{
|
||||
background: {
|
||||
button_pressed_gradient(
|
||||
tm.var(colors.BUTTON_PRIMARY_GRADIENT_START),
|
||||
tm.var(colors.BUTTON_PRIMARY_GRADIENT_END),
|
||||
tm.var(colors.SHADOW)
|
||||
)
|
||||
};
|
||||
}}
|
||||
QPushButton:flat {{
|
||||
border: none;
|
||||
}}
|
||||
|
|
@ -328,6 +313,9 @@ class CustomStyles:
|
|||
)
|
||||
};
|
||||
}}
|
||||
QTabBar::tab:focus {{
|
||||
outline: none;
|
||||
}}
|
||||
QTabBar::tab:disabled,
|
||||
QTabBar::tab:disabled:hover {{
|
||||
background: {tm.var(colors.BUTTON_DISABLED)};
|
||||
|
|
|
|||
Loading…
Reference in a new issue