Skip to content
Snippets Groups Projects
Verified Commit d8e51ba3 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! Bug 21952: Implement Onion-Location

Bug 41608 - Use the same styling for ".onion available" urlbar button as
the tor-connect-urlbar-button. This also stops the button from
overflowing its container like before. Also move to after the bookmark
button.
parent 15274076
Branches
Tags
1 merge request!653Bug 41795: Rebased alpha to 102.12
......@@ -367,9 +367,6 @@
onclick="FullZoom.reset(); FullZoom.resetScalingZoom();"
tooltip="dynamic-shortcut-tooltip"
hidden="true"/>
#include ../../components/onionservices/content/onionlocation-urlbar.inc.xhtml
<hbox id="pageActionButton"
class="urlbar-page-action"
role="button"
......@@ -394,6 +391,8 @@
hidden="true">
<label id="tor-connect-urlbar-button-label"/>
</hbox>
#include ../../components/onionservices/content/onionlocation-urlbar.inc.xhtml
</hbox>
</hbox>
<toolbartabstop/>
......
# Copyright (c) 2020, The Tor Project, Inc.
<hbox id="onion-location-box"
class="urlbar-icon-wrapper urlbar-page-action"
class="tor-urlbar-button"
role="button"
hidden="true"
onclick="OnionLocationParent.buttonClick(event);">
<image id="onion-location-button" role="presentation"/>
<hbox id="onion-label-container"><label id="onion-label"/></hbox>
<label id="onion-label"/>
</hbox>
/* Copyright (c) 2020, The Tor Project, Inc. */
#onion-location-box {
background-color: var(--purple-60);
-moz-context-properties: fill;
fill: white;
}
#onion-location-box:hover {
background-color: var(--purple-70);
}
#onion-location-box:active {
background-color: var(--purple-80);
}
@media (prefers-color-scheme: dark) {
#onion-location-box {
background-color: var(--purple-50);
}
#onion-location-box:hover {
background-color: var(--purple-60);
}
#onion-location-box:active {
background-color: var(--purple-70);
}
}
#onion-location-button {
list-style-image: url(chrome://browser/content/onionservices/onionlocation.svg);
padding-inline-start: 0.5em;
}
label#onion-label {
margin: 0;
padding-block: 0;
padding-inline: 0.5em;
color: white;
font-weight: normal;
-moz-context-properties: fill;
fill: currentColor;
}
.onionlocation-notification-icon {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment