Skip to content

Commit 4b5f522

Browse files
Micah Leepde
authored andcommitted
added bare toolbar button
1 parent 35b5304 commit 4b5f522

5 files changed

Lines changed: 40 additions & 0 deletions

File tree

src/chrome.manifest

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ contract @eff.org/https-everywhere;1 {32c165b4-fe5e-4964-9250-603c410631b4}
99

1010
category profile-after-change HTTPSEverywhere @eff.org/https-everywhere;1
1111
category content-policy HTTPSEverywhere @eff.org/https-everywhere;1
12+
13+
overlay chrome://browser/content/browser.xul chrome://https-everywhere/content/toolbar_button.xul
14+
style chrome://global/content/customizeToolbar.xul chrome://https-everywhere/skin/https-everywhere.css
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0"?>
2+
<?xml-stylesheet href="chrome://https-everywhere/skin/https-everywhere.css" type="text/css"?>
3+
4+
<!DOCTYPE overlay SYSTEM "chrome://https-everywhere/locale/https-everywhere.dtd">
5+
6+
<overlay id="https-everywhere-button-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
7+
<!-- Place the context menu in the nav bar, so that the lack of the status bar on FF4 doesn't make it invisible -->
8+
<toolbar id="nav-bar">
9+
<popup id="https-everywhere-context-menu"/>
10+
</toolbar>
11+
12+
<toolbarpalette id="BrowserToolbarPalette">
13+
<toolbarbutton
14+
id="https-everywhere-button"
15+
class="toolbarbutton-1 chromeclass-toolbar-additional"
16+
tooltiptext="HTTPS Everywhere"
17+
label="HTTPS Everywhere"
18+
context="https-everywhere-context-menu"
19+
type="menu">
20+
21+
<menupopup>
22+
<menuitem label="Menu item 1"/>
23+
<menuitem label="Menu item 2"/>
24+
</menupopup>
25+
</toolbarbutton>
26+
</toolbarpalette>
27+
</overlay>
855 Bytes
Loading
1.4 KB
Loading
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#https-everywhere-button {
2+
list-style-image: url("chrome://https-everywhere/skin/https-everywhere-24.png");
3+
-moz-box-orient: horizontal;
4+
}
5+
6+
toolbar[iconsize="small"] #https-everywhere-button {
7+
list-style-image: url("chrome://https-everywhere/skin/https-everywhere-16.png");
8+
-moz-box-orient: horizontal;
9+
}
10+

0 commit comments

Comments
 (0)