// 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 CommandWidgets = Class("CommandWidgets", { depends: ["statusline"], init: function init() { let s = "dactyl-statusline-field-"; let fontSize = util.computedStyle(document.documentElement).fontSize; styles.registerSheet("resource://dactyl-skin/dactyl.css"); styles.system.add("font-size", "dactyl://content/buffer.xhtml", "body { font-size: " + fontSize + "; } \ html|html > xul|scrollbar { visibility: collapse !important; }", true); XML.ignoreWhitespace = true; util.overlayWindow(window, { objects: { eventTarget: commandline }, append: