enhance: use tabler icons instead of our own extensions

This commit is contained in:
Tienson Qin
2025-05-04 17:31:27 +08:00
parent 5ce4935c51
commit 0683dd6a56
5 changed files with 11 additions and 12 deletions

View File

@@ -58,7 +58,7 @@
(let [current-page (state/get-current-page)]
(->>
[(when current-page
{:filter {:group :current-page} :text "Search only current page" :info "Add filter to search" :icon-theme :gray :icon "page"})
{:filter {:group :current-page} :text "Search only current page" :info "Add filter to search" :icon-theme :gray :icon "file"})
{:filter {:group :nodes} :text "Search only nodes" :info "Add filter to search" :icon-theme :gray :icon "letter-n"}
{:filter {:group :commands} :text "Search only commands" :info "Add filter to search" :icon-theme :gray :icon "command"}
{:filter {:group :files} :text "Search only files" :info "Add filter to search" :icon-theme :gray :icon "file"}
@@ -200,9 +200,9 @@
(ldb/property? entity)
"letter-p"
(ldb/whiteboard? entity)
"whiteboard"
"writing"
:else
"page"))
"file"))
(defmethod load-results :initial [_ state]
(when-let [db (db/get-db)]
@@ -630,7 +630,7 @@
[:div.search-results
(for [item visible-items
:let [highlighted? (= item highlighted-item)
page? (= "page" (some-> item :icon))
page? (= "file" (some-> item :icon))
text (some-> item :text)
source-page (some-> item :source-page)
hls-page? (and page? (pdf-utils/hls-file? (:block/title source-page)))]]