mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 15:57:58 +01:00
Make the status bar properly customizable and remove some useless vertical space in the navbar.
This commit is contained in:
@@ -22,6 +22,9 @@ var StatusLine = Module("statusline", {
|
||||
append: [
|
||||
["vbox", { id: "browser-bottombox", xmlns: "xul" },
|
||||
["toolbar", { id: "dactyl-addon-bar",
|
||||
customizable: true,
|
||||
defaultset: "",
|
||||
toolboxid: "navigator-toolbox",
|
||||
toolbarname: /*L*/ "Add-on Bar",
|
||||
class: "toolbar-primary chromeclass-toolbar",
|
||||
mode: "icons",
|
||||
@@ -55,7 +58,7 @@ var StatusLine = Module("statusline", {
|
||||
-moz-appearance: none !important;
|
||||
<padding>
|
||||
}
|
||||
!AddonButton;:-moz-any(#addon-bar, #dactyl-addon-bar) xul|toolbarbutton {
|
||||
!AddonButton;,:-moz-any(#addon-bar, #dactyl-addon-bar) xul|toolbarbutton {
|
||||
-moz-appearance: none !important;
|
||||
padding: 0 !important;
|
||||
border-width: 0px !important;
|
||||
@@ -117,6 +120,13 @@ var StatusLine = Module("statusline", {
|
||||
catch (e) {}
|
||||
},
|
||||
|
||||
cleanup: function cleanup(reason) {
|
||||
util.dump("CLEANUP " + reason);
|
||||
util.dump(this.statusBar.id, document.getElementById(this.statusBar.id));
|
||||
if (reason != "unload" && "CustomizableUI" in window)
|
||||
CustomizableUI.unregisterArea(this.statusBar.id, false);
|
||||
},
|
||||
|
||||
get visible() !this.statusBar.collapsed && !this.statusBar.hidden,
|
||||
|
||||
signals: {
|
||||
|
||||
Reference in New Issue
Block a user