Skip to content

Commit

Permalink
add duckduckgo urlbar results icon
Browse files Browse the repository at this point in the history
and search engine one-off icon
  • Loading branch information
aminomancer committed May 23, 2022
1 parent 619bd0b commit 7b961ce
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
13 changes: 13 additions & 0 deletions uc-search-one-offs.css
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,19 @@ the built-in google engine without changing the engine's name */
height: 16px;
}

:is(#urlbar-engine-one-off-item-DuckDuckGo, #searchbar-engine-one-off-item-DuckDuckGo) .button-icon
{
display: none;
}

:is(#urlbar-engine-one-off-item-DuckDuckGo, #searchbar-engine-one-off-item-DuckDuckGo) .button-box::before
{
content: url(chrome://userchrome/content/engines/duckduckgo.svg);
display: block;
width: 16px;
height: 16px;
}

.urlbarView .search-one-offs {
min-height: var(--urlbar-height) !important;
padding: 2px !important;
Expand Down
13 changes: 12 additions & 1 deletion uc-urlbar-results.css
Original file line number Diff line number Diff line change
Expand Up @@ -591,14 +591,25 @@
}

.urlbarView-row[engine="Google"]:is([type="tabtosearch"], [type="tokenaliasengine"])
.urlbarView-favicon {
.urlbarView-favicon,
.urlbarView-row[engine="Google"][type="search"] .urlbarView-favicon[src]:not([src^="chrome"]) {
box-sizing: border-box !important;
background: url(chrome://userchrome/content/engines/google.svg) no-repeat !important;
width: 16px !important;
height: 16px !important;
padding-inline-start: 16px;
}

.urlbarView-row[engine="DuckDuckGo"]:is([type="tabtosearch"], [type="tokenaliasengine"])
.urlbarView-favicon,
.urlbarView-row[engine="DuckDuckGo"][type="search"] .urlbarView-favicon[src]:not([src^="chrome"]) {
box-sizing: border-box !important;
background: url(chrome://userchrome/content/engines/duckduckgo.svg) no-repeat !important;
width: 16px !important;
height: 16px !important;
padding-inline-start: 16px;
}

.urlbarView-row:not([type="search"])
.urlbarView-favicon[src^="page-icon:http"][src*="://en.wikipedia.org/"]
{
Expand Down

0 comments on commit 7b961ce

Please sign in to comment.