Skip to content

Commit

Permalink
Apply bookmarkColor option also to corresponding badge in search resu…
Browse files Browse the repository at this point in the history
…lts (#96)

Co-authored-by: Simon Heimler <[email protected]>
  • Loading branch information
Fannon and Simon Heimler authored Apr 29, 2023
1 parent 054db55 commit 34c1101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions popup/js/view/searchView.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export function renderSearchResults(result) {
const folder = document.createElement('span')
folder.title = 'Bookmark Folder'
folder.classList.add('badge', 'folder')

if (ext.opts.bookmarkColor) {
folder.style = `background-color: ${ext.opts.bookmarkColor}`
}
if (
ext.opts.displaySearchMatchHighlight &&
resultEntry.folderHighlighted &&
Expand Down

0 comments on commit 34c1101

Please sign in to comment.