mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Tweak focus highlight of some widgets (#2280)
* Highlight QComboBox on focus * Improve visibility of selected menu items * ANH -> Abdo in About screen
This commit is contained in:
parent
9e8deb6287
commit
298741117f
2 changed files with 5 additions and 2 deletions
|
@ -210,7 +210,7 @@ def show(mw: aqt.AnkiQt) -> QDialog:
|
||||||
"Ijgnd",
|
"Ijgnd",
|
||||||
"Evandro Coan",
|
"Evandro Coan",
|
||||||
"Alan Du",
|
"Alan Du",
|
||||||
"ANH",
|
"Abdo",
|
||||||
"Junseo Park",
|
"Junseo Park",
|
||||||
"Gustavo Costa",
|
"Gustavo Costa",
|
||||||
"余时行",
|
"余时行",
|
||||||
|
|
|
@ -83,7 +83,7 @@ QMenu::item {{
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}}
|
}}
|
||||||
QMenu::item:selected {{
|
QMenu::item:selected {{
|
||||||
background-color: {tm.var(colors.CANVAS_ELEVATED)};
|
background-color: {tm.var(colors.HIGHLIGHT_BG)};
|
||||||
border-radius: {tm.var(props.BORDER_RADIUS)};
|
border-radius: {tm.var(props.BORDER_RADIUS)};
|
||||||
}}
|
}}
|
||||||
QMenu::separator {{
|
QMenu::separator {{
|
||||||
|
@ -161,6 +161,9 @@ def combobox_styles(tm: ThemeManager) -> str:
|
||||||
QComboBox {{
|
QComboBox {{
|
||||||
padding: {"1px 6px 2px 4px" if tm.rtl() else "1px 4px 2px 6px"};
|
padding: {"1px 6px 2px 4px" if tm.rtl() else "1px 4px 2px 6px"};
|
||||||
}}
|
}}
|
||||||
|
QComboBox:focus {{
|
||||||
|
border-color: {tm.var(colors.BORDER_FOCUS)};
|
||||||
|
}}
|
||||||
QComboBox:editable:on,
|
QComboBox:editable:on,
|
||||||
QComboBox:editable:focus,
|
QComboBox:editable:focus,
|
||||||
QComboBox::drop-down:focus:editable,
|
QComboBox::drop-down:focus:editable,
|
||||||
|
|
Loading…
Reference in a new issue