Skip to content

Commit

Permalink
Fixed toolbar icon. Closes #4.
Browse files Browse the repository at this point in the history
Note that the icon artwork is temporary.
  • Loading branch information
codebutler committed Nov 18, 2010
1 parent f071ee1 commit ea1130b
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 13 deletions.
8 changes: 5 additions & 3 deletions xpi/chrome.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ content firesheep chrome/content/
skin firesheep classic/1.0 chrome/skin/
locale firesheep en-US chrome/locale/en-US/

overlay chrome://browser/content/browser.xul chrome://firesheep/content/ff-overlay.xul
style chrome://firesheep/content/ff-sidebar.xul chrome://firesheep/skin/sidebar-osx.css OS=Darwin
style chrome://firesheep/content/preferences/prefsWindow.xul chrome://firesheep/skin/preferences-osx.css OS=Darwin
overlay chrome://browser/content/browser.xul chrome://firesheep/content/browserOverlay.xul
overlay chrome://global/content/customizeToolbar.xul chrome://firesheep/content/customizeToolbarOverlay.xul

style chrome://firesheep/content/sidebar.xul chrome://firesheep/skin/sidebar-osx.css OS=Darwin
style chrome://firesheep/content/preferences/prefsWindow.xul chrome://firesheep/skin/preferences-osx.css OS=Darwin

resource firesheep modules/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// ff-overlay.js
// browserOverlay.js
// Part of the Firesheep project.
//
// Copyright (C) 2010 Eric Butler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-stylesheet href="chrome://firesheep/skin/overlay.css" type="text/css"?>

<!--
ff-overlay.xul
browserOverlay.xul
Part of the Firesheep project.
Copyright (C) 2010 Eric Butler
Expand All @@ -27,15 +27,18 @@
<!DOCTYPE overlay SYSTEM "chrome://firesheep/locale/overlay.dtd">

<overlay id="firesheep-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="ff-overlay.js"/>
<script src="browserOverlay.js"/>

<stringbundleset id="stringbundleset">
<stringbundle id="firesheep-strings" src="chrome://firesheep/locale/overlay.properties"/>
</stringbundleset>

<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton id="firesheep-toolbar-button" class="toolbarbutton-1 chromeclass-toolbar-additional"
label="&firesheepToolbarButton.label;" tooltiptext="&firesheepToolbarButton.tooltip;"
<toolbarbutton
id="firesheep-toolbar-button"
class="toolbarbutton-1 chromeclass-toolbar-additional"
label="&firesheepToolbarButton.label;"
tooltiptext="&firesheepToolbarButton.tooltip;"
oncommand="FiresheepUI.toggleSidebar()"/>
</toolbarpalette>

Expand All @@ -53,7 +56,7 @@
autoCheck="false"
type="checkbox"
group="sidebar"
sidebarurl="chrome://firesheep/content/ff-sidebar.xul"
sidebarurl="chrome://firesheep/content/sidebar.xul"
sidebartitle="&firesheepSidebar.label;"
oncommand="FiresheepUI.toggleSidebar()" />
</broadcasterset>
Expand Down
5 changes: 5 additions & 0 deletions xpi/chrome/content/customizeToolbarOverlay.xul
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://firesheep/skin/overlay.css" type="text/css"?>
<overlay id="FirebugOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
</overlay>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// ff-sidebar.js
// sidebar.js
// Part of the Firesheep project.
//
// Copyright (C) 2010 Eric Butler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<?xml-stylesheet href="chrome://firesheep/skin/sidebar.css" type="text/css"?>

<!--
ff-sidebar.xul
sidebar.xul
Part of the Firesheep project.
Copyright (C) 2010 Eric Butler
Expand All @@ -30,8 +30,8 @@
<page id="firesheepSidebar" title="&firesheepSidebar.label;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<script src="ff-sidebar.js"/>
<script src="ff-overlay.js"/>
<script src="sidebar.js"/>
<script src="browserOverlay.js"/>

<vbox flex="1">
<hbox id="toolbar">
Expand Down
9 changes: 9 additions & 0 deletions xpi/chrome/skin/overlay.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#firesheep-toolbar-button {
list-style-image: url('chrome://firesheep/skin/toolbar-button.png');
}

toolbar[iconsize="small"] #firesheep-toolbar-button > .toolbarbutton-icon {
list-style-image: url('chrome://firesheep/skin/toolbar-button.png');
width: 16px;
height: 16px;
}
Binary file modified xpi/chrome/skin/toolbar-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ea1130b

Please sign in to comment.