mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 15:48:00 +01:00
merge the existing status bar with the standard FF status bar
This commit is contained in:
2
NEWS
2
NEWS
@@ -2,6 +2,8 @@
|
|||||||
2007-xx-xx:
|
2007-xx-xx:
|
||||||
* version 0.6
|
* version 0.6
|
||||||
* THIS VERSION ONLY WORKS WITH FIREFOX 3.0
|
* THIS VERSION ONLY WORKS WITH FIREFOX 3.0
|
||||||
|
* merge the existing status bar with the standard FF status bar so that
|
||||||
|
security information and extension buttons are included
|
||||||
* added full zoom, and changed keybindings slightly for text zoom
|
* added full zoom, and changed keybindings slightly for text zoom
|
||||||
* :buffer partial_string works now as in vim, and with ! even better
|
* :buffer partial_string works now as in vim, and with ! even better
|
||||||
* new :time command for profiling
|
* new :time command for profiling
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ fieldset.paypal {
|
|||||||
* TODO: move to the standard location: chrome/skin/vimperator.css...if I can
|
* TODO: move to the standard location: chrome/skin/vimperator.css...if I can
|
||||||
* ever convince MS ;-) -- djk
|
* ever convince MS ;-) -- djk
|
||||||
*/
|
*/
|
||||||
#vimperator-toolbar {
|
#vimperator-container {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,21 +144,30 @@ fieldset.paypal {
|
|||||||
color: HighlightText !important;
|
color: HighlightText !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
statusbarpanel {
|
||||||
|
-moz-appearance: none !important;
|
||||||
|
border: none !important;
|
||||||
|
}
|
||||||
|
#vimperator-statusline {
|
||||||
|
font-family: monospace;
|
||||||
|
margin: 0
|
||||||
|
}
|
||||||
#vimperator-statusline > label {
|
#vimperator-statusline > label {
|
||||||
padding: 0px 0px 0px 8px;
|
padding: 0px 0px 0px 8px;
|
||||||
}
|
}
|
||||||
#vimperator-statusline > label:first-child {
|
#vimperator-statusline > label:first-child {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
#vimperator-statusline-field-url {
|
||||||
#vimperator-commandline {
|
background-color: transparent;
|
||||||
background-color: white;
|
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
#vimperator-commandline-prompt {
|
|
||||||
|
#vimperator-commandline {
|
||||||
/* FIXME: black on white or default skin colors? */
|
/* FIXME: black on white or default skin colors? */
|
||||||
background-color: white;
|
background-color: white;
|
||||||
color: black;
|
color: black;
|
||||||
|
padding: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#vimperator-multiline-output {
|
#vimperator-multiline-output {
|
||||||
@@ -170,9 +179,10 @@ fieldset.paypal {
|
|||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
.status_insecure, .status_insecure * {
|
.status_insecure, .status_insecure * {
|
||||||
background-color: transparent;
|
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
.status_secure, .status_secure * {
|
.status_secure, .status_secure * {
|
||||||
background-color: #B0FF00; /* light green */
|
background-color: #B0FF00; /* light green */
|
||||||
color: black;
|
color: black;
|
||||||
|
|||||||
@@ -407,9 +407,9 @@ function Options() //{{{
|
|||||||
"<li><b>m</b>: menubar</li>" +
|
"<li><b>m</b>: menubar</li>" +
|
||||||
"<li><b>T</b>: toolbar</li>" +
|
"<li><b>T</b>: toolbar</li>" +
|
||||||
"<li><b>b</b>: bookmark bar</li>" +
|
"<li><b>b</b>: bookmark bar</li>" +
|
||||||
"<li><b>s</b>: original Firefox statusbar</li></ul>",
|
"<li><b>s</b>: statusbar</li></ul>",
|
||||||
setter: function(value) { Options.setPref("guioptions", value); setGuiOptions(value); },
|
setter: function(value) { Options.setPref("guioptions", value); setGuiOptions(value); },
|
||||||
default_value: "",
|
default_value: "s",
|
||||||
validator: function (value) { if (/[^mTbs]/.test(value)) return false; else return true; }
|
validator: function (value) { if (/[^mTbs]/.test(value)) return false; else return true; }
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|||||||
@@ -1005,6 +1005,8 @@ function StatusLine() //{{{
|
|||||||
////////////////////// PRIVATE SECTION /////////////////////////////////////////
|
////////////////////// PRIVATE SECTION /////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
|
var status_bar = document.getElementById("status-bar");
|
||||||
|
|
||||||
// our status bar fields
|
// our status bar fields
|
||||||
var statusline_widget = document.getElementById("vimperator-statusline");
|
var statusline_widget = document.getElementById("vimperator-statusline");
|
||||||
var url_widget = document.getElementById("vimperator-statusline-field-url");
|
var url_widget = document.getElementById("vimperator-statusline-field-url");
|
||||||
@@ -1017,16 +1019,9 @@ function StatusLine() //{{{
|
|||||||
////////////////////// PUBLIC SECTION //////////////////////////////////////////
|
////////////////////// PUBLIC SECTION //////////////////////////////////////////
|
||||||
/////////////////////////////////////////////////////////////////////////////{{{
|
/////////////////////////////////////////////////////////////////////////////{{{
|
||||||
|
|
||||||
// use names for the color or "transparent" to remove color information
|
|
||||||
this.setColor = function(color)
|
|
||||||
{
|
|
||||||
if (!color)
|
|
||||||
color = "transparent";
|
|
||||||
statusline_widget.setAttribute("style", "background-color: " + color);
|
|
||||||
};
|
|
||||||
this.setClass = function(type)
|
this.setClass = function(type)
|
||||||
{
|
{
|
||||||
statusline_widget.setAttribute("class", "status_" + type);
|
status_bar.setAttribute("class", "chromeclass-status status_" + type);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.updateUrl = function(url)
|
this.updateUrl = function(url)
|
||||||
|
|||||||
@@ -58,8 +58,39 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
|
|
||||||
<window id="main-window">
|
<window id="main-window">
|
||||||
|
|
||||||
<toolbar id="vimperator-toolbar" hidden="false" align="center" fullscreentoolbar="true">
|
<keyset id="mainKeyset">
|
||||||
<vbox id="vimperator-container" flex="1" hidden="false">
|
<key id="key_open_vimbar" key=":" oncommand="vimperator.commandline.open(':', '', vimperator.modes.EX);" modifiers=""/>
|
||||||
|
<key id="key_stop" keycode="VK_ESCAPE" oncommand="vimperator.events.onEscape();"/>
|
||||||
|
<!-- other keys are handled inside vimperator.js event loop -->
|
||||||
|
</keyset>
|
||||||
|
|
||||||
|
<panel id="vimperator-visualbell"/>
|
||||||
|
|
||||||
|
<!--this notifies us also of focus events in the XUL
|
||||||
|
from: http://developer.mozilla.org/en/docs/XUL_Tutorial:Updating_Commands !-->
|
||||||
|
<commandset id="onVimperatorFocus"
|
||||||
|
commandupdater="true"
|
||||||
|
events="focus"
|
||||||
|
oncommandupdate="vimperator.events.onFocusChange(event);"/>
|
||||||
|
<commandset id="onVimperatorSelect"
|
||||||
|
commandupdater="true"
|
||||||
|
events="select"
|
||||||
|
oncommandupdate="vimperator.events.onSelectionChange(event);"/>
|
||||||
|
|
||||||
|
<statusbar id="status-bar">
|
||||||
|
<hbox insertbefore="statusbar-display" id="vimperator-statusline" flex="1" height="10" hidden="false" align="center">
|
||||||
|
<textbox class="plain" id="vimperator-statusline-field-url" readonly="false" flex="1" crop="end"/>
|
||||||
|
<label class="plain" id="vimperator-statusline-field-inputbuffer" flex="0"/>
|
||||||
|
<label class="plain" id="vimperator-statusline-field-progress" flex="0"/>
|
||||||
|
<label class="plain" id="vimperator-statusline-field-tabcount" flex="0"/>
|
||||||
|
<label class="plain" id="vimperator-statusline-field-bufferposition" flex="0"/>
|
||||||
|
</hbox>
|
||||||
|
<!-- just hide them so other elements since other elements expect them -->
|
||||||
|
<statusbarpanel id="statusbar-display" hidden="true"/>
|
||||||
|
<statusbarpanel id="statusbar-progresspanel" hidden="true"/>
|
||||||
|
</statusbar>
|
||||||
|
|
||||||
|
<vbox id="vimperator-container" hidden="false">
|
||||||
<listbox id="vimperator-bufferwindow" class="plain" rows="10" flex="1" hidden="true"
|
<listbox id="vimperator-bufferwindow" class="plain" rows="10" flex="1" hidden="true"
|
||||||
onclick= "vimperator.bufferwindow.onEvent(event);"
|
onclick= "vimperator.bufferwindow.onEvent(event);"
|
||||||
ondblclick="vimperator.bufferwindow.onEvent(event);"
|
ondblclick="vimperator.bufferwindow.onEvent(event);"
|
||||||
@@ -80,14 +111,6 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
</listcols>
|
</listcols>
|
||||||
</listbox>
|
</listbox>
|
||||||
|
|
||||||
<hbox id="vimperator-statusline" flex="1" height="10" hidden="false">
|
|
||||||
<textbox class="plain" id="vimperator-statusline-field-url" readonly="true" flex="1" crop="end"/>
|
|
||||||
<label class="plain" id="vimperator-statusline-field-inputbuffer" flex="0"/>
|
|
||||||
<label class="plain" id="vimperator-statusline-field-progress" flex="0"/>
|
|
||||||
<label class="plain" id="vimperator-statusline-field-tabcount" flex="0"/>
|
|
||||||
<label class="plain" id="vimperator-statusline-field-bufferposition" flex="0"/>
|
|
||||||
</hbox>
|
|
||||||
|
|
||||||
<listbox id="vimperator-completion" class="plain" rows="1" flex="1" hidden="true">
|
<listbox id="vimperator-completion" class="plain" rows="1" flex="1" hidden="true">
|
||||||
<listcols>
|
<listcols>
|
||||||
<listcol flex="1" width="50%"/>
|
<listcol flex="1" width="50%"/>
|
||||||
@@ -98,7 +121,7 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
<iframe id="vimperator-multiline-output" src="about:blank" flex="1" height="10px" hidden="false" collapsed="true"
|
<iframe id="vimperator-multiline-output" src="about:blank" flex="1" height="10px" hidden="false" collapsed="true"
|
||||||
onclick="vimperator.commandline.onMultilineOutputEvent(event)"/>
|
onclick="vimperator.commandline.onMultilineOutputEvent(event)"/>
|
||||||
|
|
||||||
<hbox id="vimperator-commandline" flex="1" hidden="false">
|
<hbox id="vimperator-commandline" hidden="false">
|
||||||
<label class="plain" id="vimperator-commandline-prompt" flex="0" crop="end" value="" collapsed="true"/>
|
<label class="plain" id="vimperator-commandline-prompt" flex="0" crop="end" value="" collapsed="true"/>
|
||||||
<textbox class="plain" id="vimperator-commandline-command" flex="1" hidden="false" type="timed" timeout="100"
|
<textbox class="plain" id="vimperator-commandline-command" flex="1" hidden="false" type="timed" timeout="100"
|
||||||
onkeypress="vimperator.commandline.onEvent(event);"
|
onkeypress="vimperator.commandline.onEvent(event);"
|
||||||
@@ -107,31 +130,11 @@ the terms of any one of the MPL, the GPL or the LGPL.
|
|||||||
onblur="vimperator.commandline.onEvent(event);"/>
|
onblur="vimperator.commandline.onEvent(event);"/>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
|
||||||
<textbox id="vimperator-multiline-input" class="plain" flex="1" rows="10" hidden="false" collapsed="true" multiline="true"
|
<textbox id="vimperator-multiline-input" class="plain" flex="1" rows="1" hidden="false" collapsed="true" multiline="true"
|
||||||
onkeypress="vimperator.commandline.onMultilineInputEvent(event);"
|
onkeypress="vimperator.commandline.onMultilineInputEvent(event);"
|
||||||
oninput="vimperator.commandline.onMultilineInputEvent(event);"
|
oninput="vimperator.commandline.onMultilineInputEvent(event);"
|
||||||
onblur="vimperator.commandline.onMultilineInputEvent(event);"/>
|
onblur="vimperator.commandline.onMultilineInputEvent(event);"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
</toolbar>
|
|
||||||
|
|
||||||
<panel id="vimperator-visualbell"/>
|
|
||||||
|
|
||||||
<keyset id="mainKeyset">
|
|
||||||
<key id="key_open_vimbar" key=":" oncommand="vimperator.commandline.open(':', '', vimperator.modes.EX);" modifiers=""/>
|
|
||||||
<key id="key_stop" keycode="VK_ESCAPE" oncommand="vimperator.events.onEscape();"/>
|
|
||||||
<!-- other keys are handled inside vimperator.js event loop -->
|
|
||||||
</keyset>
|
|
||||||
|
|
||||||
<!--this notifies us also of focus events in the XUL
|
|
||||||
from: http://developer.mozilla.org/en/docs/XUL_Tutorial:Updating_Commands !-->
|
|
||||||
<commandset id="onVimperatorFocus"
|
|
||||||
commandupdater="true"
|
|
||||||
events="focus"
|
|
||||||
oncommandupdate="vimperator.events.onFocusChange(event);"/>
|
|
||||||
<commandset id="onVimperatorSelect"
|
|
||||||
commandupdater="true"
|
|
||||||
events="select"
|
|
||||||
oncommandupdate="vimperator.events.onSelectionChange(event);"/>
|
|
||||||
|
|
||||||
</window>
|
</window>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user