Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style(quick-search): theme the result selection highlight
Elian Dorand04440a8b04d
diff --git a/apps/client/src/stylesheets/theme-next/shell.css b/apps/client/src/stylesheets/theme-next/shell.cssindex c751fc474c..8e03e0db09 100644--- a/apps/client/src/stylesheets/theme-next/shell.css+++ b/apps/client/src/stylesheets/theme-next/shell.css@@ -664,6 +664,14 @@ div.quick-search .dropdown-menu {padding: 8px 12px !important;}+:root .quick-search .dropdown-item:not(.disabled):hover,+:root .quick-search .dropdown-item:not(.disabled):focus,+:root .quick-search .dropdown-item:not(.disabled):focus-visible {+ outline: none !important;+ background: var(--hover-item-background-color);+ color: var(--hover-item-text-color);+}+.quick-search .quick-search-item-icon {vertical-align: text-bottom;}diff --git a/apps/client/src/widgets/quick_search.ts b/apps/client/src/widgets/quick_search.tsindex c733e00e86..330b52df34 100644--- a/apps/client/src/widgets/quick_search.ts+++ b/apps/client/src/widgets/quick_search.ts@@ -75,8 +75,13 @@ const TPL = /*html*/`display: none;}- .quick-search-item.dropdown-item:hover {- background-color: #f8f9fa;+ /* Mouse hover and the ArrowDown keyboard selection share the "active item" fill the rest+ of the menus use, so pointing at a result and arrowing to it look the same. */+ .quick-search .dropdown-item:not(.disabled):hover,+ .quick-search .dropdown-item:not(.disabled):focus {+ background-color: var(--active-item-background-color);+ color: var(--active-item-text-color);+ outline: none;}.quick-search .quick-search-item {