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:
Abdo 2022-12-21 04:41:57 +03:00 committed by GitHub
parent 9e8deb6287
commit 298741117f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -210,7 +210,7 @@ def show(mw: aqt.AnkiQt) -> QDialog:
"Ijgnd",
"Evandro Coan",
"Alan Du",
"ANH",
"Abdo",
"Junseo Park",
"Gustavo Costa",
"余时行",

View file

@ -83,7 +83,7 @@ QMenu::item {{
margin-bottom: 4px;
}}
QMenu::item:selected {{
background-color: {tm.var(colors.CANVAS_ELEVATED)};
background-color: {tm.var(colors.HIGHLIGHT_BG)};
border-radius: {tm.var(props.BORDER_RADIUS)};
}}
QMenu::separator {{
@ -161,6 +161,9 @@ def combobox_styles(tm: ThemeManager) -> str:
QComboBox {{
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:focus,
QComboBox::drop-down:focus:editable,