Fixing Bug 189 , adding icon in status bar in firefox

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@622 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Narendra Sisodiya 2009-09-10 19:13:40 +00:00
parent d514c9d9c6
commit 5636cd3f73
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#svg-edit-statusbar-button {
list-style-image: url("chrome://svg-edit/content/editor/images/logo.png");
display: -moz-box;
/*-moz-image-region: rect(16px, 16px, 32px, 0px);*/
padding-left: 0px;
padding-right: 0px;
width: 16px;
height: 16px;
}
#svg-edit-statusbar-button[state="active"] {
list-style-image: url("chrome://svg-edit/content/editor/images/logo.png");
-moz-image-region: rect(32px, 16px, 48px, 0px);
}
#svg-edit-statusbar-button[state="error"] {
list-style-image: url("chrome://svg-edit/content/editor/images/logo.png");
-moz-image-region: rect(0px, 16px, 16px, 0px);
}

View File

@ -1,4 +1,7 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://svg-edit/content/svg-edit-overlay.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://chromelist/locale/ChromeListOverlay.dtd" >
<overlay id="SVGEditToolsOverlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
@ -11,4 +14,12 @@
oncommand="start_svg_edit();" />
</menupopup>
<!-- Firefox -->
<statusbar id="status-bar">
<statusbarpanel id="svg-edit-statusbar-button"
class="statusbarpanel-menu-iconic"
onclick="return start_svg_edit()"
tooltip="SvgEdit">
</statusbarpanel>
</statusbar>
</overlay>