X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=common%2Fcontent%2Fstatusline.js;h=0de02088a37cb79f91c3f8b811796feff49f07f2;hb=8b6fcae7eaa413bc62d645d2d0c99835c47265e6;hp=b5dbee70d417e97426443a35d5017ac4f563a8cb;hpb=70740024f9c028c1fd63e1a1850ab062ff956054;p=dactyl.git diff --git a/common/content/statusline.js b/common/content/statusline.js index b5dbee7..0de0208 100644 --- a/common/content/statusline.js +++ b/common/content/statusline.js @@ -1,6 +1,6 @@ // Copyright (c) 2006-2008 by Martin Stubenschrott // Copyright (c) 2007-2011 by Doug Kearns -// Copyright (c) 2008-2011 by Kris Maglione +// Copyright (c) 2008-2012 Kris Maglione // // This work is licensed for reuse under an MIT license. Details are // given in the LICENSE.txt file included with this file. @@ -12,29 +12,29 @@ 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: <> }); + overlay.overlayWindow(window, { + append: [ + ["statusbar", { id: "status-bar", ordinal: "0" }]] + }); - 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; @@ -42,50 +42,52 @@ var StatusLine = Module("statusline", { color: inherit !important; } AddonButton:not(:hover) background: transparent; - ]]>)({ padding: util.OS.isMacOSX ? "padding-right: 10px !important;" : "" })); + */))({ padding: config.OS.isMacOSX ? "padding-right: 10px !important;" : "" })); if (document.getElementById("appmenu-button")) - highlight.loadCSS(); + highlight.loadCSS(literal(/* + AppmenuButton min-width: 0 !important; padding: 0 .5em !important; + */)); } - XML.ignoreWhitespace = true; let _commandline = "if (window.dactyl) return dactyl.modules.commandline"; - let prepend = -