Bug 843287 - UI improvements for the variables view and sidebar, r=msucan

This commit is contained in:
Victor Porof 2013-04-09 22:05:34 +03:00
Родитель fc580f8dfe
Коммит a6028929b9
6 изменённых файлов: 16 добавлений и 69 удалений

Просмотреть файл

@ -236,8 +236,6 @@ function testGen() {
ok(showsPropertyPanel, ok(showsPropertyPanel,
"the property panel shown for inputValues[" + cpos + "]"); "the property panel shown for inputValues[" + cpos + "]");
HUD.jsterm._splitter.state = "collapsed";
popupShown[cpos] = true; popupShown[cpos] = true;
if (showsPropertyPanel) { if (showsPropertyPanel) {

Просмотреть файл

@ -2616,13 +2616,6 @@ JSTerm.prototype = {
*/ */
sidebar: null, sidebar: null,
/**
* The Web Console splitter between output and the sidebar.
* @private
* @type nsIDOMElement
*/
_splitter: null,
/** /**
* The Variables View instance shown in the sidebar. * The Variables View instance shown in the sidebar.
* @private * @private
@ -2707,8 +2700,6 @@ JSTerm.prototype = {
this.inputNode.addEventListener("input", this._inputEventHandler, false); this.inputNode.addEventListener("input", this._inputEventHandler, false);
this.inputNode.addEventListener("keyup", this._inputEventHandler, false); this.inputNode.addEventListener("keyup", this._inputEventHandler, false);
this._splitter = doc.querySelector(".devtools-side-splitter");
this.lastInputValue && this.setInputValue(this.lastInputValue); this.lastInputValue && this.setInputValue(this.lastInputValue);
}, },
@ -3025,7 +3016,6 @@ JSTerm.prototype = {
this.sidebar = new ToolSidebar(tabbox, this); this.sidebar = new ToolSidebar(tabbox, this);
} }
this.sidebar.show(); this.sidebar.show();
this._splitter.setAttribute("state", "open");
}, },
/** /**

Просмотреть файл

@ -139,7 +139,7 @@
</hbox> </hbox>
</vbox> </vbox>
<splitter class="devtools-side-splitter" collapse="after" state="collapsed" /> <splitter class="devtools-side-splitter"/>
<tabbox id="webconsole-sidebar" class="devtools-sidebar-tabs" hidden="true" width="300"> <tabbox id="webconsole-sidebar" class="devtools-sidebar-tabs" hidden="true" width="300">
<tabs/> <tabs/>

Просмотреть файл

@ -2,16 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
.hud-outer-wrapper {
width: 100%;
height: 100%;
}
.hud-console-wrapper {
width: 100%;
overflow: auto;
}
/* General output styles */ /* General output styles */
.webconsole-timestamp { .webconsole-timestamp {
@ -103,7 +93,6 @@
.hud-output-node { .hud-output-node {
-moz-appearance: none; -moz-appearance: none;
border-bottom: 1px solid ThreeDShadow; border-bottom: 1px solid ThreeDShadow;
border-top: 1px solid ThreeDShadow;
margin: 0; margin: 0;
font-size: 0.9em; font-size: 0.9em;
} }
@ -115,8 +104,7 @@
/* WebConsole colored drops */ /* WebConsole colored drops */
.webconsole-filter-button, .webconsole-filter-button[checked] {
.webconsole-filter-button[checked=true] {
color: white !important; color: white !important;
} }
@ -243,14 +231,12 @@
.webconsole-msg-inspector iframe { .webconsole-msg-inspector iframe {
height: 7em; height: 7em;
margin-bottom: 15px; margin-bottom: 15px;
} -moz-margin-end: 15px;
border-radius: 4px;
.devtools-side-splitter { box-shadow: 0 0 12px #dfdfdf;
background: #666;
width: 2px;
} }
#webconsole-sidebar > tabs { #webconsole-sidebar > tabs {
height: 0; height: 0;
overflow: hidden; border: none;
} }

Просмотреть файл

@ -4,16 +4,6 @@
%include ../shared.inc %include ../shared.inc
.hud-outer-wrapper {
width: 100%;
height: 100%;
}
.hud-console-wrapper {
width: 100%;
overflow: auto;
}
/* General output styles */ /* General output styles */
.webconsole-timestamp { .webconsole-timestamp {
@ -96,7 +86,6 @@
.hud-output-node { .hud-output-node {
-moz-appearance: none; -moz-appearance: none;
border-bottom: 1px solid ThreeDShadow; border-bottom: 1px solid ThreeDShadow;
border-top: 1px solid ThreeDShadow;
margin: 0; margin: 0;
} }
@ -107,8 +96,7 @@
/* WebConsole colored drops */ /* WebConsole colored drops */
.webconsole-filter-button, .webconsole-filter-button[checked] {
.webconsole-filter-button[checked=true] {
color: white !important; color: white !important;
} }
@ -247,14 +235,12 @@
.webconsole-msg-inspector iframe { .webconsole-msg-inspector iframe {
height: 7em; height: 7em;
margin-bottom: 15px; margin-bottom: 15px;
} -moz-margin-end: 15px;
border-radius: 4px;
.devtools-side-splitter { box-shadow: 0 0 12px #dfdfdf;
background: #666;
width: 2px;
} }
#webconsole-sidebar > tabs { #webconsole-sidebar > tabs {
height: 0; height: 0;
overflow: hidden; border: none;
} }

Просмотреть файл

@ -2,16 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
.hud-outer-wrapper {
width: 100%;
height: 100%;
}
.hud-console-wrapper {
width: 100%;
overflow: auto;
}
/* General output styles */ /* General output styles */
.webconsole-timestamp { .webconsole-timestamp {
@ -94,7 +84,6 @@
.hud-output-node { .hud-output-node {
-moz-appearance: none; -moz-appearance: none;
border-bottom: 1px solid ThreeDShadow; border-bottom: 1px solid ThreeDShadow;
border-top: 1px solid ThreeDShadow;
margin: 0; margin: 0;
} }
@ -105,7 +94,7 @@
/* WebConsole colored drops */ /* WebConsole colored drops */
.webconsole-filter-button[checked=true] { .webconsole-filter-button[checked] {
color: white !important; color: white !important;
} }
@ -251,14 +240,12 @@
.webconsole-msg-inspector iframe { .webconsole-msg-inspector iframe {
height: 7em; height: 7em;
margin-bottom: 15px; margin-bottom: 15px;
} -moz-margin-end: 15px;
border-radius: 4px;
.devtools-side-splitter { box-shadow: 0 0 12px #dfdfdf;
background: #666;
width: 2px;
} }
#webconsole-sidebar > tabs { #webconsole-sidebar > tabs {
height: 0; height: 0;
overflow: hidden; border: none;
} }