mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 23:27: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)};
|
border-bottom: 1px solid {tm.var(colors.SHADOW)};
|
||||||
}}
|
}}
|
||||||
QPushButton:default {{
|
QPushButton:default {{
|
||||||
background: {tm.var(colors.BUTTON_PRIMARY_BG)};
|
border: 1px solid {tm.var(colors.BORDER_FOCUS)};
|
||||||
}}
|
}}
|
||||||
QPushButton:focus,
|
QPushButton:focus {{
|
||||||
QTabBar::tab:focus {{
|
|
||||||
border: 2px solid {tm.var(colors.BORDER_FOCUS)};
|
border: 2px solid {tm.var(colors.BORDER_FOCUS)};
|
||||||
outline: none;
|
outline: none;
|
||||||
}}
|
}}
|
||||||
|
|
@ -170,12 +169,7 @@ class CustomStyles:
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
QPushButton:default:hover {{
|
QPushButton:default:hover {{
|
||||||
background: {
|
border-width: 2px;
|
||||||
button_gradient(
|
|
||||||
tm.var(colors.BUTTON_PRIMARY_GRADIENT_START),
|
|
||||||
tm.var(colors.BUTTON_PRIMARY_GRADIENT_END)
|
|
||||||
)
|
|
||||||
};
|
|
||||||
}}
|
}}
|
||||||
QPushButton:pressed,
|
QPushButton:pressed,
|
||||||
QPushButton:checked,
|
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 {{
|
QPushButton:flat {{
|
||||||
border: none;
|
border: none;
|
||||||
}}
|
}}
|
||||||
|
|
@ -328,6 +313,9 @@ class CustomStyles:
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
QTabBar::tab:focus {{
|
||||||
|
outline: none;
|
||||||
|
}}
|
||||||
QTabBar::tab:disabled,
|
QTabBar::tab:disabled,
|
||||||
QTabBar::tab:disabled:hover {{
|
QTabBar::tab:disabled:hover {{
|
||||||
background: {tm.var(colors.BUTTON_DISABLED)};
|
background: {tm.var(colors.BUTTON_DISABLED)};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue