// Copyright (c) 2006-2008 by Martin Stubenschrott // Copyright (c) 2007-2011 by Doug Kearns // Copyright (c) 2008-2011 by Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. "use strict"; /** @scope modules */ var StatusLine = Module("statusline", { init: function init() { this._statusLine = document.getElementById("status-bar"); this.statusBar = document.getElementById("addon-bar") || this._statusLine; this.statusBar.collapsed = true; this.baseGroup = this.statusBar == this._statusLine ? "StatusLine " : ""; if (this.statusBar.localName == "toolbar") { styles.system.add("addon-bar", config.styleableChrome, statusbar { -moz-box-flex: 1 } #addon-bar > #addonbar-closebutton { visibility: collapse; } #addon-bar > xul|toolbarspring { visibility: collapse; } ]]>); util.overlayWindow(window, { append: <> }); highlight.loadCSS(util.compileMacro( } !AddonButton;#addon-bar xul|toolbarbutton { /* An Add-on Bar button */ -moz-appearance: none !important; padding: 0 !important; border-width: 0px !important; min-width: 0 !important; color: inherit !important; } AddonButton:not(:hover) background: transparent !important; ]]>)({ padding: util.OS.isMacOSX ? "padding-right: 10px !important;" : "" })); if (document.getElementById("appmenu-button")) highlight.loadCSS(); } XML.ignoreWhitespace = true; let _commandline = "if (window.dactyl) return dactyl.modules.commandline"; let prepend =