Bug 895669 - Override about:addons to display a metro custom page. r=sfoster

This commit is contained in:
Allison Naaktgeboren 2013-08-02 20:36:39 -04:00
parent 1154e76a61
commit 8a55ff091c
8 changed files with 106 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html [
<!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
%htmlDTD;
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
%brandDTD;
<!ENTITY % aboutAddonsDTD SYSTEM "chrome://browser/locale/aboutAddons.dtd">
%aboutAddonsDTD;
]>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- 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/. -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> &aboutAddons.title; </title>
<link rel="stylesheet" href="chrome://browser/skin/aboutAddons.css" type="text/css"/>
</head>
<body>
<div id="fox">
<div id="floatingTextBox">
<div id="aboutAddonsTextTitle">
&aboutAddons.messageTitle;
</div>
<div id="aboutAddonsTextBody">
&aboutAddons.message;
&aboutAddons.goBackToStart;
<a href="about:start">&aboutAddons.startPageLinkTitle;</a>
</div>
</div>
</div>
</body>
</html>

View File

@ -10,6 +10,7 @@ chrome.jar:
content/aboutRights.xhtml (content/pages/aboutRights.xhtml)
content/blockedSite.xhtml (content/pages/blockedSite.xhtml)
content/netError.xhtml (content/pages/netError.xhtml)
content/aboutAddons.xhtml (content/pages/aboutAddons.xhtml)
content/bindings/bindings.xml (content/bindings/bindings.xml)
content/bindings/tabs.xml (content/bindings/tabs.xml)
@ -101,3 +102,4 @@ chrome.jar:
% override chrome://global/content/config.xul chrome://browser/content/config.xul
% override chrome://global/content/netError.xhtml chrome://browser/content/netError.xhtml
% override chrome://mozapps/content/extensions/extensions.xul chrome://browser/content/aboutAddons.xhtml

View File

@ -0,0 +1,13 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- 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/. -->
<!ENTITY % brandDTD
SYSTEM "chrome://branding/locale/brand.dtd">
%brandDTD;
<!ENTITY aboutAddons.title "Addons are a Work In Progress">
<!ENTITY aboutAddons.messageTitle "Uh-Oh!">
<!ENTITY aboutAddons.message "Sorry, &brandShortName; is busy working on supporting Add-ons for you!">
<!ENTITY aboutAddons.goBackToStart "Go back to the ">
<!ENTITY aboutAddons.startPageLinkTitle "&brandShortName; Start Page.">

View File

@ -23,6 +23,7 @@
locale/browser/phishing.dtd (%chrome/phishing.dtd)
locale/browser/crashprompt.dtd (%chrome/crashprompt.dtd)
locale/browser/crashprompt.properties (%chrome/crashprompt.properties)
locale/browser/aboutAddons.dtd (%chrome/aboutAddons.dtd)
@AB_CD@.jar:
% locale browser @AB_CD@ %locale/browser/

View File

@ -0,0 +1,52 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* 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/. */
html, body {
height: 100%;
padding: 0;
margin: 0;
}
body {
display: flex;
}
#aboutAddonsTextTitle {
font-weight: bold;
}
#floatingTextBox {
flex: 1;
position: relative;
top: 20%;
left: 60%;
width: 375px;
padding: 20px;
font-family: "Segoe UI", sans-serif;
font-size: 25px;
text-align: left;
word-wrap: normal;
}
#fox {
flex: 1;
background-image:url('chrome://browser/skin/images/aboutAddonsBackground.png'), url('chrome://browser/skin/images/aboutAddonsBackgroundFillSlice.png');
background-size: contain;
background-position: bottom center;
background-repeat: no-repeat, repeat-x;
background-color: rgb(230, 230, 230); /*color hand sampled from image*/
}
/* Snapped-view variation */
@media (max-width: 330px) {
#floatingTextBox {
top: 20%;
left: 5%;
width: 90%;
padding: 0;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -7,6 +7,7 @@
chrome.jar:
% skin browser classic/1.0 %skin/
skin/aboutPage.css (aboutPage.css)
skin/aboutAddons.css (aboutAddons.css)
skin/about.css (about.css)
* skin/flyoutpanel.css (flyoutpanel.css)
* skin/cssthrobber.css (cssthrobber.css)
@ -60,6 +61,8 @@ chrome.jar:
skin/images/infobar-key.png (images/infobar-key.png)
skin/images/infobar-popup.png (images/infobar-popup.png)
skin/images/firefox-watermark.png (images/firefox-watermark.png)
skin/images/aboutAddonsBackground.png (images/aboutAddonsBackground.png)
skin/images/aboutAddonsBackgroundFillSlice.png (images/aboutAddonsBackgroundFillSlice.png)
skin/images/flyout-back-button.png (images/flyout-back-button.png)
skin/images/about-footer.png (images/about-footer.png)
skin/images/button-bg.png (images/button-bg.png)