Bug 575870 - Implement custom drawn titlebar for classic, aero basic, and xp. Also fix various content padding issues for desktops with advanced ui customization settings. r=dao.
This commit is contained in:
@@ -1316,6 +1316,15 @@ function prepareForStartup() {
|
||||
|
||||
// setup simple gestures support
|
||||
gGestureSupport.init(true);
|
||||
|
||||
#ifdef MENUBAR_CAN_AUTOHIDE
|
||||
// update the visibility of the titlebar buttons after the window is
|
||||
// displayed. (required by theme code.)
|
||||
window.addEventListener("MozAfterPaint", function () {
|
||||
window.removeEventListener("MozAfterPaint", arguments.callee, false);
|
||||
document.getElementById("titlebar-buttonbox").collapsed = false;
|
||||
}, false);
|
||||
#endif
|
||||
}
|
||||
|
||||
function delayedStartup(isLoadingBlank, mustLoadSidebar) {
|
||||
@@ -4756,13 +4765,20 @@ function updateAppButtonDisplay() {
|
||||
window.menubar.visible &&
|
||||
document.getElementById("toolbar-menubar").getAttribute("autohide") == "true";
|
||||
|
||||
document.getElementById("appmenu-button-container").hidden = !displayAppButton;
|
||||
document.getElementById("titlebar").hidden = !displayAppButton;
|
||||
|
||||
if (displayAppButton)
|
||||
document.documentElement.setAttribute("chromemargin", "0,-1,-1,-1");
|
||||
else
|
||||
document.documentElement.removeAttribute("chromemargin");
|
||||
}
|
||||
|
||||
function onTitlebarMaxClick() {
|
||||
if (window.windowState == window.STATE_MAXIMIZED)
|
||||
window.restore();
|
||||
else
|
||||
window.maximize();
|
||||
}
|
||||
#endif
|
||||
|
||||
function displaySecurityInfo()
|
||||
|
||||
Reference in New Issue
Block a user