4
<?xml-stylesheet href="chrome://aios/skin/console.css"?>
8
<!ENTITY % aiosDTD SYSTEM "chrome://aios/locale/aios.dtd"> %aiosDTD;
11
<overlay id="aios_consoleOverlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
13
<script type="application/x-javascript" src="chrome://aios/content/_common.js" />
17
window.addEventListener("load", function(e) {
20
var enable_layout = aios_gPrefBranch.getBoolPref("co.layout");
21
var enable_layoutall = aios_gPrefBranch.getBoolPref("co.layoutall");
22
var enable_colors = aios_gPrefBranch.getBoolPref("co.colors");
23
var enable_slim = aios_gPrefBranch.getBoolPref("co.slim");
25
var aios_inSidebar = (top.document.getElementById('sidebar-box')) ? true : false;
29
// Window-Element ermitteln
31
if(document.getElementById('JSConsoleWindow')) conWindow = document.getElementById('JSConsoleWindow');
32
if(document.getElementById('Console2Window')) conWindow = document.getElementById('Console2Window');
33
if(!conWindow) return;
36
if(enable_colors) conWindow.setAttribute('aiosColors', true);
38
// Slim-List aktivieren?
39
if(enable_slim) conWindow.setAttribute('aiosSlim', true);
42
// Layout-Optimierungen aktivieren?
43
if((enable_layout && aios_inSidebar) || enable_layoutall) {
45
conWindow.setAttribute('aiosLayout', true);
48
if(conWindow.id == "JSConsoleWindow") {
49
// Spacer erzeugen und einfuegen
50
var new_spacer = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "spacer");
51
new_spacer.setAttribute("flex", 1);
52
var theToolbar = document.getElementById('ToolbarMode');
53
theToolbar.insertBefore(new_spacer, theToolbar.childNodes[theToolbar.childNodes.length - 2]);
55
// Toolbarbuttons mit Tooltip
56
if(document.getElementById("ToolbarMode")) {
57
var tbChilds = document.getElementById("ToolbarMode").childNodes;
58
for(var i = 0; i < tbChilds.length; i++) {
59
if(tbChilds[i].tagName == "toolbarbutton") tbChilds[i].setAttribute('tooltiptext', tbChilds[i].getAttribute('label'));
65
// Trigger f�r den h�bschen Hintergrund in Fx 3.0 => console.css
66
if(aios_appVersion.indexOf('3.0') == 0 && conWindow.id == "Console2Window") conWindow.setAttribute('fx', '3');
b'\\ No newline at end of file'